From d2d5ed42d038627f42d40edbe50e037b11f10636 Mon Sep 17 00:00:00 2001 From: Michael Goderbauer Date: Thu, 8 Jun 2017 15:55:31 -0700 Subject: [PATCH] Format all Dart code that doesn't contain assert initilizers (#109) Formatting assert initilizers is blocked on https://github.com/dart-lang/dart_style/issues/522 --- example/lib/main.dart | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/example/lib/main.dart b/example/lib/main.dart index 83efd95..48a67b6 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -25,22 +25,24 @@ class MyApp extends StatelessWidget { } class MyHomePage extends StatelessWidget { - @override Widget build(BuildContext context) { Widget body; if (const LocalPlatform().isAndroid) { body = new GestureDetector( - child: const Center(child: - const Text('Click here to launch play store with New York Times app.')), - onTap: () { + child: const Center( + child: const Text( + 'Click here to launch play store with New York Times app.')), + onTap: () { final AndroidIntent intent = const AndroidIntent( - action: 'action_view', - data: 'https://play.google.com/store/apps/details?id=com.nytimes.android'); + action: 'action_view', + data: + 'https://play.google.com/store/apps/details?id=com.nytimes.android'); intent.launch(); - }); + }); } else { - body = const Center(child: const Text('This plugin only works with Android')); + body = const Center( + child: const Text('This plugin only works with Android')); } return new Scaffold( appBar: new AppBar(