forked from mgl_crew/Mitgliederladen
added settings
This commit is contained in:
parent
e0aa77fb96
commit
e0b571a808
2 changed files with 21 additions and 10 deletions
|
@ -31,7 +31,7 @@ class MyApp extends StatelessWidget {
|
|||
brightness: Brightness.dark,
|
||||
seedColor: const Color(0xff5f7c61),
|
||||
)),
|
||||
themeMode: ThemeMode.dark,
|
||||
themeMode: ThemeMode.system,
|
||||
home: const MyHomePage(),
|
||||
);
|
||||
}
|
||||
|
@ -82,15 +82,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||
body: <Widget>[
|
||||
const Shopping(),
|
||||
const Finance(),
|
||||
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,
|
||||
),
|
||||
)
|
||||
])
|
||||
const Settings()
|
||||
][currentPageIndex],
|
||||
);
|
||||
}
|
||||
|
|
|
@ -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,
|
||||
),
|
||||
)
|
||||
]);
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue