From 7467e0f1c7eec3f05def4b21207cd88b9819f3ea Mon Sep 17 00:00:00 2001 From: unknown Date: Mon, 9 Feb 2026 21:21:27 +0100 Subject: [PATCH] Small astetic fixes. --- lib/screens/help.dart | 16 +++++++++++++++- lib/screens/home_screen.dart | 21 ++++++++++++--------- 2 files changed, 27 insertions(+), 10 deletions(-) diff --git a/lib/screens/help.dart b/lib/screens/help.dart index 9a1b6a7..aee4a32 100644 --- a/lib/screens/help.dart +++ b/lib/screens/help.dart @@ -5,8 +5,22 @@ class HelpScreen extends StatelessWidget { @override Widget build(BuildContext context) { + final theme = Theme.of(context).colorScheme; return Scaffold( - appBar: AppBar(title: const Text('Help')), + appBar: AppBar( + backgroundColor: theme.surface, + title: Text("Help", style: TextStyle(color: theme.onSurface)), + leading: Builder( + builder: (context) { + return IconButton( + icon: Icon(Icons.arrow_back_ios_rounded, color: theme.onSurface), + onPressed: () { + Navigator.pop(context); + }, + ); + }, + ), + ), body: ListView( padding: const EdgeInsets.all(16), children: [ diff --git a/lib/screens/home_screen.dart b/lib/screens/home_screen.dart index 2ce6a4b..11cfdd3 100644 --- a/lib/screens/home_screen.dart +++ b/lib/screens/home_screen.dart @@ -95,15 +95,18 @@ class _HomeScreenState extends State { ), ), ), - body: ListView.builder( - itemCount: allCommands.length, - itemBuilder: (context, index) { - // You can keep this as 'context' or rename it - return ServerStatusTile( - command: allCommands[index], - onEdit: () => _editCommand(allCommands[index], index), - ); - }, + body: Padding( + padding: const EdgeInsets.symmetric(horizontal: 8.0), + child: ListView.builder( + itemCount: allCommands.length, + itemBuilder: (context, index) { + // You can keep this as 'context' or rename it + return ServerStatusTile( + command: allCommands[index], + onEdit: () => _editCommand(allCommands[index], index), + ); + }, + ), ), floatingActionButton: Builder( builder: (context) {