Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTServ committed Mar 10, 2024
1 parent e556062 commit 33854a3
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions lib/pages/commonDevice/commonDeviceListPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,16 @@ class _CommonDeviceListPageState extends State<CommonDeviceListPage> {
centerTitle: true,
actions: _build_actions(),
),
floatingActionButtonLocation: FloatingActionButtonLocation.endFloat,
floatingActionButton: FloatingActionButton(
child: const Icon(Icons.add),
shape: const CircleBorder(),
elevation: 2.0,
tooltip: 'Add Host',
onPressed: () {
_addRemoteHostFromSession();
},
),
body: tiles.isNotEmpty
? divided
: Container(
Expand Down Expand Up @@ -325,14 +335,6 @@ class _CommonDeviceListPageState extends State<CommonDeviceListPage> {
_buildPopupMenuItem(Icons.search, S.current.find_local_gateway),
value: "find_local_gateway",
),
const PopupMenuDivider(
height: 1.0,
),
PopupMenuItem(
child:
_buildPopupMenuItem(Icons.add, S.current.add_remote_host),
value: "add_remote_host",
),
];
},
padding: EdgeInsets.only(top: 0.0),
Expand Down Expand Up @@ -374,9 +376,6 @@ class _CommonDeviceListPageState extends State<CommonDeviceListPage> {
),
);
break;
case 'add_remote_host':
_addRemoteHostFromSession();
break;
}
},
),
Expand Down

0 comments on commit 33854a3

Please sign in to comment.