π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Custom keypad position fixed
Aman Raj Singh Mourya45331de54eaf
diff --git a/auth/lib/ui/settings/lock_screen/custom_pin_keypad.dart b/auth/lib/ui/settings/lock_screen/custom_pin_keypad.dartindex e2a8c2b485..a7edce4c61 100644--- a/auth/lib/ui/settings/lock_screen/custom_pin_keypad.dart+++ b/auth/lib/ui/settings/lock_screen/custom_pin_keypad.dart@@ -10,108 +10,116 @@ class CustomPinKeypad extends StatelessWidget {return SafeArea(child: Container(padding: const EdgeInsets.all(2),- color: getEnteColorScheme(context).strokeFainter,+ // color: getEnteColorScheme(context).strokeFainter,child: Column(+ mainAxisAlignment: MainAxisAlignment.end,children: [- Row(- children: [- _Button(- text: '',- number: '1',- onTap: () {- _onKeyTap('1');- },- ),- _Button(- text: "ABC",- number: '2',- onTap: () {- _onKeyTap('2');- },- ),- _Button(- text: "DEF",- number: '3',- onTap: () {- _onKeyTap('3');- },- ),- ],- ),- Row(- children: [- _Button(- number: '4',- text: "GHI",- onTap: () {- _onKeyTap('4');- },- ),- _Button(- number: '5',- text: 'JKL',- onTap: () {- _onKeyTap('5');- },- ),- _Button(- number: '6',- text: 'MNO',- onTap: () {- _onKeyTap('6');- },- ),- ],- ),- Row(- children: [- _Button(- number: '7',- text: 'PQRS',- onTap: () {- _onKeyTap('7');- },- ),- _Button(- number: '8',- text: 'TUV',- onTap: () {- _onKeyTap('8');- },- ),- _Button(- number: '9',- text: 'WXYZ',- onTap: () {- _onKeyTap('9');- },- ),- ],- ),- Row(- children: [- const _Button(- number: '',- text: '',- muteButton: true,- onTap: null,- ),- _Button(- number: '0',- text: '',- onTap: () {- _onKeyTap('0');- },- ),- _Button(- number: '',- text: '',- icon: const Icon(Icons.backspace_outlined),- onTap: () {- _onBackspace();- },- ),- ],+ Container(+ color: getEnteColorScheme(context).strokeFainter,+ child: Column(+ children: [+ Row(+ children: [+ _Button(+ text: '',+ number: '1',+ onTap: () {+ _onKeyTap('1');+ },+ ),+ _Button(+ text: "ABC",+ number: '2',+ onTap: () {+ _onKeyTap('2');+ },+ ),+ _Button(+ text: "DEF",+ number: '3',+ onTap: () {+ _onKeyTap('3');+ },+ ),+ ],+ ),+ Row(+ children: [+ _Button(+ number: '4',+ text: "GHI",+ onTap: () {+ _onKeyTap('4');+ },+ ),+ _Button(+ number: '5',+ text: 'JKL',+ onTap: () {+ _onKeyTap('5');+ },+ ),+ _Button(+ number: '6',+ text: 'MNO',+ onTap: () {+ _onKeyTap('6');+ },+ ),+ ],+ ),+ Row(+ children: [+ _Button(+ number: '7',+ text: 'PQRS',+ onTap: () {+ _onKeyTap('7');+ },+ ),+ _Button(+ number: '8',+ text: 'TUV',+ onTap: () {+ _onKeyTap('8');+ },+ ),+ _Button(+ number: '9',+ text: 'WXYZ',+ onTap: () {+ _onKeyTap('9');+ },+ ),+ ],+ ),+ Row(+ children: [+ const _Button(+ number: '',+ text: '',+ muteButton: true,+ onTap: null,+ ),+ _Button(+ number: '0',+ text: '',+ onTap: () {+ _onKeyTap('0');+ },+ ),+ _Button(+ number: '',+ text: '',+ icon: const Icon(Icons.backspace_outlined),+ onTap: () {+ _onBackspace();+ },+ ),+ ],+ ),+ ],+ ),),],),diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart b/auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dartindex ebb7c3112b..c24d35391d 100644--- a/auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart+++ b/auth/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart@@ -138,7 +138,7 @@ class _LockScreenConfirmPasswordState extends State<LockScreenConfirmPassword> {height: 75,width: 75,child: CircularProgressIndicator(- backgroundColor: colorTheme.fillFaintPressed,+ color: colorTheme.fillFaintPressed,value: 1,strokeWidth: 1.5,),diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart b/auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dartindex da14aa4f88..124e38328a 100644--- a/auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart+++ b/auth/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart@@ -69,14 +69,19 @@ class _LockScreenConfirmPinState extends State<LockScreenConfirmPin> {),),),- body: OrientationBuilder(- builder: (context, orientation) {- return orientation == Orientation.portrait- ? _getBody(colorTheme, textTheme, isPortrait: true)- : SingleChildScrollView(- child: _getBody(colorTheme, textTheme, isPortrait: false),- );- },+ floatingActionButton: CustomPinKeypad(controller: _confirmPinController),+ floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,+ // body: OrientationBuilder(+ // builder: (context, orientation) {+ // return orientation == Orientation.portrait+ // ? _getBody(colorTheme, textTheme, isPortrait: true)+ // : SingleChildScrollView(+ // child: _getBody(colorTheme, textTheme, isPortrait: false),+ // );+ // },+ // ),+ body: SingleChildScrollView(+ child: _getBody(colorTheme, textTheme, isPortrait: true),),);}@@ -195,10 +200,10 @@ class _LockScreenConfirmPinState extends State<LockScreenConfirmPin> {await _confirmPinMatch();},),- isPortrait- ? const Spacer()- : const Padding(padding: EdgeInsets.all(12)),- CustomPinKeypad(controller: _confirmPinController),+ // isPortrait+ // ? const Spacer()+ // : const Padding(padding: EdgeInsets.all(12)),+ // CustomPinKeypad(controller: _confirmPinController),],),);diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_password.dart b/auth/lib/ui/settings/lock_screen/lock_screen_password.dartindex 504ff506b4..6ea0a61d61 100644--- a/auth/lib/ui/settings/lock_screen/lock_screen_password.dart+++ b/auth/lib/ui/settings/lock_screen/lock_screen_password.dart@@ -135,7 +135,7 @@ class _LockScreenPasswordState extends State<LockScreenPassword> {height: 75,width: 75,child: CircularProgressIndicator(- backgroundColor: colorTheme.fillFaintPressed,+ color: colorTheme.fillFaintPressed,value: 1,strokeWidth: 1.5,),@@ -202,8 +202,8 @@ class _LockScreenPasswordState extends State<LockScreenPassword> {} else {if (widget.isOnOpeningApp) {invalidAttemptsCount++;+ await _lockscreenSetting.setInvalidAttemptCount(invalidAttemptsCount);if (invalidAttemptsCount > 4) {- await _lockscreenSetting.setInvalidAttemptCount(invalidAttemptsCount);Navigator.of(context).pop(false);}}diff --git a/auth/lib/ui/settings/lock_screen/lock_screen_pin.dart b/auth/lib/ui/settings/lock_screen/lock_screen_pin.dartindex cc4948b45d..05fee3ac2e 100644--- a/auth/lib/ui/settings/lock_screen/lock_screen_pin.dart+++ b/auth/lib/ui/settings/lock_screen/lock_screen_pin.dart@@ -77,8 +77,8 @@ class _LockScreenPinState extends State<LockScreenPin> {if (widget.isOnOpeningApp) {invalidAttemptsCount++;+ await _lockscreenSetting.setInvalidAttemptCount(invalidAttemptsCount);if (invalidAttemptsCount > 4) {- await _lockscreenSetting.setInvalidAttemptCount(invalidAttemptsCount);Navigator.of(context).pop(false);}}@@ -128,14 +128,19 @@ class _LockScreenPinState extends State<LockScreenPin> {),),),- body: OrientationBuilder(- builder: (context, orientation) {- return orientation == Orientation.portrait- ? _getBody(colorTheme, textTheme, isPortrait: true)- : SingleChildScrollView(- child: _getBody(colorTheme, textTheme, isPortrait: false),- );- },+ floatingActionButton: CustomPinKeypad(controller: _pinController),+ floatingActionButtonLocation: FloatingActionButtonLocation.centerDocked,+ // body: OrientationBuilder(+ // builder: (context, orientation) {+ // return orientation == Orientation.portrait+ // ? _getBody(colorTheme, textTheme, isPortrait: true)+ // : SingleChildScrollView(+ // child: _getBody(colorTheme, textTheme, isPortrait: false),+ // );+ // },+ // ),+ body: SingleChildScrollView(+ child: _getBody(colorTheme, textTheme, isPortrait: true),),);}@@ -258,10 +263,10 @@ class _LockScreenPinState extends State<LockScreenPin> {await _confirmPin(_pinController.text);},),- isPortrait- ? const Spacer()- : const Padding(padding: EdgeInsets.all(12)),- CustomPinKeypad(controller: _pinController),+ // isPortrait+ // ? const Spacer()+ // : const Padding(padding: EdgeInsets.all(12)),+ // CustomPinKeypad(controller: _pinController),],),);diff --git a/auth/lib/ui/tools/lock_screen.dart b/auth/lib/ui/tools/lock_screen.dartindex d28eefefe3..81655b2d1d 100644--- a/auth/lib/ui/tools/lock_screen.dart+++ b/auth/lib/ui/tools/lock_screen.dart@@ -109,8 +109,10 @@ class _LockScreenState extends State<LockScreen> with WidgetsBindingObserver {width: 75,child: TweenAnimationBuilder<double>(tween: Tween<double>(- begin: 0,- end: _getFractionOfTimeElapsed(),+ begin: isTimerRunning ? 0 : 1,+ end: isTimerRunning+ ? _getFractionOfTimeElapsed()+ : 1,),duration: const Duration(seconds: 1),builder: (context, value, _) =>