|
@@ -1,7 +1,8 @@
|
|
|
import 'package:flutter/material.dart';
|
|
|
-import 'package:flutter/widgets.dart';
|
|
|
import 'package:logging/logging.dart';
|
|
|
+import 'package:photos/ente_theme_data.dart';
|
|
|
import 'package:photos/ui/app_lock.dart';
|
|
|
+import 'package:photos/ui/common/gradientButton.dart';
|
|
|
import 'package:photos/utils/auth_util.dart';
|
|
|
|
|
|
class LockScreen extends StatefulWidget {
|
|
@@ -24,17 +25,36 @@ class _LockScreenState extends State<LockScreen> {
|
|
|
Widget build(BuildContext context) {
|
|
|
return Scaffold(
|
|
|
body: Center(
|
|
|
- child: Container(
|
|
|
- width: double.infinity,
|
|
|
- height: 64,
|
|
|
- padding: const EdgeInsets.fromLTRB(80, 0, 80, 0),
|
|
|
- child: OutlinedButton(
|
|
|
- child: Text("Unlock"),
|
|
|
- onPressed: () async {
|
|
|
- _showLockScreen();
|
|
|
- },
|
|
|
- ),
|
|
|
- ),
|
|
|
+ child: Column(
|
|
|
+ crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
+ mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
+ children: [
|
|
|
+ Stack(
|
|
|
+ alignment: Alignment.center,
|
|
|
+ children: [
|
|
|
+ Image.asset(MediaQuery.of(context).platformBrightness ==
|
|
|
+ Brightness.light
|
|
|
+ ? 'assets/loading_photos_light.png'
|
|
|
+ : 'assets/loading_photos_dark.png'),
|
|
|
+ SizedBox(
|
|
|
+ width: 172,
|
|
|
+ child: GradientButton(
|
|
|
+ child: Text(
|
|
|
+ 'Unlock',
|
|
|
+ style: gradientButtonTextTheme(),
|
|
|
+ ),
|
|
|
+ linearGradientColors: const [
|
|
|
+ Color(0xFF2CD267),
|
|
|
+ Color(0xFF1DB954),
|
|
|
+ ],
|
|
|
+ onTap: () async {
|
|
|
+ _showLockScreen();
|
|
|
+ },
|
|
|
+ ),
|
|
|
+ ),
|
|
|
+ ],
|
|
|
+ ),
|
|
|
+ ]),
|
|
|
),
|
|
|
);
|
|
|
}
|