Skip to content

Commit

Permalink
Search again buttons should be hidden when search is in progress
Browse files Browse the repository at this point in the history
Fixes #105
  • Loading branch information
AliceGrey committed Mar 2, 2021
1 parent ac0d4b7 commit e78630d
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions lib/ui/setup/pair_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -170,18 +170,20 @@ class PairPage extends HookWidget implements CobbleScreen {
),
)
.toList(),
FlatButton(
child: Text("SEARCH AGAIN WITH BLE"),
padding: EdgeInsets.symmetric(horizontal: 32.0),
textColor: Theme.of(context).accentColor,
onPressed: _refreshDevicesBle,
),
FlatButton(
child: Text("SEARCH AGAIN WITH BT CLASSIC"),
padding: EdgeInsets.symmetric(horizontal: 32.0),
textColor: Theme.of(context).accentColor,
onPressed: _refreshDevicesClassic,
),
if (!scan.scanning) ...[
FlatButton(
child: Text("SEARCH AGAIN WITH BLE"),
padding: EdgeInsets.symmetric(horizontal: 32.0),
textColor: Theme.of(context).accentColor,
onPressed: _refreshDevicesBle,
),
FlatButton(
child: Text("SEARCH AGAIN WITH BT CLASSIC"),
padding: EdgeInsets.symmetric(horizontal: 32.0),
textColor: Theme.of(context).accentColor,
onPressed: _refreshDevicesClassic,
),
],
if (fromLanding)
FlatButton(
child: Text("SKIP"),
Expand Down

0 comments on commit e78630d

Please sign in to comment.