From 247bfd249fb02432a75e1611f0f9f76cf9f9c49a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Kl=C3=BCpfel?= Date: Mon, 12 Aug 2024 09:06:08 +0200 Subject: [PATCH] 61: dart format --- example/lib/main.dart | 6 ++++-- test/vertical_test.dart | 1 - 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index ccd9449..5d4c536 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -176,7 +176,8 @@ class _MyHomePageState extends State { 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 @@ -219,7 +220,8 @@ class _MyHomePageState extends State { const CupertinoActivityIndicator(color: Colors.white), onChanged: (b) { setState(() => positive = b); - return Future.delayed(const Duration(seconds: 2)); + return Future.delayed( + const Duration(seconds: 2)); }, styleBuilder: (b) => ToggleStyle( indicatorColor: b ? Colors.purple : Colors.green), diff --git a/test/vertical_test.dart b/test/vertical_test.dart index f27bd41..3fd74f8 100644 --- a/test/vertical_test.dart +++ b/test/vertical_test.dart @@ -9,7 +9,6 @@ void _verifyVertical(WidgetTester tester, List 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() {