Skip to content

Commit

Permalink
61: dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
maeddin committed Aug 12, 2024
1 parent a160450 commit 247bfd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,8 @@ class _MyHomePageState extends State<MyHomePage> {
Colors.red[800], green, global.position)),
onChanged: (b) => setState(() => positive = b),
iconBuilder: (value) => value
? const Icon(Icons.power_outlined, color: green, size: 32.0)
? const Icon(Icons.power_outlined,
color: green, size: 32.0)
: Icon(Icons.power_settings_new_rounded,
color: Colors.red[800], size: 32.0),
textBuilder: (value) => value
Expand Down Expand Up @@ -219,7 +220,8 @@ class _MyHomePageState extends State<MyHomePage> {
const CupertinoActivityIndicator(color: Colors.white),
onChanged: (b) {
setState(() => positive = b);
return Future<dynamic>.delayed(const Duration(seconds: 2));
return Future<dynamic>.delayed(
const Duration(seconds: 2));
},
styleBuilder: (b) => ToggleStyle(
indicatorColor: b ? Colors.purple : Colors.green),
Expand Down
1 change: 0 additions & 1 deletion test/vertical_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ void _verifyVertical<T>(WidgetTester tester, List<T> values) {
reason: 'Icons do not have the same x-coordinate');
expect((firstPos - lastPos).dy < 0, true,
reason: 'Icons should be ordered top down');

}

void main() {
Expand Down

0 comments on commit 247bfd2

Please sign in to comment.