1
0
Fork 0

Begin add settings

This commit is contained in:
Florian RICHER (MrDev023) 2022-04-26 22:51:48 +02:00
parent 96a8f41525
commit 2d8cb121b5
6 changed files with 229 additions and 15 deletions

View file

@ -27,7 +27,7 @@ class _HomePageState extends State<HomePage> {
Widget buildContent(BuildContext context, SharedPreferences prefs) {
return Column(children: [
if (!connected)
Row(mainAxisAlignment: MainAxisAlignment.center, children: [
Row(mainAxisAlignment: MainAxisAlignment.spaceAround, children: [
EmailForm(
prefs: prefs,
onValid: (String email, String password) async {
@ -39,7 +39,12 @@ class _HomePageState extends State<HomePage> {
setState(() {
connected = value;
});
})
}),
TextButton(
onPressed: () async {
Navigator.of(context).pushNamed(Routes.mailSettings.path);
},
child: const Text('Paramètres')),
]),
if (connected)
Row(