π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
refactor: replace Pinput with PinInputComponent and remove unused dependencies
AmanRajSinghMouryaf431e02267cc
diff --git a/mobile/packages/lock_screen/lib/ui/lock_screen_pin_input.dart b/mobile/packages/lock_screen/lib/ui/lock_screen_pin_input.dartindex 26fc0db18f..7c01dfd5b5 100644--- a/mobile/packages/lock_screen/lib/ui/lock_screen_pin_input.dart+++ b/mobile/packages/lock_screen/lib/ui/lock_screen_pin_input.dart@@ -1,6 +1,5 @@import "package:ente_components/ente_components.dart";import "package:flutter/material.dart";-import "package:pinput/pinput.dart";class LockScreenPinInput extends StatelessWidget {const LockScreenPinInput({@@ -20,18 +19,6 @@ class LockScreenPinInput extends StatelessWidget {@overrideWidget build(BuildContext context) {- final colorTheme = context.componentColors;- final pinPutDecoration = PinTheme(- height: 48,- width: 48,- padding: const EdgeInsets.only(top: 6.0),- decoration: BoxDecoration(- color: colorTheme.backgroundBase,- border: Border.all(color: colorTheme.strokeDark, width: 1),- borderRadius: BorderRadius.circular(15.0),- ),- );-return Center(child: Padding(padding: const EdgeInsets.symmetric(horizontal: 24.0),@@ -43,48 +30,13 @@ class LockScreenPinInput extends StatelessWidget {const SizedBox(height: 24),Text(title, style: TextStyles.bodyBold),const Padding(padding: EdgeInsets.all(12)),- Pinput(+ PinInputComponent(length: 4,- showCursor: false,- useNativeKeyboard: useNativeKeyboard,controller: controller,autofocus: true,- defaultPinTheme: pinPutDecoration.copyWith(- textStyle: TextStyles.h2,- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(15.0),- border: Border.all(color: colorTheme.strokeDark),- ),- ),- submittedPinTheme: pinPutDecoration.copyWith(- textStyle: TextStyles.h2.copyWith(color: colorTheme.primary),- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(15.0),- border: Border.all(color: colorTheme.primary),- ),- ),- followingPinTheme: pinPutDecoration.copyWith(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(15.0),- border: Border.all(color: colorTheme.strokeDark),- ),- ),- focusedPinTheme: pinPutDecoration.copyWith(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(15.0),- border: Border.all(color: colorTheme.fillBase),- ),- ),- errorPinTheme: pinPutDecoration.copyWith(- decoration: BoxDecoration(- borderRadius: BorderRadius.circular(15.0),- border: Border.all(color: colorTheme.warning),- ),- ),- forceErrorState: forceErrorState,+ useNativeKeyboard: useNativeKeyboard,obscureText: true,- obscuringCharacter: '*',- errorText: '',+ isError: forceErrorState,onCompleted: onCompleted,),],diff --git a/mobile/packages/lock_screen/pubspec.yaml b/mobile/packages/lock_screen/pubspec.yamlindex fee154dea0..36a6e336ae 100644--- a/mobile/packages/lock_screen/pubspec.yaml+++ b/mobile/packages/lock_screen/pubspec.yaml@@ -44,7 +44,6 @@ dependencies:local_auth_linux:path: ../local_auth_linuxlogging: 1.3.0- pinput: 5.0.2shared_preferences: 2.5.3dev_dependencies: