From 3d40fa9fb2a1ee2c6e743efe74c2d2ddd2833e28 Mon Sep 17 00:00:00 2001 From: Andrew Brogdon Date: Mon, 8 Jul 2019 11:25:46 -0700 Subject: [PATCH] Tweaked pubspecs, linted. (#113) --- .../analysis_options.yaml | 2 +- chrome-os-best-practices/lib/main.dart | 5 +- chrome-os-best-practices/pubspec.lock | 10 ++-- chrome-os-best-practices/pubspec.yaml | 2 +- flutter_maps_firestore/analysis_options.yaml | 2 +- flutter_maps_firestore/pubspec.lock | 10 ++-- flutter_maps_firestore/pubspec.yaml | 2 +- isolate_example/analysis_options.yaml | 2 +- isolate_example/pubspec.lock | 10 ++-- isolate_example/pubspec.yaml | 2 +- jsonexample/analysis_options.yaml | 2 +- jsonexample/pubspec.lock | 12 ++-- jsonexample/pubspec.yaml | 2 +- place_tracker/analysis_options.yaml | 2 +- place_tracker/lib/place_list.dart | 16 ++--- place_tracker/pubspec.lock | 10 ++-- place_tracker/pubspec.yaml | 2 +- platform_design/analysis_options.yaml | 2 +- platform_design/lib/songs_tab.dart | 14 ++--- platform_design/pubspec.lock | 10 ++-- platform_design/pubspec.yaml | 2 +- platform_view_swift/analysis_options.yaml | 2 +- platform_view_swift/pubspec.lock | 10 ++-- platform_view_swift/pubspec.yaml | 2 +- provider_counter/analysis_options.yaml | 2 +- provider_counter/lib/main.dart | 6 +- provider_counter/pubspec.lock | 10 ++-- provider_counter/pubspec.yaml | 2 +- shrine/analysis_options.yaml | 2 +- shrine/lib/category_menu_page.dart | 60 +++++++++---------- shrine/lib/shopping_cart.dart | 12 ++-- shrine/lib/supplemental/product_card.dart | 12 ++-- shrine/pubspec.lock | 10 ++-- shrine/pubspec.yaml | 2 +- veggieseasons/analysis_options.yaml | 2 +- veggieseasons/lib/widgets/trivia.dart | 6 +- .../lib/widgets/veggie_headline.dart | 6 +- veggieseasons/pubspec.lock | 10 ++-- veggieseasons/pubspec.yaml | 2 +- 39 files changed, 140 insertions(+), 139 deletions(-) diff --git a/chrome-os-best-practices/analysis_options.yaml b/chrome-os-best-practices/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/chrome-os-best-practices/analysis_options.yaml +++ b/chrome-os-best-practices/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/chrome-os-best-practices/lib/main.dart b/chrome-os-best-practices/lib/main.dart index 960458d4e..ab35a801f 100755 --- a/chrome-os-best-practices/lib/main.dart +++ b/chrome-os-best-practices/lib/main.dart @@ -53,10 +53,11 @@ class _ChatAppHomePageState extends State { builder: (context, constraints) { final double width = constraints.maxWidth; debugPrint('width: $width'); - if (constraints.maxWidth > 800) + if (constraints.maxWidth > 800) { return TwoPaneChatLayout(chatEntries: chats); - else + } else { return ChatListScreen(chatEntries: chats); + } }, ), ); diff --git a/chrome-os-best-practices/pubspec.lock b/chrome-os-best-practices/pubspec.lock index fcff2cebe..209d51c16 100755 --- a/chrome-os-best-practices/pubspec.lock +++ b/chrome-os-best-practices/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -73,14 +73,14 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -127,7 +127,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/chrome-os-best-practices/pubspec.yaml b/chrome-os-best-practices/pubspec.yaml index 0ef0f353b..182fa50e6 100755 --- a/chrome-os-best-practices/pubspec.yaml +++ b/chrome-os-best-practices/pubspec.yaml @@ -23,7 +23,7 @@ dependencies: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS style icons. cupertino_icons: ^0.1.2 - pedantic: 1.5.0 + pedantic: 1.7.0 dev_dependencies: flutter_test: diff --git a/flutter_maps_firestore/analysis_options.yaml b/flutter_maps_firestore/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/flutter_maps_firestore/analysis_options.yaml +++ b/flutter_maps_firestore/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/flutter_maps_firestore/pubspec.lock b/flutter_maps_firestore/pubspec.lock index f6aea7f75..cfcca6696 100644 --- a/flutter_maps_firestore/pubspec.lock +++ b/flutter_maps_firestore/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -115,14 +115,14 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -169,7 +169,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/flutter_maps_firestore/pubspec.yaml b/flutter_maps_firestore/pubspec.yaml index e4b281044..833e9fe26 100644 --- a/flutter_maps_firestore/pubspec.yaml +++ b/flutter_maps_firestore/pubspec.yaml @@ -16,7 +16,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter: uses-material-design: true diff --git a/isolate_example/analysis_options.yaml b/isolate_example/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/isolate_example/analysis_options.yaml +++ b/isolate_example/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/isolate_example/pubspec.lock b/isolate_example/pubspec.lock index c6bb6436b..77b39b8de 100644 --- a/isolate_example/pubspec.lock +++ b/isolate_example/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -73,7 +73,7 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" provider: dependency: "direct main" description: @@ -87,7 +87,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -134,7 +134,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/isolate_example/pubspec.yaml b/isolate_example/pubspec.yaml index 6e6e69cb3..234b0ab9f 100644 --- a/isolate_example/pubspec.yaml +++ b/isolate_example/pubspec.yaml @@ -14,7 +14,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter: diff --git a/jsonexample/analysis_options.yaml b/jsonexample/analysis_options.yaml index a8e1f7b52..c936d03b1 100644 --- a/jsonexample/analysis_options.yaml +++ b/jsonexample/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: exclude: diff --git a/jsonexample/pubspec.lock b/jsonexample/pubspec.lock index cc3441c09..7af203894 100644 --- a/jsonexample/pubspec.lock +++ b/jsonexample/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: analyzer: dependency: transitive @@ -28,7 +28,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -304,7 +304,7 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" pool: dependency: transitive description: @@ -332,7 +332,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" shelf: dependency: transitive description: @@ -407,7 +407,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" timing: dependency: transitive description: @@ -458,4 +458,4 @@ packages: source: hosted version: "2.1.15" sdks: - dart: ">=2.2.0 <3.0.0" + dart: ">=2.2.2 <3.0.0" diff --git a/jsonexample/pubspec.yaml b/jsonexample/pubspec.yaml index cdcc34cf3..2b3c07643 100644 --- a/jsonexample/pubspec.yaml +++ b/jsonexample/pubspec.yaml @@ -16,7 +16,7 @@ dev_dependencies: build_runner: ^1.0.0 built_value_generator: ^6.1.5 json_serializable: ^2.2.1 - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter_test: sdk: flutter diff --git a/place_tracker/analysis_options.yaml b/place_tracker/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/place_tracker/analysis_options.yaml +++ b/place_tracker/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/place_tracker/lib/place_list.dart b/place_tracker/lib/place_list.dart index 72f3a3224..657bebffc 100644 --- a/place_tracker/lib/place_list.dart +++ b/place_tracker/lib/place_list.dart @@ -73,14 +73,14 @@ class _PlaceListTile extends StatelessWidget { Widget build(BuildContext context) { return InkWell( onTap: () => Navigator.push( - context, - MaterialPageRoute(builder: (context) { - return PlaceDetails( - place: place, - onChanged: (value) => onPlaceChanged(value), - ); - }), - ), + context, + MaterialPageRoute(builder: (context) { + return PlaceDetails( + place: place, + onChanged: (value) => onPlaceChanged(value), + ); + }), + ), child: Container( padding: EdgeInsets.only(top: 16.0), child: Column( diff --git a/place_tracker/pubspec.lock b/place_tracker/pubspec.lock index 2de270f1e..f0f6a6a52 100644 --- a/place_tracker/pubspec.lock +++ b/place_tracker/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -94,14 +94,14 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -148,7 +148,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/place_tracker/pubspec.yaml b/place_tracker/pubspec.yaml index 911531442..ce1b2affd 100644 --- a/place_tracker/pubspec.yaml +++ b/place_tracker/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter: assets: diff --git a/platform_design/analysis_options.yaml b/platform_design/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/platform_design/analysis_options.yaml +++ b/platform_design/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/platform_design/lib/songs_tab.dart b/platform_design/lib/songs_tab.dart index b472639e9..92e5fde4d 100644 --- a/platform_design/lib/songs_tab.dart +++ b/platform_design/lib/songs_tab.dart @@ -65,14 +65,14 @@ class _SongsTabState extends State { color: color, heroAnimation: AlwaysStoppedAnimation(0), onPressed: () => Navigator.of(context).push( - MaterialPageRoute( - builder: (context) => SongDetailTab( - id: index, - song: songNames[index], - color: color, - ), - ), + MaterialPageRoute( + builder: (context) => SongDetailTab( + id: index, + song: songNames[index], + color: color, ), + ), + ), ), ), ); diff --git a/platform_design/pubspec.lock b/platform_design/pubspec.lock index 7650cd5e8..92ce3e7f9 100644 --- a/platform_design/pubspec.lock +++ b/platform_design/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -87,14 +87,14 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -141,7 +141,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/platform_design/pubspec.yaml b/platform_design/pubspec.yaml index 12d8b9bce..6c4b92f71 100644 --- a/platform_design/pubspec.yaml +++ b/platform_design/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter: uses-material-design: true diff --git a/platform_view_swift/analysis_options.yaml b/platform_view_swift/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/platform_view_swift/analysis_options.yaml +++ b/platform_view_swift/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/platform_view_swift/pubspec.lock b/platform_view_swift/pubspec.lock index 39df99cbd..058812946 100644 --- a/platform_view_swift/pubspec.lock +++ b/platform_view_swift/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -66,14 +66,14 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -120,7 +120,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/platform_view_swift/pubspec.yaml b/platform_view_swift/pubspec.yaml index 63ce15541..8939c6eaf 100644 --- a/platform_view_swift/pubspec.yaml +++ b/platform_view_swift/pubspec.yaml @@ -9,7 +9,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter: uses-material-design: true diff --git a/provider_counter/analysis_options.yaml b/provider_counter/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/provider_counter/analysis_options.yaml +++ b/provider_counter/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/provider_counter/lib/main.dart b/provider_counter/lib/main.dart index 1da3911a1..014765860 100644 --- a/provider_counter/lib/main.dart +++ b/provider_counter/lib/main.dart @@ -63,9 +63,9 @@ class MyHomePage extends StatelessWidget { // rebuilds if the model is updated. Consumer( builder: (context, counter, child) => Text( - '${counter.value}', - style: Theme.of(context).textTheme.display1, - ), + '${counter.value}', + style: Theme.of(context).textTheme.display1, + ), ), ], ), diff --git a/provider_counter/pubspec.lock b/provider_counter/pubspec.lock index dfc50bf35..fcde72a40 100644 --- a/provider_counter/pubspec.lock +++ b/provider_counter/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -73,7 +73,7 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" provider: dependency: "direct main" description: @@ -87,7 +87,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" sky_engine: dependency: transitive description: flutter @@ -134,7 +134,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/provider_counter/pubspec.yaml b/provider_counter/pubspec.yaml index 4ca76225e..f4b7d925f 100644 --- a/provider_counter/pubspec.yaml +++ b/provider_counter/pubspec.yaml @@ -17,7 +17,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter: diff --git a/shrine/analysis_options.yaml b/shrine/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/shrine/analysis_options.yaml +++ b/shrine/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/shrine/lib/category_menu_page.dart b/shrine/lib/category_menu_page.dart index b531f2833..fbebb41b4 100644 --- a/shrine/lib/category_menu_page.dart +++ b/shrine/lib/category_menu_page.dart @@ -34,37 +34,37 @@ class CategoryMenuPage extends StatelessWidget { final ThemeData theme = Theme.of(context); return ScopedModelDescendant( builder: (context, child, model) => GestureDetector( - onTap: () { - model.setCategory(category); - if (onCategoryTap != null) onCategoryTap(); - }, - child: model.selectedCategory == category - ? Column( - children: [ - SizedBox(height: 16.0), - Text( - categoryString, - style: theme.textTheme.body2, - textAlign: TextAlign.center, - ), - SizedBox(height: 14.0), - Container( - width: 70.0, - height: 2.0, - color: kShrinePink400, - ), - ], - ) - : Padding( - padding: EdgeInsets.symmetric(vertical: 16.0), - child: Text( - categoryString, - style: theme.textTheme.body2 - .copyWith(color: kShrineBrown900.withAlpha(153)), - textAlign: TextAlign.center, - ), + onTap: () { + model.setCategory(category); + if (onCategoryTap != null) onCategoryTap(); + }, + child: model.selectedCategory == category + ? Column( + children: [ + SizedBox(height: 16.0), + Text( + categoryString, + style: theme.textTheme.body2, + textAlign: TextAlign.center, ), - ), + SizedBox(height: 14.0), + Container( + width: 70.0, + height: 2.0, + color: kShrinePink400, + ), + ], + ) + : Padding( + padding: EdgeInsets.symmetric(vertical: 16.0), + child: Text( + categoryString, + style: theme.textTheme.body2 + .copyWith(color: kShrineBrown900.withAlpha(153)), + textAlign: TextAlign.center, + ), + ), + ), ); } diff --git a/shrine/lib/shopping_cart.dart b/shrine/lib/shopping_cart.dart index 48274b13e..1f7b3fd32 100644 --- a/shrine/lib/shopping_cart.dart +++ b/shrine/lib/shopping_cart.dart @@ -33,12 +33,12 @@ class _ShoppingCartPageState extends State { return model.productsInCart.keys .map( (id) => ShoppingCartRow( - product: model.getProductById(id), - quantity: model.productsInCart[id], - onPressed: () { - model.removeItemFromCart(id); - }, - ), + product: model.getProductById(id), + quantity: model.productsInCart[id], + onPressed: () { + model.removeItemFromCart(id); + }, + ), ) .toList(); } diff --git a/shrine/lib/supplemental/product_card.dart b/shrine/lib/supplemental/product_card.dart index 40f59c225..9eeb63223 100644 --- a/shrine/lib/supplemental/product_card.dart +++ b/shrine/lib/supplemental/product_card.dart @@ -42,12 +42,12 @@ class ProductCard extends StatelessWidget { return ScopedModelDescendant( builder: (context, child, model) => GestureDetector( - onTap: () { - model.addProductToCart(product.id); - // TODO: Add Snackbar - }, - child: child, - ), + onTap: () { + model.addProductToCart(product.id); + // TODO: Add Snackbar + }, + child: child, + ), child: Stack( children: [ Column( diff --git a/shrine/pubspec.lock b/shrine/pubspec.lock index 174c9acbd..6e07b6f49 100644 --- a/shrine/pubspec.lock +++ b/shrine/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: async: dependency: transitive @@ -7,7 +7,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -80,14 +80,14 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" quiver: dependency: transitive description: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" scoped_model: dependency: "direct main" description: @@ -148,7 +148,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/shrine/pubspec.yaml b/shrine/pubspec.yaml index af53f6e98..b57ed03c9 100644 --- a/shrine/pubspec.yaml +++ b/shrine/pubspec.yaml @@ -15,7 +15,7 @@ dependencies: dev_dependencies: flutter_test: sdk: flutter - pedantic: ^1.5.0 + pedantic: ^1.7.0 flutter: uses-material-design: true diff --git a/veggieseasons/analysis_options.yaml b/veggieseasons/analysis_options.yaml index f117e8a5f..b9a01f119 100644 --- a/veggieseasons/analysis_options.yaml +++ b/veggieseasons/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: strong-mode: diff --git a/veggieseasons/lib/widgets/trivia.dart b/veggieseasons/lib/widgets/trivia.dart index d7954b67d..cc8df329e 100644 --- a/veggieseasons/lib/widgets/trivia.dart +++ b/veggieseasons/lib/widgets/trivia.dart @@ -195,9 +195,9 @@ class _TriviaViewState extends State { CupertinoButton( child: Text('Next Question'), onPressed: () => setState(() { - triviaIndex++; - status = PlayerStatus.readyToAnswer; - }), + triviaIndex++; + status = PlayerStatus.readyToAnswer; + }), ), ], ), diff --git a/veggieseasons/lib/widgets/veggie_headline.dart b/veggieseasons/lib/widgets/veggie_headline.dart index 493a93bf6..13b4b08ec 100644 --- a/veggieseasons/lib/widgets/veggie_headline.dart +++ b/veggieseasons/lib/widgets/veggie_headline.dart @@ -69,9 +69,9 @@ class VeggieHeadline extends StatelessWidget { Widget build(BuildContext context) { return GestureDetector( onTap: () => Navigator.of(context).push(CupertinoPageRoute( - builder: (context) => DetailsScreen(veggie.id), - fullscreenDialog: true, - )), + builder: (context) => DetailsScreen(veggie.id), + fullscreenDialog: true, + )), child: Row( crossAxisAlignment: CrossAxisAlignment.start, children: [ diff --git a/veggieseasons/pubspec.lock b/veggieseasons/pubspec.lock index 6d31cfcd4..c7066c770 100644 --- a/veggieseasons/pubspec.lock +++ b/veggieseasons/pubspec.lock @@ -1,5 +1,5 @@ # Generated by pub -# See https://www.dartlang.org/tools/pub/glossary#lockfile +# See https://dart.dev/tools/pub/glossary#lockfile packages: archive: dependency: transitive @@ -21,7 +21,7 @@ packages: name: async url: "https://pub.dartlang.org" source: hosted - version: "2.1.0" + version: "2.2.0" boolean_selector: dependency: transitive description: @@ -129,7 +129,7 @@ packages: name: pedantic url: "https://pub.dartlang.org" source: hosted - version: "1.5.0" + version: "1.7.0" petitparser: dependency: transitive description: @@ -143,7 +143,7 @@ packages: name: quiver url: "https://pub.dartlang.org" source: hosted - version: "2.0.2" + version: "2.0.3" scoped_model: dependency: "direct main" description: @@ -204,7 +204,7 @@ packages: name: test_api url: "https://pub.dartlang.org" source: hosted - version: "0.2.4" + version: "0.2.5" typed_data: dependency: transitive description: diff --git a/veggieseasons/pubspec.yaml b/veggieseasons/pubspec.yaml index 81d48509c..016b1718e 100644 --- a/veggieseasons/pubspec.yaml +++ b/veggieseasons/pubspec.yaml @@ -20,7 +20,7 @@ dev_dependencies: flutter_test: sdk: flutter - pedantic: 1.5.0 + pedantic: ^1.7.0 flutter_launcher_icons: ^0.7.2+1 flutter: