π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[mob][photos] Tap anywhere on Lock screen to unlock
Aman Raj Singh Mouryac789684c3186
diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart b/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_password.dartindex e83446ba87..40995d6069 100644--- a/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart+++ b/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_password.dart@@ -140,7 +140,7 @@ class _LockScreenConfirmPasswordState extends State<LockScreenConfirmPassword> {height: 75,width: 75,child: CircularProgressIndicator(- backgroundColor: colorTheme.fillStrong,+ backgroundColor: colorTheme.fillFaintPressed,value: 1,strokeWidth: 1.5,),diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart b/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dartindex 4681273996..a915a893f6 100644--- a/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart+++ b/mobile/lib/ui/settings/lock_screen/lock_screen_confirm_pin.dart@@ -134,7 +134,7 @@ class _LockScreenConfirmPinState extends State<LockScreenConfirmPin> {duration: const Duration(milliseconds: 250),builder: (context, value, _) =>CircularProgressIndicator(- backgroundColor: colorTheme.fillStrong,+ backgroundColor: colorTheme.fillFaintPressed,value: value,color: colorTheme.primary400,strokeWidth: 1.5,diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_password.dart b/mobile/lib/ui/settings/lock_screen/lock_screen_password.dartindex 21fdf2fc71..eeac5f1f4d 100644--- a/mobile/lib/ui/settings/lock_screen/lock_screen_password.dart+++ b/mobile/lib/ui/settings/lock_screen/lock_screen_password.dart@@ -140,7 +140,7 @@ class _LockScreenPasswordState extends State<LockScreenPassword> {height: 75,width: 75,child: CircularProgressIndicator(- backgroundColor: colorTheme.fillStrong,+ backgroundColor: colorTheme.fillFaintPressed,value: 1,strokeWidth: 1.5,),diff --git a/mobile/lib/ui/settings/lock_screen/lock_screen_pin.dart b/mobile/lib/ui/settings/lock_screen/lock_screen_pin.dartindex 899d3f1e6a..72fc29461b 100644--- a/mobile/lib/ui/settings/lock_screen/lock_screen_pin.dart+++ b/mobile/lib/ui/settings/lock_screen/lock_screen_pin.dart@@ -200,7 +200,7 @@ class _LockScreenPinState extends State<LockScreenPin> {duration: const Duration(milliseconds: 250),builder: (context, value, _) =>CircularProgressIndicator(- backgroundColor: colorTheme.fillStrong,+ backgroundColor: colorTheme.fillFaintPressed,value: value,color: colorTheme.primary400,strokeWidth: 1.5,diff --git a/mobile/lib/ui/tools/lock_screen.dart b/mobile/lib/ui/tools/lock_screen.dartindex 6683243ab2..f6f1574152 100644--- a/mobile/lib/ui/tools/lock_screen.dart+++ b/mobile/lib/ui/tools/lock_screen.dart@@ -65,109 +65,118 @@ class _LockScreenState extends State<LockScreen>final colorTheme = getEnteColorScheme(context);final textTheme = getEnteTextTheme(context);return Scaffold(- body: Container(- decoration: const BoxDecoration(- image: DecorationImage(- image: ExactAssetImage(- 'assets/loading_photos_background_fullscreen.png',+ body: GestureDetector(+ onTap: () {+ isTimerRunning ? null : _showLockScreen(source: "tap");+ },+ child: Container(+ decoration: const BoxDecoration(+ image: DecorationImage(+ image: ExactAssetImage(+ 'assets/loading_photos_background_fullscreen.png',+ ),+ fit: BoxFit.cover,),- fit: BoxFit.cover,),- ),- child: Center(- child: Column(- children: [- const Spacer(),- SizedBox(- height: 120,- width: 120,- child: Stack(- alignment: Alignment.center,- children: [- Container(- width: 82,- height: 82,- decoration: BoxDecoration(- shape: BoxShape.circle,- gradient: LinearGradient(- colors: [- Colors.grey.shade500.withOpacity(0.2),- Colors.grey.shade50.withOpacity(0.1),- Colors.grey.shade400.withOpacity(0.2),- Colors.grey.shade300.withOpacity(0.4),- ],- begin: Alignment.topCenter,- end: Alignment.bottomCenter,+ child: Center(+ child: Column(+ children: [+ const Spacer(),+ SizedBox(+ height: 120,+ width: 120,+ child: Stack(+ alignment: Alignment.center,+ children: [+ Container(+ width: 82,+ height: 82,+ decoration: BoxDecoration(+ shape: BoxShape.circle,+ gradient: LinearGradient(+ colors: [+ Colors.grey.shade500.withOpacity(0.2),+ Colors.grey.shade50.withOpacity(0.1),+ Colors.grey.shade400.withOpacity(0.2),+ Colors.grey.shade300.withOpacity(0.4),+ ],+ begin: Alignment.topCenter,+ end: Alignment.bottomCenter,+ ),),- ),- child: Padding(- padding: const EdgeInsets.all(1.0),- child: Container(- decoration: BoxDecoration(- shape: BoxShape.circle,- color: colorTheme.backgroundBase,+ child: Padding(+ padding: const EdgeInsets.all(1.0),+ child: Container(+ decoration: BoxDecoration(+ shape: BoxShape.circle,+ color: colorTheme.backgroundBase,+ ),),),),- ),- SizedBox(- height: 75,- width: 75,- child: TweenAnimationBuilder<double>(- tween: Tween<double>(- begin: 0,- end: calculateRemainingTime(),- ),- curve: Curves.ease,- duration: const Duration(milliseconds: 50),- builder: (context, value, _) =>- CircularProgressIndicator(- backgroundColor: colorTheme.fillFaintPressed,- value: value,- color: colorTheme.primary400,- strokeWidth: 1.5,+ SizedBox(+ height: 75,+ width: 75,+ child: TweenAnimationBuilder<double>(+ tween: Tween<double>(+ begin: 0,+ end: calculateRemainingTime(),+ ),+ curve: Curves.ease,+ duration: const Duration(milliseconds: 50),+ builder: (context, value, _) =>+ CircularProgressIndicator(+ backgroundColor: colorTheme.fillFaintPressed,+ value: value,+ color: colorTheme.primary400,+ strokeWidth: 1.5,+ ),),),- ),- IconButtonWidget(- size: 30,- icon: Icons.lock,- iconButtonType: IconButtonType.primary,- iconColor: colorTheme.tabIcon,- ),- ],+ IconButtonWidget(+ size: 30,+ icon: Icons.lock,+ iconButtonType: IconButtonType.primary,+ iconColor: colorTheme.tabIcon,+ ),+ ],+ ),),- ),- const Spacer(),- isTimerRunning- ? Stack(- alignment: Alignment.center,- children: [- Text(- "Too many incorrect attempts",+ const Spacer(),+ isTimerRunning+ ? Stack(+ alignment: Alignment.center,+ children: [+ Text(+ "Too many incorrect attempts",+ style: textTheme.body,+ )+ .animate(+ delay: const Duration(milliseconds: 2000),+ )+ .fadeOut(duration: 400.ms),+ Text(+ formatTime(remainingTime),+ style: textTheme.body,+ )+ .animate(+ delay: const Duration(milliseconds: 2250),+ )+ .fadeIn(duration: 400.ms),+ ],+ )+ : GestureDetector(+ onTap: () => _showLockScreen(source: "tap"),+ child: Text(+ "Tap to unlock",style: textTheme.body,- )- .animate(delay: const Duration(milliseconds: 2000))- .fadeOut(duration: 400.ms),- Text(- formatTime(remainingTime),- style: textTheme.body,- )- .animate(delay: const Duration(milliseconds: 2250))- .fadeIn(duration: 400.ms),- ],- )- : GestureDetector(- onTap: () => _showLockScreen(source: "tap"),- child: Text(- "Tap to unlock",- style: textTheme.body,+ ),),- ),- const Padding(- padding: EdgeInsets.only(bottom: 20),- ),- ],+ const Padding(+ padding: EdgeInsets.only(bottom: 20),+ ),+ ],+ ),),),),