Fix formatting
Godwin Asuquo committed
Dec 9, 2022 at 20:19 UTC
59484e5b9165ed01454bf63438013c64037df21c
1 file changed
+13
-15
lib/src/screens/root/root.dart
+13
-15
@@ -8,15 +8,14 @@ import 'package:cake_wallet/store/authentication_store.dart';
8
import 'package:cake_wallet/entities/qr_scanner.dart';
9
10
class Root extends StatefulWidget {
11
- Root(
12
- {required Key key,
13
- required this.authenticationStore,
14
- required this.appStore,
15
- required this.child,
16
- required this.navigatorKey,
17
- required this.authService,
18
- })
19
- : super(key: key);
11
+ Root({
12
+ required Key key,
13
+ required this.authenticationStore,
14
+ required this.appStore,
15
+ required this.child,
16
+ required this.navigatorKey,
17
+ required this.authService,
18
+ }) : super(key: key);
19
20
final AuthenticationStore authenticationStore;
21
final AppStore appStore;
@@ -30,10 +29,10 @@ class Root extends StatefulWidget {
29
30
class RootState extends State<Root> with WidgetsBindingObserver {
31
RootState()
33
- : _isInactiveController = StreamController<bool>.broadcast(),
34
- _isInactive = false,
35
- _requestAuth = true,
36
- _postFrameCallback = false;
32
+ : _isInactiveController = StreamController<bool>.broadcast(),
33
+ _isInactive = false,
34
+ _requestAuth = true,
35
+ _postFrameCallback = false;
36
37
Stream<bool> get isInactive => _isInactiveController.stream;
38
StreamController<bool> _isInactiveController;
@@ -63,8 +62,7 @@ class RootState extends State<Root> with WidgetsBindingObserver {
62
_requestAuth = widget.authService.requireAuth();
63
});
64
66
- if (!_isInactive &&
67
- widget.authenticationStore.state == AuthenticationState.allowed) {
65
+ if (!_isInactive && widget.authenticationStore.state == AuthenticationState.allowed) {
66
setState(() => _setInactive(true));
67
}
68