Skip to content

Commit

Permalink
refs #26 Make the scan list scrolling
Browse files Browse the repository at this point in the history
  • Loading branch information
truedat101 committed Mar 23, 2024
1 parent 334e8fe commit 12a80f4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion magnet_app/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ class _MyHomePageWidgetState extends State<MyHomePage> {
player.play(AssetSource('audio/scanning_loop.wav'));
Timer timer;
int secs = 0;
/*
timer = Timer.periodic(Duration(milliseconds:1000),(timer){
if (secs < 30) {
secs += 1;
Expand All @@ -101,7 +102,9 @@ class _MyHomePageWidgetState extends State<MyHomePage> {
timer.cancel();
}
});
*/
appState.scanAndConnectToDevice();
_devicesScannedNow = appState.getDevices();
},
),
backgroundColor: NeumorphicTheme.baseColor(context),
Expand Down Expand Up @@ -149,7 +152,8 @@ class _MyHomePageWidgetState extends State<MyHomePage> {
],
),
),
body: Center(
body: SingleChildScrollView(
// Center(
child: Column(
mainAxisSize: MainAxisSize.min,
children: <Widget>[
Expand Down Expand Up @@ -210,6 +214,7 @@ class _MyHomePageWidgetState extends State<MyHomePage> {
_createDataTable()
],
),
//),
),
);
}
Expand Down

0 comments on commit 12a80f4

Please sign in to comment.