added settings

This commit is contained in:
esche 2023-06-26 17:42:09 +02:00
parent e0aa77fb96
commit e0b571a808
2 changed files with 21 additions and 10 deletions

View file

@ -31,7 +31,7 @@ class MyApp extends StatelessWidget {
brightness: Brightness.dark, brightness: Brightness.dark,
seedColor: const Color(0xff5f7c61), seedColor: const Color(0xff5f7c61),
)), )),
themeMode: ThemeMode.dark, themeMode: ThemeMode.system,
home: const MyHomePage(), home: const MyHomePage(),
); );
} }
@ -82,15 +82,7 @@ class _MyHomePageState extends State<MyHomePage> {
body: <Widget>[ body: <Widget>[
const Shopping(), const Shopping(),
const Finance(), const Finance(),
ListView(children: const <Widget>[ const Settings()
ListTile(
leading: Icon(Icons.dark_mode),
title: Text(
'Hier könnten Einstellungen zu Darkmode mit shared_preferences und riverpod sein',
maxLines: 2,
),
)
])
][currentPageIndex], ][currentPageIndex],
); );
} }

View file

@ -0,0 +1,19 @@
import 'package:flutter/material.dart';
class Settings extends StatelessWidget {
const Settings({super.key});
@override
Widget build(BuildContext context) {
//Hier in dem Return kann der Inhalt des Setting Tabs angepasst werden
return ListView(children: const <Widget>[
ListTile(
leading: Icon(Icons.dark_mode),
title: Text(
'Hier könnten Einstellungen zu Darkmode mit shared_preferences und riverpod sein',
maxLines: 2,
),
)
]);
}
}