mirror of
https://gitlab.com/famedly/fluffychat.git
synced 2024-11-23 20:49:26 +01:00
fix: APL
This commit is contained in:
parent
6d12168ce5
commit
913f3cfa70
@ -37,7 +37,7 @@ void main() async {
|
|||||||
}
|
}
|
||||||
|
|
||||||
class App extends StatelessWidget {
|
class App extends StatelessWidget {
|
||||||
final GlobalKey<AdaptivePageLayoutState> _apl =
|
static final GlobalKey<AdaptivePageLayoutState> _apl =
|
||||||
GlobalKey<AdaptivePageLayoutState>();
|
GlobalKey<AdaptivePageLayoutState>();
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
@ -7,8 +7,9 @@ import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
|||||||
class LockScreen extends StatelessWidget {
|
class LockScreen extends StatelessWidget {
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final applock = FlutterSecureStorage().read(key: SettingKeys.appLockKey);
|
||||||
return FutureBuilder<String>(
|
return FutureBuilder<String>(
|
||||||
future: FlutterSecureStorage().read(key: SettingKeys.appLockKey),
|
future: applock,
|
||||||
builder: (context, snapshot) {
|
builder: (context, snapshot) {
|
||||||
if (snapshot.hasError) {
|
if (snapshot.hasError) {
|
||||||
return Scaffold(body: Center(child: Text(snapshot.error.toString())));
|
return Scaffold(body: Center(child: Text(snapshot.error.toString())));
|
||||||
|
Loading…
Reference in New Issue
Block a user