This commit is contained in:
Christian Pauly 2021-01-18 10:07:37 +01:00
parent 6d12168ce5
commit 913f3cfa70
2 changed files with 3 additions and 2 deletions

View File

@ -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) {

View File

@ -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())));