Skip to content

Commit 118e68d

Browse files
committed
Run through dartfmt
1 parent 92f7f02 commit 118e68d

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

example/lib/main.dart

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,22 @@ class _MyAppState extends State<MyApp> {
2525
children: <Widget>[
2626
Text('Secure Mode: ${_secureMode.toString()}\n'),
2727
RaisedButton(
28-
onPressed: () async {
29-
final secureModeToggle = !_secureMode;
28+
onPressed: () async {
29+
final secureModeToggle = !_secureMode;
3030

31-
if (secureModeToggle == true) {
32-
await FlutterWindowManager.addFlags(FlutterWindowManager.FLAG_SECURE);
33-
} else {
34-
await FlutterWindowManager.clearFlags(FlutterWindowManager.FLAG_SECURE);
35-
}
31+
if (secureModeToggle == true) {
32+
await FlutterWindowManager.addFlags(
33+
FlutterWindowManager.FLAG_SECURE);
34+
} else {
35+
await FlutterWindowManager.clearFlags(
36+
FlutterWindowManager.FLAG_SECURE);
37+
}
3638

37-
setState(() {
38-
_secureMode = !_secureMode;
39-
});
40-
},
41-
child: const Text("Toggle Secure Mode")
42-
),
39+
setState(() {
40+
_secureMode = !_secureMode;
41+
});
42+
},
43+
child: const Text("Toggle Secure Mode")),
4344
],
4445
),
4546
),

example/test/widget_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ void main() {
1818
// Verify that platform version is retrieved.
1919
expect(
2020
find.byWidgetPredicate(
21-
(Widget widget) => widget is Text &&
22-
widget.data.startsWith('Secure Mode:'),
21+
(Widget widget) =>
22+
widget is Text && widget.data.startsWith('Secure Mode:'),
2323
),
2424
findsOneWidget,
2525
);

test/flutter_windowmanager_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ void main() {
2222
expect(
2323
log,
2424
<Matcher>[
25-
isMethodCall('addFlags', arguments: <String, int> {
25+
isMethodCall('addFlags', arguments: <String, int>{
2626
'flags': FlutterWindowManager.FLAG_SECURE,
2727
})
2828
],
@@ -34,7 +34,7 @@ void main() {
3434
expect(
3535
log,
3636
<Matcher>[
37-
isMethodCall('clearFlags', arguments: <String, int> {
37+
isMethodCall('clearFlags', arguments: <String, int>{
3838
'flags': FlutterWindowManager.FLAG_SECURE,
3939
})
4040
],

0 commit comments

Comments
 (0)