From 12a80f48294d8ede2e63dfd2fe38f6b6018dc860 Mon Sep 17 00:00:00 2001 From: David J Kordsmeier Date: Fri, 22 Mar 2024 21:46:30 -0700 Subject: [PATCH] refs #26 Make the scan list scrolling --- magnet_app/lib/main.dart | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/magnet_app/lib/main.dart b/magnet_app/lib/main.dart index 9f71ad3..5524d05 100644 --- a/magnet_app/lib/main.dart +++ b/magnet_app/lib/main.dart @@ -91,6 +91,7 @@ class _MyHomePageWidgetState extends State { player.play(AssetSource('audio/scanning_loop.wav')); Timer timer; int secs = 0; + /* timer = Timer.periodic(Duration(milliseconds:1000),(timer){ if (secs < 30) { secs += 1; @@ -101,7 +102,9 @@ class _MyHomePageWidgetState extends State { timer.cancel(); } }); + */ appState.scanAndConnectToDevice(); + _devicesScannedNow = appState.getDevices(); }, ), backgroundColor: NeumorphicTheme.baseColor(context), @@ -149,7 +152,8 @@ class _MyHomePageWidgetState extends State { ], ), ), - body: Center( + body: SingleChildScrollView( + // Center( child: Column( mainAxisSize: MainAxisSize.min, children: [ @@ -210,6 +214,7 @@ class _MyHomePageWidgetState extends State { _createDataTable() ], ), + //), ), ); }