summaryrefslogtreecommitdiff
path: root/lib/ui.dart
diff options
context:
space:
mode:
Diffstat (limited to 'lib/ui.dart')
-rw-r--r--lib/ui.dart15
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'),
+ ),
+ ),
+ ),
+ ],
+ );
},
),
);