π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] password screen added
Aman Raj Singh Mourya356d119fb95c
diff --git a/mobile/lib/generated/l10n.dart b/mobile/lib/generated/l10n.dartindex 7060b5a2ac..933d8dcf08 100644--- a/mobile/lib/generated/l10n.dart+++ b/mobile/lib/generated/l10n.dart@@ -90,6 +90,36 @@ class S {);}+ /// `Re-enter to confirm the pin`+ String get reEnterToConfirmPin {+ return Intl.message(+ 'Re-enter to confirm the pin',+ name: 'reEnterToConfirmPin',+ desc: '',+ args: [],+ );+ }++ /// `Enter the password to lock the app`+ String get enterPasswordToLockApp {+ return Intl.message(+ 'Enter the password to lock the app',+ name: 'enterPasswordToLockApp',+ desc: '',+ args: [],+ );+ }++ /// `Next`+ String get next {+ return Intl.message(+ 'Next',+ name: 'next',+ desc: '',+ args: [],+ );+ }+/// `When a pin is set , you need to enter password\n whenever you open the app .`String get whenPinIsSetYouNeedToEnterPassword {return Intl.message(diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option.dartindex 7eb9f698c4..7690954a00 100644--- a/mobile/lib/ui/settings/TEMP/lock_screen_option.dart+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option.dart@@ -6,6 +6,7 @@ import "package:photos/ui/components/divider_widget.dart";import "package:photos/ui/components/menu_item_widget/menu_item_widget.dart";import "package:photos/ui/components/title_bar_title_widget.dart";import "package:photos/ui/components/title_bar_widget.dart";+import "package:photos/ui/settings/TEMP/lock_screen_option_password.dart";import "package:photos/ui/settings/TEMP/lock_screen_option_pin.dart";class LockScreenOption extends StatelessWidget {@@ -97,6 +98,13 @@ class LockScreenOption extends StatelessWidget {menuItemColor: colorScheme.fillFaint,trailingIconIsMuted: true,trailingIcon: Icons.chevron_right_outlined,+ onTap: () => Navigator.of(context).push(+ MaterialPageRoute(+ builder: (BuildContext context) {+ return const LockScreenOptionPassword();+ },+ ),+ ),),],),diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_password.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_password.dartnew file mode 100644index 0000000000..b45ef06c19--- /dev/null+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_password.dart@@ -0,0 +1,159 @@+import "package:flutter/material.dart";+import "package:photos/generated/l10n.dart";+import "package:photos/theme/ente_theme.dart";+import "package:photos/ui/components/buttons/button_widget.dart";+import "package:photos/ui/components/buttons/icon_button_widget.dart";+import "package:photos/ui/components/dialog_widget.dart";+import "package:photos/ui/components/models/button_type.dart";+import "package:photos/ui/components/text_input_widget.dart";+import "package:photos/ui/settings/TEMP/lock_screen_option.dart";++class LockScreenOptionConfirmPassword extends StatefulWidget {+ const LockScreenOptionConfirmPassword({super.key, required this.password});+ final String password;+ @override+ State<LockScreenOptionConfirmPassword> createState() =>+ _LockScreenOptionConfirmPasswordState();+}++class _LockScreenOptionConfirmPasswordState+ extends State<LockScreenOptionConfirmPassword> {+ String confirmPassword = "";+ final _confirmPasswordController = TextEditingController(text: null);++ @override+ void dispose() {+ super.dispose();+ _confirmPasswordController.dispose();+ }++ @override+ void initState() {+ super.initState();+ }++ Future<void> _confirmPassword() async {+ if (widget.password == confirmPassword) {+ await showDialogWidget(+ context: context,+ title: 'Password has been set',+ icon: Icons.lock,+ body: 'Hereafter password has been required while opening the app.',+ isDismissible: true,+ buttons: [+ ButtonWidget(+ buttonType: ButtonType.secondary,+ labelText: S.of(context).ok,+ isInAlert: true,+ buttonAction: ButtonAction.first,+ ),+ ],+ );+ await Navigator.of(context).push(+ MaterialPageRoute(+ builder: (BuildContext context) => const LockScreenOption(),+ ),+ );+ } else {+ await showDialogWidget(+ context: context,+ title: 'Password does not match',+ icon: Icons.lock,+ body: 'Please re-enter the password.',+ isDismissible: true,+ buttons: [+ ButtonWidget(+ buttonType: ButtonType.secondary,+ labelText: S.of(context).ok,+ isInAlert: true,+ buttonAction: ButtonAction.first,+ ),+ ],+ );+ }+ _confirmPasswordController.clear();+ }++ @override+ Widget build(BuildContext context) {+ final colorTheme = getEnteColorScheme(context);+ final textTheme = getEnteTextTheme(context);+ return Scaffold(+ // resizeToAvoidBottomInset: false,+ body: Center(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.center,+ children: [+ const SizedBox(+ height: 120,+ ),+ SizedBox(+ height: 120,+ width: 120,+ child: Stack(+ children: [+ Align(+ alignment: Alignment.center,+ child: SizedBox(+ height: 75,+ width: 75,+ child: CircularProgressIndicator(+ backgroundColor: colorTheme.fillStrong,+ value: 1,+ strokeWidth: 1.5,+ ),+ ),+ ),+ Align(+ alignment: Alignment.center,+ child: IconButtonWidget(+ size: 30,+ icon: Icons.lock_outline,+ iconButtonType: IconButtonType.primary,+ iconColor: colorTheme.tabIcon,+ ),+ ),+ ],+ ),+ ),+ Text(+ S.of(context).enterPasswordToLockApp,+ style: textTheme.bodyBold,+ ),+ const Padding(padding: EdgeInsets.all(24)),+ Padding(+ padding: const EdgeInsets.symmetric(horizontal: 16),+ child: TextInputWidget(+ hintText: S.of(context).confirmPassword,+ borderRadius: 2,+ isClearable: true,+ textCapitalization: TextCapitalization.words,+ textEditingController: _confirmPasswordController,+ prefixIcon: Icons.lock_outline,+ isPasswordInput: true,+ onChange: (String p0) {+ setState(() {+ confirmPassword = p0;+ });+ },+ ),+ ),+ const Spacer(),+ Padding(+ padding: const EdgeInsets.all(18.0),+ child: ButtonWidget(+ labelText: S.of(context).next,+ buttonType: confirmPassword.length > 8+ ? ButtonType.primary+ : ButtonType.secondary,+ buttonSize: ButtonSize.large,+ onTap: () => _confirmPassword(),+ ),+ ),+ const Padding(padding: EdgeInsets.only(bottom: 24)),+ ],+ ),+ ),+ );+ }+}diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_pin.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_pin.dartnew file mode 100644index 0000000000..bcc01bcc8d--- /dev/null+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_pin.dart@@ -0,0 +1,180 @@+import "package:flutter/material.dart";+import "package:photos/generated/l10n.dart";+import "package:photos/theme/ente_theme.dart";+import "package:photos/ui/components/buttons/button_widget.dart";+import "package:photos/ui/components/buttons/icon_button_widget.dart";+import "package:photos/ui/components/dialog_widget.dart";+import "package:photos/ui/components/models/button_type.dart";+import "package:photos/ui/settings/TEMP/lock_screen_option.dart";+import "package:pinput/pin_put/pin_put.dart";++class LockScreenOptionConfirmPin extends StatefulWidget {+ const LockScreenOptionConfirmPin({super.key, required this.pin});+ final String pin;+ @override+ State<LockScreenOptionConfirmPin> createState() =>+ _LockScreenOptionConfirmPinState();+}++class _LockScreenOptionConfirmPinState+ extends State<LockScreenOptionConfirmPin> {+ final _confirmPinController = TextEditingController(text: null);++ final _pinPutDecoration = BoxDecoration(+ border: Border.all(color: const Color.fromRGBO(45, 194, 98, 1.0)),+ borderRadius: BorderRadius.circular(15.0),+ );+ @override+ void dispose() {+ super.dispose();+ _confirmPinController.dispose();+ }++ Future<void> confirmPin() async {+ if (widget.pin == _confirmCode) {+ await showDialogWidget(+ context: context,+ title: 'Pin has been set',+ icon: Icons.lock,+ body: 'Hereafter pin has been required while opening the app.',+ isDismissible: true,+ buttons: [+ ButtonWidget(+ buttonType: ButtonType.secondary,+ labelText: S.of(context).ok,+ isInAlert: true,+ buttonAction: ButtonAction.first,+ ),+ ],+ );+ await Navigator.of(context).push(+ MaterialPageRoute(+ builder: (BuildContext context) => const LockScreenOption(),+ ),+ );+ } else {+ await showDialogWidget(+ context: context,+ title: 'Pin does not match',+ icon: Icons.lock,+ body: 'Please re-enter the pin.',+ isDismissible: true,+ buttons: [+ ButtonWidget(+ buttonType: ButtonType.secondary,+ labelText: S.of(context).ok,+ isInAlert: true,+ buttonAction: ButtonAction.first,+ ),+ ],+ );+ }+ _confirmPinController.clear();+ }++ String _confirmCode = "";++ @override+ Widget build(BuildContext context) {+ final colorTheme = getEnteColorScheme(context);+ final textTheme = getEnteTextTheme(context);+ return Scaffold(+ // resizeToAvoidBottomInset: false,+ body: Center(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.center,+ children: [+ const SizedBox(+ height: 120,+ ),+ SizedBox(+ height: 120,+ width: 120,+ child: Stack(+ children: [+ Align(+ alignment: Alignment.center,+ child: SizedBox(+ height: 75,+ width: 75,+ child: ValueListenableBuilder(+ valueListenable: _confirmPinController,+ builder: (context, value, child) {+ return CircularProgressIndicator(+ backgroundColor: colorTheme.fillStrong,+ value: _confirmPinController.text.length / 4,+ color: colorTheme.primary400,+ strokeWidth: 1.5,+ );+ },+ ),+ ),+ ),+ Align(+ alignment: Alignment.center,+ child: IconButtonWidget(+ size: 30,+ icon: Icons.lock_outline,+ iconButtonType: IconButtonType.primary,+ iconColor: colorTheme.tabIcon,+ ),+ ),+ ],+ ),+ ),+ Text(+ S.of(context).reEnterToConfirmPin,+ style: textTheme.bodyBold,+ ),+ const Padding(padding: EdgeInsets.all(12)),+ Padding(+ padding: const EdgeInsets.fromLTRB(80, 0, 80, 0),+ child: PinPut(+ fieldsCount: 4,+ controller: _confirmPinController,+ submittedFieldDecoration: _pinPutDecoration.copyWith(+ borderRadius: BorderRadius.circular(20.0),+ ),+ selectedFieldDecoration: _pinPutDecoration,+ followingFieldDecoration: _pinPutDecoration.copyWith(+ borderRadius: BorderRadius.circular(5.0),+ border: Border.all(+ color: const Color.fromRGBO(45, 194, 98, 0.5),+ ),+ ),+ inputDecoration: const InputDecoration(+ focusedBorder: InputBorder.none,+ border: InputBorder.none,+ counterText: '',+ ),+ textStyle: textTheme.h3,+ obscureText: '*',+ onChanged: (String pin) {+ setState(() {+ _confirmCode = pin;+ });+ },+ onSubmit: (value) {+ FocusScope.of(context).unfocus();+ },+ ),+ ),+ const Spacer(),+ Padding(+ padding: const EdgeInsets.all(18.0),+ child: ButtonWidget(+ labelText: S.of(context).confirm,+ buttonType: _confirmCode.length == 4+ ? ButtonType.primary+ : ButtonType.secondary,+ buttonSize: ButtonSize.large,+ onTap: () => confirmPin(),+ ),+ ),+ const Padding(padding: EdgeInsets.only(bottom: 24)),+ ],+ ),+ ),+ );+ }+}diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option_password.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option_password.dartnew file mode 100644index 0000000000..88e440f9f5--- /dev/null+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_password.dart@@ -0,0 +1,143 @@+import "package:flutter/material.dart";+import "package:photos/generated/l10n.dart";+import "package:photos/theme/ente_theme.dart";+import "package:photos/ui/components/buttons/button_widget.dart";+import "package:photos/ui/components/buttons/icon_button_widget.dart";+import "package:photos/ui/components/dialog_widget.dart";+import "package:photos/ui/components/models/button_type.dart";+import "package:photos/ui/components/text_input_widget.dart";+import "package:photos/ui/settings/TEMP/lock_screen_option_confirm_password.dart";++class LockScreenOptionPassword extends StatefulWidget {+ const LockScreenOptionPassword({super.key});++ @override+ State<LockScreenOptionPassword> createState() =>+ _LockScreenOptionPasswordState();+}++class _LockScreenOptionPasswordState extends State<LockScreenOptionPassword> {+ final _passwordController = TextEditingController(text: null);+ String password = "";+ @override+ void dispose() {+ super.dispose();+ _passwordController.dispose();+ }++ @override+ void initState() {+ super.initState();+ }++ Future<void> _confirmPassword() async {+ if (password.length > 8) {+ await Navigator.of(context).push(+ MaterialPageRoute(+ builder: (BuildContext context) => LockScreenOptionConfirmPassword(+ password: password,+ ),+ ),+ );+ } else {+ await showDialogWidget(+ context: context,+ title: 'Password must have at least 8 characters',+ icon: Icons.lock,+ body: 'Please re-enter the password.',+ isDismissible: true,+ buttons: [+ ButtonWidget(+ buttonType: ButtonType.secondary,+ labelText: S.of(context).ok,+ isInAlert: true,+ buttonAction: ButtonAction.first,+ ),+ ],+ );+ }+ }++ @override+ Widget build(BuildContext context) {+ final colorTheme = getEnteColorScheme(context);+ final textTheme = getEnteTextTheme(context);+ return Scaffold(+ // resizeToAvoidBottomInset: false,+ body: Center(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.center,+ children: [+ const SizedBox(+ height: 120,+ ),+ SizedBox(+ height: 120,+ width: 120,+ child: Stack(+ children: [+ Align(+ alignment: Alignment.center,+ child: SizedBox(+ height: 75,+ width: 75,+ child: CircularProgressIndicator(+ backgroundColor: colorTheme.fillStrong,+ value: 1,+ strokeWidth: 1.5,+ ),+ ),+ ),+ Align(+ alignment: Alignment.center,+ child: IconButtonWidget(+ size: 30,+ icon: Icons.lock_outline,+ iconButtonType: IconButtonType.primary,+ iconColor: colorTheme.tabIcon,+ ),+ ),+ ],+ ),+ ),+ Text(+ S.of(context).enterPasswordToLockApp,+ style: textTheme.bodyBold,+ ),+ const Padding(padding: EdgeInsets.all(24)),+ Padding(+ padding: const EdgeInsets.symmetric(horizontal: 16),+ child: TextInputWidget(+ hintText: S.of(context).password,+ borderRadius: 2,+ isClearable: true,+ textCapitalization: TextCapitalization.words,+ textEditingController: _passwordController,+ prefixIcon: Icons.lock_outline,+ isPasswordInput: true,+ onChange: (String p0) {+ setState(() {+ password = p0;+ });+ },+ ),+ ),+ const Spacer(),+ Padding(+ padding: const EdgeInsets.all(18.0),+ child: ButtonWidget(+ labelText: S.of(context).next,+ buttonType: password.length > 8+ ? ButtonType.primary+ : ButtonType.secondary,+ buttonSize: ButtonSize.large,+ onTap: () => _confirmPassword(),+ ),+ ),+ const Padding(padding: EdgeInsets.only(bottom: 24)),+ ],+ ),+ ),+ );+ }+}diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dartindex 81334e9348..980aad80bf 100644--- a/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dart+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dart@@ -4,197 +4,139 @@ import "package:photos/theme/ente_theme.dart";import "package:photos/ui/components/buttons/button_widget.dart";import "package:photos/ui/components/buttons/icon_button_widget.dart";import "package:photos/ui/components/models/button_type.dart";+import "package:photos/ui/settings/TEMP/lock_screen_option_confirm_pin.dart";+import "package:pinput/pin_put/pin_put.dart";-class LockScreenOptionPin extends StatelessWidget {+class LockScreenOptionPin extends StatefulWidget {const LockScreenOptionPin({super.key});++ @override+ State<LockScreenOptionPin> createState() => _LockScreenOptionPinState();+}++class _LockScreenOptionPinState extends State<LockScreenOptionPin> {+ final _pinController = TextEditingController(text: null);+ final _pinPutDecoration = BoxDecoration(+ border: Border.all(color: const Color.fromRGBO(45, 194, 98, 1.0)),+ borderRadius: BorderRadius.circular(15.0),+ );+ @override+ void dispose() {+ super.dispose();+ _pinController.dispose();+ }++ String _code = "";+ Future<void> confirmPin(String code) async {+ await Navigator.of(context).push(+ MaterialPageRoute(+ builder: (BuildContext context) =>+ LockScreenOptionConfirmPin(pin: code),+ ),+ );+ }+@overrideWidget build(BuildContext context) {- final ValueNotifier<bool> isPinEnabled = ValueNotifier<bool>(false);final colorTheme = getEnteColorScheme(context);final textTheme = getEnteTextTheme(context);return Scaffold(- body: SafeArea(- child: Center(- child: Column(- mainAxisAlignment: MainAxisAlignment.center,- crossAxisAlignment: CrossAxisAlignment.center,- children: [- Container(- height: 80,- width: 80,- child: IconButtonWidget(- icon: Icons.lock_outline,- iconButtonType: IconButtonType.primary,- iconColor: colorTheme.tabIcon,- onTap: () {},- ),- ),- Text(- S.of(context).enterThePinToLockTheApp,- style: textTheme.bodyBold,+ // resizeToAvoidBottomInset: false,+ body: Center(+ child: Column(+ crossAxisAlignment: CrossAxisAlignment.center,+ children: [+ const SizedBox(+ height: 120,+ ),+ SizedBox(+ height: 120,+ width: 120,+ child: Stack(+ children: [+ Align(+ alignment: Alignment.center,+ child: SizedBox(+ height: 75,+ width: 75,+ child: ValueListenableBuilder(+ valueListenable: _pinController,+ builder: (context, value, child) {+ return CircularProgressIndicator(+ backgroundColor: colorTheme.fillStrong,+ value: _pinController.text.length / 4,+ color: colorTheme.primary400,+ strokeWidth: 1.5,+ );+ },+ ),+ ),+ ),+ Align(+ alignment: Alignment.center,+ child: IconButtonWidget(+ size: 30,+ icon: Icons.lock_outline,+ iconButtonType: IconButtonType.primary,+ iconColor: colorTheme.tabIcon,+ ),+ ),+ ],),- if (isPinEnabled.value == false)- Padding(- padding:- const EdgeInsets.symmetric(horizontal: 16, vertical: 8),- child: Text(- textAlign: TextAlign.center,- S.of(context).whenPinIsSetYouNeedToEnterPassword,- style: textTheme.smallFaint,+ ),+ Text(+ S.of(context).enterThePinToLockTheApp,+ style: textTheme.bodyBold,+ ),+ const Padding(padding: EdgeInsets.all(12)),+ Padding(+ padding: const EdgeInsets.fromLTRB(80, 0, 80, 0),+ child: PinPut(+ fieldsCount: 4,+ controller: _pinController,+ submittedFieldDecoration: _pinPutDecoration.copyWith(+ borderRadius: BorderRadius.circular(20.0),+ ),+ selectedFieldDecoration: _pinPutDecoration,+ followingFieldDecoration: _pinPutDecoration.copyWith(+ borderRadius: BorderRadius.circular(5.0),+ border: Border.all(+ color: const Color.fromRGBO(45, 194, 98, 0.5),),),- // ValueListenableBuilder(- // valueListenable: isPinEnabled,- // builder: (context, value, _) {- // return Padding(- // padding: const EdgeInsets.all(16.0),- // child: isPinEnabled.value- // ? ButtonWidget(- // labelText: S.of(context).enablePin,- // buttonType: ButtonType.neutral,- // buttonSize: ButtonSize.large,- // shouldStickToDarkTheme: true,- // isInAlert: true,- // )- // : ButtonWidget(- // labelText: S.of(context).yes,- // buttonType: ButtonType.neutral,- // buttonSize: ButtonSize.large,- // shouldStickToDarkTheme: true,- // isInAlert: true,- // ),- // );- // },- // ),- Padding(- padding: const EdgeInsets.all(16.0),- child: isPinEnabled.value- ? ButtonWidget(- labelText: S.of(context).enablePin,- buttonType: ButtonType.neutral,- buttonSize: ButtonSize.large,- shouldStickToDarkTheme: true,- isInAlert: true,- )- : ButtonWidget(- labelText: S.of(context).yes,- buttonType: ButtonType.neutral,- buttonSize: ButtonSize.large,- shouldStickToDarkTheme: true,- isInAlert: true,- ),+ inputDecoration: const InputDecoration(+ focusedBorder: InputBorder.none,+ border: InputBorder.none,+ counterText: '',+ ),+ textStyle: textTheme.h3,+ obscureText: '*',+ onChanged: (String pin) {+ setState(() {+ _code = pin;+ });+ },+ onSubmit: (value) {+ FocusScope.of(context).unfocus();+ },+ ),+ ),+ const Spacer(),+ Padding(+ padding: const EdgeInsets.all(18.0),+ child: ButtonWidget(+ labelText: 'Next',+ buttonType: _code.length == 4+ ? ButtonType.primary+ : ButtonType.secondary,+ buttonSize: ButtonSize.large,+ onTap: () => confirmPin(_code),),- ],- ),+ ),+ const Padding(padding: EdgeInsets.only(bottom: 24)),+ ],),),);}}-// import 'package:flutter/material.dart';-// import 'package:photos/generated/l10n.dart';-// import 'package:photos/theme/ente_theme.dart';-// import 'package:photos/ui/components/buttons/button_widget.dart';-// import 'package:photos/ui/components/buttons/icon_button_widget.dart';-// import 'package:photos/ui/components/models/button_type.dart';--// class LockScreenOptionPin extends StatelessWidget {-// final ValueNotifier<bool> isPinEnabled = ValueNotifier<bool>(false);--// @override-// Widget build(BuildContext context) {-// final colorTheme = getEnteColorScheme(context);-// final textTheme = getEnteTextTheme(context);--// return Scaffold(-// body: SafeArea(-// child: Center(-// child: ValueListenableBuilder<bool>(-// valueListenable: isPinEnabled,-// builder: (context, isPinEnabled, _) {-// return Column(-// mainAxisAlignment: MainAxisAlignment.center,-// crossAxisAlignment: CrossAxisAlignment.center,-// children: [-// SizedBox(-// height: 80,-// width: 80,-// child: IconButtonWidget(-// icon: Icons.lock_outline,-// iconButtonType: IconButtonType.primary,-// iconColor: colorTheme.tabIcon,-// onTap: () {},-// ),-// ),-// Text(-// isPinEnabled-// ? S.of(context).enterThePinToLockTheApp-// : S.of(context).enterThePinToLockTheApp,-// style: textTheme.bodyBold,-// ),-// if(isPinEnabled == false)--// Padding(-// padding: const EdgeInsets.symmetric(-// horizontal: 16,-// vertical: 8,-// ),-// child: Text(-// S.of(context).whenPinIsSetYouNeedToEnterPassword,-// textAlign: TextAlign.center,-// style: textTheme.smallFaint,-// ),-// ),-// if (!isPinEnabled)-// Padding(-// padding: const EdgeInsets.all(16.0),-// child: ButtonWidget(-// labelText: S.of(context).enablePin,-// buttonType: ButtonType.neutral,-// buttonSize: ButtonSize.large,-// shouldStickToDarkTheme: true,-// isInAlert: true,-// onTap: () {-// isPinEnabled.value = true;-// return Future<void>.value();-// },-// ),-// ),-// if (isPinEnabled)-// Padding(-// padding: const EdgeInsets.all(16.0),-// child: Column(-// children: [-// Row(-// mainAxisAlignment: MainAxisAlignment.spaceEvenly,-// children: List.generate(4, (index) {-// return Container(-// width: 50,-// height: 50,-// decoration: BoxDecoration(-// border: Border.all(color: colorTheme.tabIcon),-// borderRadius: BorderRadius.circular(8),-// ),-// );-// }),-// ),-// const SizedBox(height: 20),-// ButtonWidget(-// labelText: S.of(context).yes,-// buttonType: ButtonType.neutral,-// buttonSize: ButtonSize.large,-// shouldStickToDarkTheme: true,-// isInAlert: true,-// ),-// ],-// ),-// ),-// ],-// );-// },-// ),-// ),-// ),-// );-// }-// }