Small astetic fixes.
This commit is contained in:
parent
c2ca8b59a3
commit
7467e0f1c7
|
|
@ -5,8 +5,22 @@ class HelpScreen extends StatelessWidget {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final theme = Theme.of(context).colorScheme;
|
||||||
return Scaffold(
|
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(
|
body: ListView(
|
||||||
padding: const EdgeInsets.all(16),
|
padding: const EdgeInsets.all(16),
|
||||||
children: [
|
children: [
|
||||||
|
|
|
||||||
|
|
@ -95,7 +95,9 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
body: ListView.builder(
|
body: Padding(
|
||||||
|
padding: const EdgeInsets.symmetric(horizontal: 8.0),
|
||||||
|
child: ListView.builder(
|
||||||
itemCount: allCommands.length,
|
itemCount: allCommands.length,
|
||||||
itemBuilder: (context, index) {
|
itemBuilder: (context, index) {
|
||||||
// You can keep this as 'context' or rename it
|
// You can keep this as 'context' or rename it
|
||||||
|
|
@ -105,6 +107,7 @@ class _HomeScreenState extends State<HomeScreen> {
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
),
|
||||||
floatingActionButton: Builder(
|
floatingActionButton: Builder(
|
||||||
builder: (context) {
|
builder: (context) {
|
||||||
return FloatingActionButton(
|
return FloatingActionButton(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue