Skip to content

Commit

Permalink
Format all Dart code that doesn't contain assert initilizers (#109)
Browse files Browse the repository at this point in the history
Formatting assert initilizers is blocked on dart-lang/dart_style#522
  • Loading branch information
goderbauer authored Jun 8, 2017
1 parent dfeced8 commit d2d5ed4
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions example/lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit d2d5ed4

Please sign in to comment.