Begin add settings
This commit is contained in:
parent
96a8f41525
commit
2d8cb121b5
6 changed files with 229 additions and 15 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue