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 {
|
||||
final GlobalKey<AdaptivePageLayoutState> _apl =
|
||||
static final GlobalKey<AdaptivePageLayoutState> _apl =
|
||||
GlobalKey<AdaptivePageLayoutState>();
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
@ -7,8 +7,9 @@ import 'package:flutter_secure_storage/flutter_secure_storage.dart';
|
||||
class LockScreen extends StatelessWidget {
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
final applock = FlutterSecureStorage().read(key: SettingKeys.appLockKey);
|
||||
return FutureBuilder<String>(
|
||||
future: FlutterSecureStorage().read(key: SettingKeys.appLockKey),
|
||||
future: applock,
|
||||
builder: (context, snapshot) {
|
||||
if (snapshot.hasError) {
|
||||
return Scaffold(body: Center(child: Text(snapshot.error.toString())));
|
||||
|
Loading…
Reference in New Issue
Block a user