mirror of
https://gitlab.com/comunic/comunicmobile
synced 2025-06-19 16:25:17 +00:00
Can ask user his password
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import 'package:comunic/ui/dialogs/input_user_password_dialog.dart';
|
||||
import 'package:comunic/utils/intl_utils.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:settings_ui/settings_ui.dart';
|
||||
|
||||
/// Account security settings
|
||||
///
|
||||
@ -12,6 +14,38 @@ class AccountSecuritySettingsScreen extends StatelessWidget {
|
||||
appBar: AppBar(
|
||||
title: Text(tr("Security settings")),
|
||||
),
|
||||
body: _AccountSecuritySettingsScreenBody(),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
class _AccountSecuritySettingsScreenBody extends StatefulWidget {
|
||||
@override
|
||||
__AccountSecuritySettingsScreenBodyState createState() =>
|
||||
__AccountSecuritySettingsScreenBodyState();
|
||||
}
|
||||
|
||||
class __AccountSecuritySettingsScreenBodyState
|
||||
extends State<_AccountSecuritySettingsScreenBody> {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return SettingsList(
|
||||
sections: [
|
||||
SettingsSection(
|
||||
title: tr("Password"),
|
||||
tiles: [
|
||||
SettingsTile(
|
||||
title: tr("Change password"),
|
||||
onTap: _changePassword,
|
||||
),
|
||||
],
|
||||
)
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
/// Change current user password
|
||||
void _changePassword() async {
|
||||
final currPassword = await showUserPasswordDialog(context);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user