diff options
| author | xengineering <me@xengineering.eu> | 2026-03-07 11:45:34 +0100 |
|---|---|---|
| committer | xengineering <me@xengineering.eu> | 2026-03-07 11:45:34 +0100 |
| commit | e75d23db9960c6060fd2b530f5878727e0caaf37 (patch) | |
| tree | a7d2110340b19cb0a93546f2c44b165e3e2f75a1 /lib/ui.dart | |
| parent | b6f6dc481606d0ffb8c06ffb549cb0221b0c6167 (diff) | |
| download | sia-app-e75d23db9960c6060fd2b530f5878727e0caaf37.tar sia-app-e75d23db9960c6060fd2b530f5878727e0caaf37.tar.zst sia-app-e75d23db9960c6060fd2b530f5878727e0caaf37.zip | |
Allow switching between pages
This prepares manually starting the connection after server name
insertion.
Diffstat (limited to 'lib/ui.dart')
| -rw-r--r-- | lib/ui.dart | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/lib/ui.dart b/lib/ui.dart index 20df8f5..73e532a 100644 --- a/lib/ui.dart +++ b/lib/ui.dart @@ -112,7 +112,20 @@ class ConnectionStatus extends StatelessWidget { text = const Text('Disconnected'); } - return ListTile(leading: icon, title: text); + return Row( + children: <Widget>[ + Expanded( + child: ListTile( + leading: icon, + title: text, + trailing: ElevatedButton( + onPressed: state.togglePage, + child: const Text('switch view'), + ), + ), + ), + ], + ); }, ), ); |
