From d64d2ece052863b682840fd7ac98b859b0c9121d Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 29 Apr 2020 17:28:47 +0200 Subject: [PATCH] Ready to implement security settings --- .../account_security_settings.dart | 17 +++++++++++++++++ .../account_settings_route.dart | 11 ++++++++++- 2 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 lib/ui/routes/account_settings/account_security_settings.dart diff --git a/lib/ui/routes/account_settings/account_security_settings.dart b/lib/ui/routes/account_settings/account_security_settings.dart new file mode 100644 index 0000000..00db50b --- /dev/null +++ b/lib/ui/routes/account_settings/account_security_settings.dart @@ -0,0 +1,17 @@ +import 'package:comunic/utils/intl_utils.dart'; +import 'package:flutter/material.dart'; + +/// Account security settings +/// +/// @author Pierre HUBERT + +class AccountSecuritySettingsScreen extends StatelessWidget { + @override + Widget build(BuildContext context) { + return Scaffold( + appBar: AppBar( + title: Text(tr("Security settings")), + ), + ); + } +} diff --git a/lib/ui/routes/account_settings/account_settings_route.dart b/lib/ui/routes/account_settings/account_settings_route.dart index 0fc6789..0512efb 100644 --- a/lib/ui/routes/account_settings/account_settings_route.dart +++ b/lib/ui/routes/account_settings/account_settings_route.dart @@ -1,4 +1,5 @@ import 'package:comunic/ui/routes/account_settings/account_image_settings.dart'; +import 'package:comunic/ui/routes/account_settings/account_security_settings.dart'; import 'package:comunic/ui/routes/account_settings/custom_emojies_account_settings.dart'; import 'package:comunic/ui/routes/account_settings/general_account_settings.dart'; import 'package:comunic/utils/intl_utils.dart'; @@ -56,7 +57,15 @@ class __AccountSettingsBodyState extends State<_AccountSettingsBody> { subtitle: tr("Customize your account image"), leading: Icon(Icons.account_circle), onTap: () => _openSection(AccountImageSettingsScreen()), - ) + ), + + // Security settings + SettingsTile( + title: tr("Security"), + subtitle: tr("Manage security options of your account"), + leading: Icon(Icons.lock), + onTap: () => _openSection(AccountSecuritySettingsScreen()), + ), ], ) ],