π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] changes to the Pinput container
Aman Raj Singh Mourya1d9f4e27c7d4
diff --git a/mobile/lib/services/local_authentication_service.dart b/mobile/lib/services/local_authentication_service.dartindex c057724ff1..badf20775f 100644--- a/mobile/lib/services/local_authentication_service.dart+++ b/mobile/lib/services/local_authentication_service.dart@@ -15,8 +15,6 @@ class LocalAuthenticationService {static final LocalAuthenticationService instance =LocalAuthenticationService._privateConstructor();- final Configuration _configuration = Configuration.instance;-Future<bool> requestLocalAuthentication(BuildContext context,String infoMessage,@@ -37,10 +35,11 @@ class LocalAuthenticationService {return true;}- Future<bool> requestEnteAuthForLockScreen(BuildContext context) async {- final String? savedPin = await _configuration.getPin();- final String? savedPassword = await _configuration.getPassword();-+ Future<bool> requestEnteAuthForLockScreen(+ BuildContext context,+ String? savedPin,+ String? savedPassword,+ ) async {if (savedPassword != null) {final result = await Navigator.of(context).push(MaterialPageRoute(diff --git a/mobile/lib/ui/components/text_input_widget.dart b/mobile/lib/ui/components/text_input_widget.dartindex ca548595d8..48ef8c2325 100644--- a/mobile/lib/ui/components/text_input_widget.dart+++ b/mobile/lib/ui/components/text_input_widget.dart@@ -46,7 +46,7 @@ class TextInputWidget extends StatefulWidget {final ValueNotifier? isEmptyNotifier;final List<TextInputFormatter>? textInputFormatter;final TextInputType? textInputType;- final bool? fillColor;+ final bool? enableFillColor;const TextInputWidget({this.onSubmit,this.onChange,@@ -75,7 +75,7 @@ class TextInputWidget extends StatefulWidget {this.isEmptyNotifier,this.textInputFormatter,this.textInputType,- this.fillColor = true,+ this.enableFillColor = true,super.key,});@@ -163,7 +163,7 @@ class _TextInputWidgetState extends State<TextInputWidget> {decoration: InputDecoration(hintText: widget.hintText,hintStyle: textTheme.body.copyWith(color: colorScheme.textMuted),- filled: widget.fillColor,+ filled: widget.enableFillColor,fillColor: colorScheme.fillFaint,contentPadding: const EdgeInsets.fromLTRB(12,diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option.dartindex 805f1207b6..9007266ff4 100644--- a/mobile/lib/ui/settings/TEMP/lock_screen_option.dart+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option.dart@@ -20,18 +20,18 @@ class LockScreenOption extends StatefulWidget {class _LockScreenOptionState extends State<LockScreenOption> {final Configuration _configuration = Configuration.instance;- bool? appLock;+ late bool appLock;bool isPinEnabled = false;bool isPasswordEnabled = false;@overridevoid initState() {+ super.initState();isPasswordEnabled = _configuration.isPasswordSet();isPinEnabled = _configuration.isPinSet();appLock = isPinEnabled ||isPasswordEnabled ||_configuration.shouldShowLockScreen();- super.initState();}Future<void> _deviceLock() async {@@ -84,17 +84,17 @@ class _LockScreenOptionState extends State<LockScreenOption> {Future<void> _onToggleSwitch() async {if (appLock == false && !(isPasswordEnabled || isPinEnabled)) {- AppLock.of(context)!.setEnabled(!appLock!);- await Configuration.instance.setShouldShowLockScreen(!appLock!);+ AppLock.of(context)!.setEnabled(!appLock);+ await Configuration.instance.setShouldShowLockScreen(!appLock);} else {- AppLock.of(context)!.setEnabled(!appLock!);- await Configuration.instance.setShouldShowLockScreen(!appLock!);+ AppLock.of(context)!.setEnabled(!appLock);+ await Configuration.instance.setShouldShowLockScreen(!appLock);}await _configuration.removePinAndPassword();setState(() {isPasswordEnabled = _configuration.isPasswordSet();isPinEnabled = _configuration.isPinSet();- appLock = !appLock!;+ appLock = !appLock;});}@@ -132,14 +132,14 @@ class _LockScreenOptionState extends State<LockScreenOption> {isBottomBorderRadiusRemoved: false,menuItemColor: colorTheme.fillFaint,trailingWidget: ToggleSwitchWidget(- value: () => appLock!,+ value: () => appLock,onChanged: () => _onToggleSwitch(),),),const Padding(padding: EdgeInsets.only(top: 16),),- appLock!+ appLock? Container(): Padding(padding: const EdgeInsets.only(@@ -154,7 +154,7 @@ class _LockScreenOptionState extends State<LockScreenOption> {),],),- appLock!+ appLock? Column(children: [const SizedBox(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.dartindex 622700064c..e86b362c8d 100644--- a/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_password.dart+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_password.dart@@ -25,7 +25,6 @@ class _LockScreenOptionConfirmPasswordStatefinal Configuration _configuration = Configuration.instance;final _focusNode = FocusNode();final _isFormValid = ValueNotifier<bool>(false);-final _submitNotifier = ValueNotifier(false);@overridevoid initState() {@@ -39,6 +38,7 @@ class _LockScreenOptionConfirmPasswordStatevoid dispose() {_submitNotifier.dispose();_focusNode.dispose();+ _isFormValid.dispose();super.dispose();}@@ -58,7 +58,7 @@ class _LockScreenOptionConfirmPasswordStateWidget build(BuildContext context) {final colorTheme = getEnteColorScheme(context);final textTheme = getEnteTextTheme(context);- final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;+ final isKeypadOpen = MediaQuery.viewInsetsOf(context).bottom > 100;FloatingActionButtonLocation? fabLocation() {if (isKeypadOpen) {@@ -144,7 +144,7 @@ class _LockScreenOptionConfirmPasswordStatechild: TextInputWidget(hintText: S.of(context).confirmPassword,focusNode: _focusNode,- fillColor: false,+ enableFillColor: false,textCapitalization: TextCapitalization.none,textEditingController: _confirmPasswordController,isPasswordInput: true,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.dartindex 80fefe4c41..2a24ffbe07 100644--- a/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_pin.dart+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_confirm_pin.dart@@ -17,7 +17,6 @@ class _LockScreenOptionConfirmPinStateextends State<LockScreenOptionConfirmPin> {final _confirmPinController = TextEditingController(text: null);final Configuration _configuration = Configuration.instance;- Key _pinputKey = UniqueKey();final _pinPutDecoration = PinTheme(height: 48,width: 48,@@ -26,10 +25,6 @@ class _LockScreenOptionConfirmPinStateborderRadius: BorderRadius.circular(15.0),),);- @override- void initState() {- super.initState();- }@overridevoid dispose() {@@ -37,17 +32,15 @@ class _LockScreenOptionConfirmPinState_confirmPinController.dispose();}- String _pin = "";-- void onClick(String number) {- _pin += number;- _confirmPinController.text = _pin;+ void _onKeyTap(String number) {+ _confirmPinController.text += number;+ return;}- void removeNum() {- if (_pin.isNotEmpty) {- _pin = _pin.substring(0, _pin.length - 1);- _confirmPinController.text = _pin;+ void _onBackspace() {+ if (_confirmPinController.text.isNotEmpty) {+ _confirmPinController.text = _confirmPinController.text+ .substring(0, _confirmPinController.text.length - 1);}return;}@@ -62,8 +55,6 @@ class _LockScreenOptionConfirmPinState}await HapticFeedback.vibrate();_confirmPinController.clear();- _pin = "";- _pinputKey = UniqueKey();}@override@@ -139,60 +130,54 @@ class _LockScreenOptionConfirmPinStatestyle: textTheme.bodyBold,),const Padding(padding: EdgeInsets.all(12)),- Padding(- padding: const EdgeInsets.fromLTRB(70, 0, 70, 0),- child: Pinput(- key: _pinputKey,- length: 4,- useNativeKeyboard: false,- mainAxisAlignment: MainAxisAlignment.spaceBetween,- crossAxisAlignment: CrossAxisAlignment.center,- controller: _confirmPinController,- defaultPinTheme: _pinPutDecoration,- submittedPinTheme: _pinPutDecoration.copyWith(- textStyle: textTheme.h3Bold,- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(10.0),- border: Border.all(- color: colorTheme.fillBase,- ),+ Pinput(+ length: 4,+ useNativeKeyboard: false,+ controller: _confirmPinController,+ defaultPinTheme: _pinPutDecoration,+ submittedPinTheme: _pinPutDecoration.copyWith(+ textStyle: textTheme.h3Bold,+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(10.0),+ border: Border.all(+ color: colorTheme.fillBase,),),- followingPinTheme: _pinPutDecoration.copyWith(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(10.0),- border: Border.all(- color: colorTheme.fillMuted,- ),+ ),+ followingPinTheme: _pinPutDecoration.copyWith(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(10.0),+ border: Border.all(+ color: colorTheme.fillMuted,),),- focusedPinTheme: _pinPutDecoration,- errorPinTheme: _pinPutDecoration.copyWith(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(10.0),- border: Border.all(- color: colorTheme.fillBase,- ),+ ),+ focusedPinTheme: _pinPutDecoration,+ errorPinTheme: _pinPutDecoration.copyWith(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(10.0),+ border: Border.all(+ color: colorTheme.fillBase,),- textStyle:- textTheme.h3Bold.copyWith(color: colorTheme.warning400),),- errorText: '',- obscureText: true,- obscuringCharacter: '*',- validator: (value) {- if (value == widget.pin) {- return null;- } else {- value = null;- return 'PIN does not match';- }- },- onCompleted: (value) async {- await Future.delayed(const Duration(milliseconds: 250));- await _confirmPinMatch();- },+ textStyle:+ textTheme.h3Bold.copyWith(color: colorTheme.warning400),),+ errorText: '',+ obscureText: true,+ obscuringCharacter: '*',+ validator: (value) {+ if (value == widget.pin) {+ return null;+ } else {+ value = null;+ return 'PIN does not match';+ }+ },+ onCompleted: (value) async {+ await Future.delayed(const Duration(milliseconds: 250));+ await _confirmPinMatch();+ },),const Spacer(),Container(@@ -208,7 +193,7 @@ class _LockScreenOptionConfirmPinStatetext: '',number: '1',onTap: () {- onClick('1');+ _onKeyTap('1');},),buttonWidget(@@ -217,7 +202,7 @@ class _LockScreenOptionConfirmPinStatetext: "ABC",number: '2',onTap: () {- onClick('2');+ _onKeyTap('2');},),buttonWidget(@@ -226,7 +211,7 @@ class _LockScreenOptionConfirmPinStatetext: "DEF",number: '3',onTap: () {- onClick('3');+ _onKeyTap('3');},),],@@ -239,7 +224,7 @@ class _LockScreenOptionConfirmPinStatenumber: '4',text: "GHI",onTap: () {- onClick('4');+ _onKeyTap('4');},),buttonWidget(@@ -248,7 +233,7 @@ class _LockScreenOptionConfirmPinStatenumber: '5',text: 'JKL',onTap: () {- onClick('5');+ _onKeyTap('5');},),buttonWidget(@@ -257,7 +242,7 @@ class _LockScreenOptionConfirmPinStatenumber: '6',text: 'MNO',onTap: () {- onClick('6');+ _onKeyTap('6');},),],@@ -270,7 +255,7 @@ class _LockScreenOptionConfirmPinStatenumber: '7',text: 'PQRS',onTap: () {- onClick('7');+ _onKeyTap('7');},),buttonWidget(@@ -279,7 +264,7 @@ class _LockScreenOptionConfirmPinStatenumber: '8',text: 'TUV',onTap: () {- onClick('8');+ _onKeyTap('8');},),buttonWidget(@@ -288,7 +273,7 @@ class _LockScreenOptionConfirmPinStatenumber: '9',text: 'WXYZ',onTap: () {- onClick('9');+ _onKeyTap('9');},),],@@ -308,7 +293,7 @@ class _LockScreenOptionConfirmPinStatenumber: '0',text: '',onTap: () {- onClick('0');+ _onKeyTap('0');},),buttonWidget(@@ -318,7 +303,7 @@ class _LockScreenOptionConfirmPinStatetext: '',icons: const Icon(Icons.backspace_outlined),onTap: () {- removeNum();+ _onBackspace();},),],diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option_password.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option_password.dartindex 1447189e1c..87e92e82d2 100644--- a/mobile/lib/ui/settings/TEMP/lock_screen_option_password.dart+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_password.dart@@ -71,7 +71,7 @@ class _LockScreenOptionPasswordState extends State<LockScreenOptionPassword> {Widget build(BuildContext context) {final colorTheme = getEnteColorScheme(context);final textTheme = getEnteTextTheme(context);- final isKeypadOpen = MediaQuery.of(context).viewInsets.bottom > 100;+ final isKeypadOpen = MediaQuery.viewInsetsOf(context).bottom > 100;FloatingActionButtonLocation? fabLocation() {if (isKeypadOpen) {@@ -158,7 +158,7 @@ class _LockScreenOptionPasswordState extends State<LockScreenOptionPassword> {child: TextInputWidget(hintText: S.of(context).password,focusNode: _focusNode,- fillColor: false,+ enableFillColor: false,textCapitalization: TextCapitalization.none,textEditingController: _passwordController,isPasswordInput: true,diff --git a/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dart b/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dartindex 7e204383b3..1add61527c 100644--- a/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dart+++ b/mobile/lib/ui/settings/TEMP/lock_screen_option_pin.dart@@ -20,11 +20,6 @@ class LockScreenOptionPin extends StatefulWidget {class _LockScreenOptionPinState extends State<LockScreenOptionPin> {final _pinController = TextEditingController(text: null);- Key _pinputKey = UniqueKey();- @override- void initState() {- super.initState();- }@overridevoid dispose() {@@ -32,17 +27,15 @@ class _LockScreenOptionPinState extends State<LockScreenOptionPin> {_pinController.dispose();}- String _pin = "";-- void onClick(String number) {- _pin += number;- _pinController.text = _pin;+ void _onKeyTap(String number) {+ _pinController.text += number;+ return;}- void removeNum() {- if (_pin.isNotEmpty) {- _pin = _pin.substring(0, _pin.length - 1);- _pinController.text = _pin;+ void _onBackspace() {+ if (_pinController.text.isNotEmpty) {+ _pinController.text =+ _pinController.text.substring(0, _pinController.text.length - 1);}return;}@@ -53,8 +46,6 @@ class _LockScreenOptionPinState extends State<LockScreenOptionPin> {return true;}_pinController.clear();- _pin = "";- _pinputKey = UniqueKey();await HapticFeedback.vibrate();return false;}@@ -71,7 +62,6 @@ class _LockScreenOptionPinState extends State<LockScreenOptionPin> {),);_pinController.clear();- _pin = "";}}@@ -104,6 +94,8 @@ class _LockScreenOptionPinState extends State<LockScreenOptionPin> {body: Center(child: Column(crossAxisAlignment: CrossAxisAlignment.center,+ // mainAxisAlignment: MainAxisAlignment.center,+ mainAxisSize: MainAxisSize.min,children: [const SizedBox(height: 60,@@ -157,195 +149,187 @@ class _LockScreenOptionPinState extends State<LockScreenOptionPin> {style: textTheme.bodyBold,),const Padding(padding: EdgeInsets.all(12)),- Column(- children: [- Padding(- padding: const EdgeInsets.fromLTRB(70, 0, 70, 0),- child: Pinput(- key: _pinputKey,- length: 4,- mainAxisAlignment: MainAxisAlignment.spaceBetween,- crossAxisAlignment: CrossAxisAlignment.center,- useNativeKeyboard: false,- controller: _pinController,- defaultPinTheme: _pinPutDecoration,- submittedPinTheme: _pinPutDecoration.copyWith(- textStyle: textTheme.h3Bold,- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(10.0),- border: Border.all(- color: colorTheme.fillBase,+ Pinput(+ length: 4,+ useNativeKeyboard: false,+ controller: _pinController,+ defaultPinTheme: _pinPutDecoration,+ submittedPinTheme: _pinPutDecoration.copyWith(+ textStyle: textTheme.h3Bold,+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(10.0),+ border: Border.all(+ color: colorTheme.fillBase,+ ),+ ),+ ),+ followingPinTheme: _pinPutDecoration.copyWith(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(10.0),+ border: Border.all(+ color: colorTheme.fillMuted,+ ),+ ),+ ),+ focusedPinTheme: _pinPutDecoration,+ errorPinTheme: _pinPutDecoration.copyWith(+ decoration: BoxDecoration(+ borderRadius: BorderRadius.circular(10.0),+ border: Border.all(+ color: colorTheme.fillBase,+ ),+ ),+ textStyle:+ textTheme.h3Bold.copyWith(color: colorTheme.warning400),+ ),+ validator: widget.isAuthenticating+ ? (value) {+ if (widget.authPin == value) {+ return null;+ }+ return 'Invalid PIN';+ }+ : null,+ errorText: '',+ obscureText: true,+ obscuringCharacter: '*',+ onCompleted: (value) async {+ await Future.delayed(const Duration(milliseconds: 250));+ await _confirmPin(_pinController.text);+ },+ ),+ const Spacer(),+ SafeArea(+ child: Container(+ padding: const EdgeInsets.all(2),+ color: colorTheme.strokeFainter,+ child: Column(+ children: [+ Row(+ children: [+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ text: '',+ number: '1',+ onTap: () {+ _onKeyTap('1');+ },),- ),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ text: "ABC",+ number: '2',+ onTap: () {+ _onKeyTap('2');+ },+ ),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ text: "DEF",+ number: '3',+ onTap: () {+ _onKeyTap('3');+ },+ ),+ ],),- followingPinTheme: _pinPutDecoration.copyWith(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(10.0),- border: Border.all(- color: colorTheme.fillMuted,+ Row(+ children: [+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '4',+ text: "GHI",+ onTap: () {+ _onKeyTap('4');+ },),- ),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '5',+ text: 'JKL',+ onTap: () {+ _onKeyTap('5');+ },+ ),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '6',+ text: 'MNO',+ onTap: () {+ _onKeyTap('6');+ },+ ),+ ],),- focusedPinTheme: _pinPutDecoration,- errorPinTheme: _pinPutDecoration.copyWith(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(10.0),- border: Border.all(- color: colorTheme.fillBase,+ Row(+ children: [+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '7',+ text: 'PQRS',+ onTap: () {+ _onKeyTap('7');+ },),- ),- textStyle: textTheme.h3Bold- .copyWith(color: colorTheme.warning400),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '8',+ text: 'TUV',+ onTap: () {+ _onKeyTap('8');+ },+ ),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '9',+ text: 'WXYZ',+ onTap: () {+ _onKeyTap('9');+ },+ ),+ ],),- validator: widget.isAuthenticating- ? (value) {- if (widget.authPin == value) {- return null;- }- return 'Invalid PIN';- }- : null,- errorText: '',- obscureText: true,- obscuringCharacter: '*',- onCompleted: (value) async {- await Future.delayed(const Duration(milliseconds: 250));- await _confirmPin(_pinController.text);- },- ),+ Row(+ children: [+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '',+ text: '',+ muteButton: true,+ ),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '0',+ text: '',+ onTap: () {+ _onKeyTap('0');+ },+ ),+ buttonWidget(+ colorTheme: colorTheme,+ textTheme: textTheme,+ number: '',+ text: '',+ icons: const Icon(Icons.backspace_outlined),+ onTap: () {+ _onBackspace();+ },+ ),+ ],+ ),+ ],),- ],- ),- const Spacer(),- Container(- padding: const EdgeInsets.all(2),- color: colorTheme.strokeFainter,- child: Column(- children: [- Row(- children: [- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- text: '',- number: '1',- onTap: () {- onClick('1');- },- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- text: "ABC",- number: '2',- onTap: () {- onClick('2');- },- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- text: "DEF",- number: '3',- onTap: () {- onClick('3');- },- ),- ],- ),- Row(- children: [- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '4',- text: "GHI",- onTap: () {- onClick('4');- },- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '5',- text: 'JKL',- onTap: () {- onClick('5');- },- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '6',- text: 'MNO',- onTap: () {- onClick('6');- },- ),- ],- ),- Row(- children: [- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '7',- text: 'PQRS',- onTap: () {- onClick('7');- },- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '8',- text: 'TUV',- onTap: () {- onClick('8');- },- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '9',- text: 'WXYZ',- onTap: () {- onClick('9');- },- ),- ],- ),- Row(- children: [- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '',- text: '',- muteButton: true,- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '0',- text: '',- onTap: () {- onClick('0');- },- ),- buttonWidget(- colorTheme: colorTheme,- textTheme: textTheme,- number: '',- text: '',- icons: const Icon(Icons.backspace_outlined),- onTap: () {- removeNum();- },- ),- ],- ),- ],),),],@@ -395,7 +379,7 @@ class _LockScreenOptionPinState extends State<LockScreenOptionPin> {),Text(text,- style: textTheme.small,+ style: textTheme.miniBold,),],),diff --git a/mobile/lib/utils/auth_util.dart b/mobile/lib/utils/auth_util.dartindex 7d1ad0d6fc..ea86e72da2 100644--- a/mobile/lib/utils/auth_util.dart+++ b/mobile/lib/utils/auth_util.dart@@ -15,7 +15,7 @@ Future<bool> requestAuthentication(BuildContext context, String reason) async {final String? savedPassword = await configuration.getPassword();if (savedPassword != null || savedPin != null) {return await LocalAuthenticationService.instance- .requestEnteAuthForLockScreen(context);+ .requestEnteAuthForLockScreen(context, savedPin, savedPassword);} else {return await LocalAuthentication().authenticate(localizedReason: reason,