Skip to content

Commit

Permalink
Merge pull request #114 from AliceGrey/hideSearchAgain
Browse files Browse the repository at this point in the history
Search again buttons should be hidden when search is in progress
  • Loading branch information
matejdro authored Mar 3, 2021
2 parents ac0d4b7 + e78630d commit fa19350
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 fa19350

Please sign in to comment.