From 3bad92abb6be57053ba5a19d2ef11e6f2eca554c Mon Sep 17 00:00:00 2001 From: Kevin Moore Date: Fri, 14 Jun 2019 10:45:34 -0700 Subject: [PATCH] web: dartfmt all files --- web/_tool/peanut_post_build.dart | 6 ++--- web/gallery/lib/demo/contacts_demo.dart | 26 +++++++++---------- .../demo/material/bottom_navigation_demo.dart | 18 ++++++------- .../lib/demo/material/grid_list_demo.dart | 26 +++++++++---------- web/gallery/lib/demo/material/menu_demo.dart | 14 +++++----- .../demo/material/scrollable_tabs_demo.dart | 17 ++++++------ web/gallery/lib/demo/pesto_demo.dart | 10 +++---- .../lib/packages/flutter_redux.dart | 6 ++--- 8 files changed, 61 insertions(+), 62 deletions(-) diff --git a/web/_tool/peanut_post_build.dart b/web/_tool/peanut_post_build.dart index 9c14ea3b3..6a9486087 100644 --- a/web/_tool/peanut_post_build.dart +++ b/web/_tool/peanut_post_build.dart @@ -41,9 +41,9 @@ void main(List args) { _tocTemplate( fileMap.entries.map( (entry) => _Demo( - entry.key, - entry.value, - ), + entry.key, + entry.value, + ), ), ), flush: true); diff --git a/web/gallery/lib/demo/contacts_demo.dart b/web/gallery/lib/demo/contacts_demo.dart index bf3ea9964..9c909bf5f 100644 --- a/web/gallery/lib/demo/contacts_demo.dart +++ b/web/gallery/lib/demo/contacts_demo.dart @@ -134,19 +134,19 @@ class ContactsDemoState extends State { }, itemBuilder: (BuildContext context) => >[ - const PopupMenuItem( - value: AppBarBehavior.normal, - child: Text('App bar scrolls away')), - const PopupMenuItem( - value: AppBarBehavior.pinned, - child: Text('App bar stays put')), - const PopupMenuItem( - value: AppBarBehavior.floating, - child: Text('App bar floats')), - const PopupMenuItem( - value: AppBarBehavior.snapping, - child: Text('App bar snaps')), - ], + const PopupMenuItem( + value: AppBarBehavior.normal, + child: Text('App bar scrolls away')), + const PopupMenuItem( + value: AppBarBehavior.pinned, + child: Text('App bar stays put')), + const PopupMenuItem( + value: AppBarBehavior.floating, + child: Text('App bar floats')), + const PopupMenuItem( + value: AppBarBehavior.snapping, + child: Text('App bar snaps')), + ], ), ], flexibleSpace: FlexibleSpaceBar( diff --git a/web/gallery/lib/demo/material/bottom_navigation_demo.dart b/web/gallery/lib/demo/material/bottom_navigation_demo.dart index b3a6456eb..3be89df1f 100644 --- a/web/gallery/lib/demo/material/bottom_navigation_demo.dart +++ b/web/gallery/lib/demo/material/bottom_navigation_demo.dart @@ -220,15 +220,15 @@ class _BottomNavigationDemoState extends State }, itemBuilder: (BuildContext context) => >[ - const PopupMenuItem( - value: BottomNavigationBarType.fixed, - child: Text('Fixed'), - ), - const PopupMenuItem( - value: BottomNavigationBarType.shifting, - child: Text('Shifting'), - ) - ], + const PopupMenuItem( + value: BottomNavigationBarType.fixed, + child: Text('Fixed'), + ), + const PopupMenuItem( + value: BottomNavigationBarType.shifting, + child: Text('Shifting'), + ) + ], ) ], ), diff --git a/web/gallery/lib/demo/material/grid_list_demo.dart b/web/gallery/lib/demo/material/grid_list_demo.dart index 530c8e3cc..42593ef8b 100644 --- a/web/gallery/lib/demo/material/grid_list_demo.dart +++ b/web/gallery/lib/demo/material/grid_list_demo.dart @@ -348,19 +348,19 @@ class GridListDemoState extends State { onSelected: changeTileStyle, itemBuilder: (BuildContext context) => >[ - const PopupMenuItem( - value: GridDemoTileStyle.imageOnly, - child: Text('Image only'), - ), - const PopupMenuItem( - value: GridDemoTileStyle.oneLine, - child: Text('One line'), - ), - const PopupMenuItem( - value: GridDemoTileStyle.twoLine, - child: Text('Two line'), - ), - ], + const PopupMenuItem( + value: GridDemoTileStyle.imageOnly, + child: Text('Image only'), + ), + const PopupMenuItem( + value: GridDemoTileStyle.oneLine, + child: Text('One line'), + ), + const PopupMenuItem( + value: GridDemoTileStyle.twoLine, + child: Text('Two line'), + ), + ], ), ], ), diff --git a/web/gallery/lib/demo/material/menu_demo.dart b/web/gallery/lib/demo/material/menu_demo.dart index 0d66b1983..10c041e9a 100644 --- a/web/gallery/lib/demo/material/menu_demo.dart +++ b/web/gallery/lib/demo/material/menu_demo.dart @@ -68,13 +68,13 @@ class MenuDemoState extends State { PopupMenuButton( onSelected: showMenuSelection, itemBuilder: (BuildContext context) => >[ - const PopupMenuItem( - value: 'Toolbar menu', child: Text('Toolbar menu')), - const PopupMenuItem( - value: 'Right here', child: Text('Right here')), - const PopupMenuItem( - value: 'Hooray!', child: Text('Hooray!')), - ], + const PopupMenuItem( + value: 'Toolbar menu', child: Text('Toolbar menu')), + const PopupMenuItem( + value: 'Right here', child: Text('Right here')), + const PopupMenuItem( + value: 'Hooray!', child: Text('Hooray!')), + ], ), ], ), diff --git a/web/gallery/lib/demo/material/scrollable_tabs_demo.dart b/web/gallery/lib/demo/material/scrollable_tabs_demo.dart index bf37f62c0..0604784bd 100644 --- a/web/gallery/lib/demo/material/scrollable_tabs_demo.dart +++ b/web/gallery/lib/demo/material/scrollable_tabs_demo.dart @@ -139,15 +139,14 @@ class ScrollableTabsDemoState extends State onSelected: changeDemoStyle, itemBuilder: (BuildContext context) => >[ - const PopupMenuItem( - value: TabsDemoStyle.iconsAndText, - child: Text('Icons and text')), - const PopupMenuItem( - value: TabsDemoStyle.iconsOnly, - child: Text('Icons only')), - const PopupMenuItem( - value: TabsDemoStyle.textOnly, child: Text('Text only')), - ], + const PopupMenuItem( + value: TabsDemoStyle.iconsAndText, + child: Text('Icons and text')), + const PopupMenuItem( + value: TabsDemoStyle.iconsOnly, child: Text('Icons only')), + const PopupMenuItem( + value: TabsDemoStyle.textOnly, child: Text('Text only')), + ], ), ], bottom: TabBar( diff --git a/web/gallery/lib/demo/pesto_demo.dart b/web/gallery/lib/demo/pesto_demo.dart index 3f20cd306..cf928f4b4 100644 --- a/web/gallery/lib/demo/pesto_demo.dart +++ b/web/gallery/lib/demo/pesto_demo.dart @@ -379,11 +379,11 @@ class _RecipePageState extends State { onSelected: (String item) {}, itemBuilder: (BuildContext context) => >[ - _buildMenuItem(Icons.share, 'Tweet recipe'), - _buildMenuItem(Icons.email, 'Email recipe'), - _buildMenuItem(Icons.message, 'Message recipe'), - _buildMenuItem(Icons.people, 'Share on Facebook'), - ], + _buildMenuItem(Icons.share, 'Tweet recipe'), + _buildMenuItem(Icons.email, 'Email recipe'), + _buildMenuItem(Icons.message, 'Message recipe'), + _buildMenuItem(Icons.people, 'Share on Facebook'), + ], ), ], flexibleSpace: const FlexibleSpaceBar( diff --git a/web/vision_challenge/lib/packages/flutter_redux.dart b/web/vision_challenge/lib/packages/flutter_redux.dart index c2a4c8836..54cb7461f 100644 --- a/web/vision_challenge/lib/packages/flutter_redux.dart +++ b/web/vision_challenge/lib/packages/flutter_redux.dart @@ -475,9 +475,9 @@ class _StoreStreamListenerState ? StreamBuilder( stream: stream, builder: (context, snapshot) => widget.builder( - context, - snapshot.hasData ? snapshot.data : latestValue, - ), + context, + snapshot.hasData ? snapshot.data : latestValue, + ), ) : widget.builder(context, latestValue); }