1
0
mirror of https://gitlab.com/comunic/comunicmobile synced 2024-11-22 12:59:21 +00:00

Ready to implement security settings

This commit is contained in:
Pierre HUBERT 2020-04-29 17:28:47 +02:00
parent ae9491e198
commit d64d2ece05
2 changed files with 27 additions and 1 deletions

View File

@ -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")),
),
);
}
}

View File

@ -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()),
),
],
)
],