Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
110 commits
Select commit Hold shift + click to select a range
06deba2
move more tests to Linux hosts (#10413)
yjbanov May 31, 2017
1b5b929
mark flutter_gallery_ios__transition_perf as flaky (#10420)
yjbanov May 31, 2017
0e97637
Implement a pushRoute service to satisfy the FlutterView.pushRoute AP…
jason-simmons Jun 1, 2017
498cfc6
(Update and) Integrate Rendering README into code (#10389)
goderbauer Jun 1, 2017
1b9c6a6
More documentation (#10426)
Hixie Jun 1, 2017
c63ac6b
Upgrade to new template (#10374)
mravn-google Jun 1, 2017
457554b
Added test for box decoration hit (#10438)
charafau Jun 1, 2017
a8777ce
CupertinoNavigationBar part 1 - extract common layout logic (#10337)
xster Jun 1, 2017
2aaa7f8
CupertinoNavigationBar part 2 - create a bare bone CupertinoNavigatio…
xster Jun 2, 2017
e3bab98
preview of prefer_asserts_in_initializer_list lint (#10441)
a14n Jun 2, 2017
a367dcb
Add flags to pass '--enable-software-rendering' flag to engine in run…
GaryQian Jun 2, 2017
a6069ae
Roll engine to 1f2aa075717169d6058ad97b3b5c2794a97a43d7 (#10447)
goderbauer Jun 2, 2017
e2f54df
Release SDK version 0.0.7 (#10456)
collinjackson Jun 2, 2017
2bb5cc9
Start 0.0.8-dev (#10459)
collinjackson Jun 2, 2017
a8fe276
Roll engine to 9af413ca8b44ede5dd961dca099149ead4ac8358 (#10457)
cbracken Jun 2, 2017
15928fb
have app loggers log to their parent logger (#10402)
devoncarew Jun 2, 2017
38891a2
IntelliJ and Flutter plugin version checks (#10454)
devoncarew Jun 2, 2017
9eae8b8
Sprinkle some mixin magic incantations (#10442)
Hixie Jun 2, 2017
cb95972
Small setup doc for the app store option (#10418)
xster Jun 2, 2017
0727540
Apply the paint offset to the bounds rectangle for shader masks (#10458)
jason-simmons Jun 2, 2017
7c68cf5
Roll the engine to bd09286e4aec422a1f77eac9de84274f22484846 (#10467)
cbracken Jun 2, 2017
2cd2a74
Add emailAddress, url TextInputTypes (#10471)
cbracken Jun 2, 2017
417df36
Add more detail to TextInputType documentation (#10474)
cbracken Jun 3, 2017
104725f
Adds a widgets that blocks all semantics of widgets below it in paint…
goderbauer Jun 3, 2017
fe52020
Emit doctor error if Flutter SDK path contains spaces (#10477)
cbracken Jun 3, 2017
c55097d
apply prefer_asserts_in_initializer_list lint (#10463)
a14n Jun 3, 2017
abb7669
apply prefer_asserts_in_initializer_list lint (#10489)
a14n Jun 5, 2017
69e2353
apply prefer_asserts_in_initializer_list lint (#10482)
a14n Jun 5, 2017
c63be2a
apply prefer_asserts_in_initializer_list lint (#10483)
a14n Jun 5, 2017
d65b9fb
Update tracking bug for SDK spaces in doctor (#10504)
cbracken Jun 5, 2017
dd6aab2
Add a Column to the template to address some of what we learnt from u…
Hixie Jun 5, 2017
078b380
Remove underscores from Android identifier during `flutter create` (#…
tvolkert Jun 5, 2017
d98d09d
remove unnecessary @required (#10501)
a14n Jun 5, 2017
1b29312
Upload sample catalog screenshots to cloud storage (#10462)
Jun 5, 2017
2ff2274
Make ColorSwatch more general, and test it (#10505)
Hixie Jun 5, 2017
ca4f4fc
Make the Brightness estimator public (#10508)
Hixie Jun 5, 2017
03e7ebe
Roll engine to c3721a589b50e3d2c2e56befbfd6f860d0de12a1 (#10512)
cbracken Jun 5, 2017
4b7e349
Add drag completion callback to Draggable. (#10455)
pylaligand Jun 5, 2017
cee36e3
Roll engine to 8686a458104628c4cd5e142e59cac53458724e31 (#10518)
goderbauer Jun 6, 2017
18d1be4
Make implicit animations work with hot reload (#10514)
Hixie Jun 6, 2017
6f824bc
More documentation (#10519)
Hixie Jun 6, 2017
4a92f63
Rename Picture example to MyImage (#10522)
Hixie Jun 6, 2017
0f277fc
Idea enable the plugin template (#10429)
mit-mit Jun 6, 2017
c8e4cbf
Improved support for saving and restoring the scroll offset, etc (#10…
Jun 6, 2017
a5aaaa8
bin/flutter: don’t warn about running as root within Docker container…
kevmoo Jun 6, 2017
3a23419
Hide the Scaffold's scroll-to-top button from accessibility (#10539)
goderbauer Jun 6, 2017
1b56cb7
Add --version-json to flutter CLI (#10538)
kevmoo Jun 7, 2017
3e645ee
Add changelog and required fields to template (#10548)
mit-mit Jun 7, 2017
7d71326
apply prefer_asserts_in_initializer_list lint (#10540)
a14n Jun 7, 2017
e9c7f60
Make generated Java folder names match package names. (#10537)
tvolkert Jun 7, 2017
b83ddcd
Rev engine to pick up FlutterActivity change (#10560)
tvolkert Jun 7, 2017
a0ca48c
Revert use of const asserts in flutter_driver (#10568)
cbracken Jun 7, 2017
c445c08
Don't visit element children of the childless (#10558)
Jun 7, 2017
96b9d64
Center all strings in SemanticDebugger (#10570)
goderbauer Jun 7, 2017
c2b0a30
Add more instructions and handling for first time iOS run (#10521)
xster Jun 7, 2017
b5365d9
Roll engine to 1f765cdba7aee9d0a953043209b05d2c59270391 (#10572)
cbracken Jun 7, 2017
46b316c
Change RawGestureDetector API to be better for strong mode Dart. (#10…
Hixie Jun 8, 2017
0cef0aa
Check for initialRoute before Navigator.defaultRouteName (#10216)
perlatus Jun 8, 2017
6ccc618
Revert "Improved support for saving and restoring the scroll offset, …
Hixie Jun 8, 2017
739b379
Give changelog proper extension (#10577)
mit-mit Jun 8, 2017
4d2806e
Remove comments unrelated to plugin example app (#10532)
mit-mit Jun 8, 2017
dfc7788
update_devicelab_manifest (#10583)
Jun 8, 2017
1eaefe1
more const for immutables (#10563)
a14n Jun 8, 2017
9554438
Bump to Dart SDK 1.24.0-dev.6.7. (#10585)
pq Jun 8, 2017
285ab18
Ensure that SemanticDebugger shows SemanticTree changes from last fra…
goderbauer Jun 8, 2017
0a8713e
Do not apply scroll offset corrections with zero values during sliver…
jason-simmons Jun 8, 2017
0f1a703
More documentation (#10589)
Hixie Jun 9, 2017
435c25b
Add note to .analysis_options about .analysis_options in flutter/plug…
goderbauer Jun 9, 2017
0e4dda7
Improved support for saving and restoring the scroll offset, etc V2 …
Jun 9, 2017
21441aa
Roll engine to 4d423b62b99b9d943a26fad776769cfe2c7f016d (#10591)
cbracken Jun 9, 2017
4bde698
Roll engine to ffe8181ffe7432b61a67323c80fd8025704e4695 (#10597)
cbracken Jun 9, 2017
09eba82
Add indicatorWeight, indicatorPadding to TabBar (#10600)
Jun 9, 2017
0c2546c
Factor out some common code in PaintingContext (#10607)
Hixie Jun 9, 2017
81eb140
Mark all iOS devicelab tests flaky (#10609)
cbracken Jun 10, 2017
dbaf12b
Do not read or write state if PageStorageKeys cannot be found (#10612)
Jun 12, 2017
37e32d5
Switch `flutter --version --json` to be `flutter --version --machine`…
tvolkert Jun 12, 2017
a848772
Run flutter_tools tests serially (#10643)
Hixie Jun 12, 2017
123e9e0
Allow TabBars, TabBarViews, TabControllers, with zero or one tabs (#1…
Jun 12, 2017
9ac1668
Analyze sample code (#10619)
Hixie Jun 12, 2017
a9f1cb8
More documentation (#10606)
Hixie Jun 12, 2017
db75aa7
Fix analyzer errors in sample code (#10648)
Hixie Jun 13, 2017
d74a588
Allow multi-line text fields with no line limit (#10576)
Hixie Jun 13, 2017
b4ba972
Rev engine to ffe8181ffe7432b61a67323c80fd8025704e4695 (#10651)
tvolkert Jun 13, 2017
bb119e9
Make dividers one device pixel thick as defined in Material design sp…
pulyaevskiy Jun 13, 2017
e38f92d
Create a CupertinoScaffold (#10543)
xster Jun 13, 2017
272faba
Support 'be' channel so you can download dart-sdk from the tip. (#10625)
aam Jun 13, 2017
1f4f75b
More documentation. (#10653)
Hixie Jun 13, 2017
0774c51
Add SemanticsNode.isSelected flag (#10610)
goderbauer Jun 13, 2017
8bf1719
Adding first semantics perf test (#10649)
goderbauer Jun 13, 2017
fde985b
resurrect analyzer benchmarks (#10668)
yjbanov Jun 13, 2017
3528cd6
flutter test: add --machine flag (#10520)
skybrian Jun 13, 2017
e329356
Oops, fix code coverage (#10672)
skybrian Jun 13, 2017
1ad346f
Add workaround for aapt cruncher issue to complex_layout app (#10679)
goderbauer Jun 14, 2017
befe019
flutter analyze --watch --flutter-repo check package conflicts (#10641)
Jun 14, 2017
9f344b6
Adds prefix and suffix support to TextField, per Material Design spec…
gspencergoog Jun 14, 2017
1a1bbac
Bump version in preparation for new tag (#10689)
tvolkert Jun 14, 2017
7158646
[accessibility] Announce index of tab in tab bar (#10664)
goderbauer Jun 14, 2017
e2d4f92
Benchmark for semantic overhead during transitions (#10678)
goderbauer Jun 14, 2017
e5213b8
Bump versions to `-dev` to complete the release of alpha (#10692)
tvolkert Jun 14, 2017
ede575a
Refactor sample catalog screenshot production (#10676)
Jun 14, 2017
7ada466
TabPageSelector colors and indicatorSize (#10665)
Jun 14, 2017
480d628
mark Linux tasks as stable (#10410)
yjbanov Jun 14, 2017
d8cb164
upload master and alpha docs to different hosts (#10707)
sethladd Jun 14, 2017
d3f9608
roll engine to 18fdfb86bb3876fcbb4e1d25e5b2aad0c5cd669f (#10711)
goderbauer Jun 15, 2017
6f77b4a
Prepare Alpha 0.0.9 (#10712)
goderbauer Jun 15, 2017
44126cd
Increment versions with -dev prefix (#10715)
goderbauer Jun 15, 2017
36c3a96
Create a CupertinoPageRoute (#10686)
xster Jun 15, 2017
4739159
Allow transitions_perf_test.dart to be run using package:test (#10725)
tvolkert Jun 15, 2017
747e25e
Fix devfs directory scanning to not attempt to scan non-existent dire…
tvolkert Jun 15, 2017
1bc54e0
Eliminate dead iOS device mock code (#10732)
cbracken Jun 15, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
apply prefer_asserts_in_initializer_list lint (flutter#10540)
  • Loading branch information
a14n authored Jun 7, 2017
commit 7d7132636369914402507c7b15d635039193ee46
16 changes: 7 additions & 9 deletions examples/catalog/lib/animated_list.dart
Original file line number Diff line number Diff line change
Expand Up @@ -117,10 +117,9 @@ class ListModel<E> {
@required this.listKey,
@required this.removedItemBuilder,
Iterable<E> initialItems,
}) : _items = new List<E>.from(initialItems ?? <E>[]) {
assert(listKey != null);
assert(removedItemBuilder != null);
}
}) : assert(listKey != null),
assert(removedItemBuilder != null),
_items = new List<E>.from(initialItems ?? <E>[]);

final GlobalKey<AnimatedListState> listKey;
final dynamic removedItemBuilder;
Expand Down Expand Up @@ -159,11 +158,10 @@ class CardItem extends StatelessWidget {
this.onTap,
@required this.item,
this.selected: false
}) : super(key: key) {
assert(animation != null);
assert(item != null && item >= 0);
assert(selected != null);
}
}) : assert(animation != null),
assert(item != null && item >= 0),
assert(selected != null),
super(key: key);

final Animation<double> animation;
final VoidCallback onTap;
Expand Down
30 changes: 14 additions & 16 deletions examples/flutter_gallery/lib/demo/animation/home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ class _RenderStatusBarPaddingSliver extends RenderSliver {
_RenderStatusBarPaddingSliver({
@required double maxHeight,
@required double scrollFactor,
}) : _maxHeight = maxHeight, _scrollFactor = scrollFactor {
assert(maxHeight != null && maxHeight >= 0.0);
assert(scrollFactor != null && scrollFactor >= 1.0);
}
}) : assert(maxHeight != null && maxHeight >= 0.0),
assert(scrollFactor != null && scrollFactor >= 1.0),
_maxHeight = maxHeight,
_scrollFactor = scrollFactor;

// The height of the status bar
double get maxHeight => _maxHeight;
Expand Down Expand Up @@ -79,10 +79,9 @@ class _StatusBarPaddingSliver extends SingleChildRenderObjectWidget {
Key key,
@required this.maxHeight,
this.scrollFactor: 5.0,
}) : super(key: key) {
assert(maxHeight != null && maxHeight >= 0.0);
assert(scrollFactor != null && scrollFactor >= 1.0);
}
}) : assert(maxHeight != null && maxHeight >= 0.0),
assert(scrollFactor != null && scrollFactor >= 1.0),
super(key: key);

final double maxHeight;
final double scrollFactor;
Expand Down Expand Up @@ -272,14 +271,13 @@ class _AllSectionsView extends AnimatedWidget {
this.midHeight,
this.maxHeight,
this.sectionCards: const <Widget>[],
}) : super(key: key, listenable: selectedIndex) {
assert(sections != null);
assert(sectionCards != null);
assert(sectionCards.length == sections.length);
assert(sectionIndex >= 0 && sectionIndex < sections.length);
assert(selectedIndex != null);
assert(selectedIndex.value >= 0.0 && selectedIndex.value < sections.length.toDouble());
}
}) : assert(sections != null),
assert(sectionCards != null),
assert(sectionCards.length == sections.length),
assert(sectionIndex >= 0 && sectionIndex < sections.length),
assert(selectedIndex != null),
assert(selectedIndex.value >= 0.0 && selectedIndex.value < sections.length.toDouble()),
super(key: key, listenable: selectedIndex);

final int sectionIndex;
final List<Section> sections;
Expand Down
23 changes: 11 additions & 12 deletions examples/flutter_gallery/lib/demo/animation/widgets.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ const double kSectionIndicatorWidth = 32.0;

// The card for a single section. Displays the section's gradient and background image.
class SectionCard extends StatelessWidget {
SectionCard({ Key key, @required this.section }) : super(key: key) {
assert(section != null);
}
SectionCard({ Key key, @required this.section })
: assert(section != null),
super(key: key);

final Section section;

Expand Down Expand Up @@ -65,11 +65,10 @@ class SectionTitle extends StatelessWidget {
@required this.section,
@required this.scale,
@required this.opacity,
}) : super(key: key) {
assert(section != null);
assert(scale != null);
assert(opacity != null && opacity >= 0.0 && opacity <= 1.0);
}
}) : assert(section != null),
assert(scale != null),
assert(opacity != null && opacity >= 0.0 && opacity <= 1.0),
super(key: key);

final Section section;
final double scale;
Expand Down Expand Up @@ -118,10 +117,10 @@ class SectionIndicator extends StatelessWidget {

// Display a single SectionDetail.
class SectionDetailView extends StatelessWidget {
SectionDetailView({ Key key, @required this.detail }) : super(key: key) {
assert(detail != null && detail.imageAsset != null);
assert((detail.imageAsset ?? detail.title) != null);
}
SectionDetailView({ Key key, @required this.detail })
: assert(detail != null && detail.imageAsset != null),
assert((detail.imageAsset ?? detail.title) != null),
super(key: key);

final SectionDetail detail;

Expand Down
14 changes: 6 additions & 8 deletions examples/flutter_gallery/lib/demo/colors_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,10 @@ class ColorItem extends StatelessWidget {
@required this.index,
@required this.color,
this.prefix: '',
}) : super(key: key) {
assert(index != null);
assert(color != null);
assert(prefix != null);
}
}) : assert(index != null),
assert(color != null),
assert(prefix != null),
super(key: key);

final int index;
final Color color;
Expand Down Expand Up @@ -84,9 +83,8 @@ class PaletteTabView extends StatelessWidget {
PaletteTabView({
Key key,
@required this.colors,
}) : super(key: key) {
assert(colors != null && colors.isValid);
}
}) : assert(colors != null && colors.isValid),
super(key: key);

final Palette colors;

Expand Down
6 changes: 3 additions & 3 deletions examples/flutter_gallery/lib/demo/contacts_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ class _ContactCategory extends StatelessWidget {
}

class _ContactItem extends StatelessWidget {
_ContactItem({ Key key, this.icon, this.lines, this.tooltip, this.onPressed }) : super(key: key) {
assert(lines.length > 1);
}
_ContactItem({ Key key, this.icon, this.lines, this.tooltip, this.onPressed })
: assert(lines.length > 1),
super(key: key);

final IconData icon;
final List<String> lines;
Expand Down
6 changes: 3 additions & 3 deletions examples/flutter_gallery/lib/demo/material/cards_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ final List<TravelDestination> destinations = <TravelDestination>[
];

class TravelDestinationItem extends StatelessWidget {
TravelDestinationItem({ Key key, @required this.destination }) : super(key: key) {
assert(destination != null && destination.isValid);
}
TravelDestinationItem({ Key key, @required this.destination })
: assert(destination != null && destination.isValid),
super(key: key);

static final double height = 366.0;
final TravelDestination destination;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,10 @@ enum DismissDialogAction {

class DateTimeItem extends StatelessWidget {
DateTimeItem({ Key key, DateTime dateTime, @required this.onChanged })
: date = new DateTime(dateTime.year, dateTime.month, dateTime.day),
: assert(onChanged != null),
date = new DateTime(dateTime.year, dateTime.month, dateTime.day),
time = new TimeOfDay(hour: dateTime.hour, minute: dateTime.minute),
super(key: key) {
assert(onChanged != null);
}
super(key: key);

final DateTime date;
final TimeOfDay time;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,10 @@ class GridDemoPhotoItem extends StatelessWidget {
@required this.photo,
@required this.tileStyle,
@required this.onBannerTap
}) : super(key: key) {
assert(photo != null && photo.isValid);
assert(tileStyle != null);
assert(onBannerTap != null);
}
}) : assert(photo != null && photo.isValid),
assert(tileStyle != null),
assert(onBannerTap != null),
super(key: key);

final Photo photo;
final GridDemoTileStyle tileStyle;
Expand Down
22 changes: 11 additions & 11 deletions examples/flutter_gallery/lib/demo/shrine/shrine_home.dart
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ class _ShrineGridDelegate extends SliverGridDelegate {

// Displays the Vendor's name and avatar.
class _VendorItem extends StatelessWidget {
_VendorItem({ Key key, @required this.vendor }) : super(key: key) {
assert(vendor != null);
}
_VendorItem({ Key key, @required this.vendor })
: assert(vendor != null),
super(key: key);

final Vendor vendor;

Expand Down Expand Up @@ -240,11 +240,11 @@ class _HeadingLayout extends MultiChildLayoutDelegate {

// A card that highlights the "featured" catalog item.
class _Heading extends StatelessWidget {
_Heading({ Key key, @required this.product }) : super(key: key) {
assert(product != null);
assert(product.featureTitle != null);
assert(product.featureDescription != null);
}
_Heading({ Key key, @required this.product })
: assert(product != null),
assert(product.featureTitle != null),
assert(product.featureDescription != null),
super(key: key);

final Product product;

Expand Down Expand Up @@ -294,9 +294,9 @@ class _Heading extends StatelessWidget {
// A card that displays a product's image, price, and vendor. The _ProductItem
// cards appear in a grid below the heading.
class _ProductItem extends StatelessWidget {
_ProductItem({ Key key, @required this.product, this.onPressed }) : super(key: key) {
assert(product != null);
}
_ProductItem({ Key key, @required this.product, this.onPressed })
: assert(product != null),
super(key: key);

final Product product;
final VoidCallback onPressed;
Expand Down
36 changes: 16 additions & 20 deletions examples/flutter_gallery/lib/demo/shrine/shrine_order.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,10 @@ class _ProductItem extends StatelessWidget {
@required this.product,
@required this.quantity,
@required this.onChanged,
}) : super(key: key) {
assert(product != null);
assert(quantity != null);
assert(onChanged != null);
}
}) : assert(product != null),
assert(quantity != null),
assert(onChanged != null),
super(key: key);

final Product product;
final int quantity;
Expand Down Expand Up @@ -70,9 +69,9 @@ class _ProductItem extends StatelessWidget {

// Vendor name and description
class _VendorItem extends StatelessWidget {
_VendorItem({ Key key, @required this.vendor }) : super(key: key) {
assert(vendor != null);
}
_VendorItem({ Key key, @required this.vendor })
: assert(vendor != null),
super(key: key);

final Vendor vendor;

Expand Down Expand Up @@ -146,10 +145,9 @@ class _Heading extends StatelessWidget {
@required this.product,
@required this.quantity,
this.quantityChanged,
}) : super(key: key) {
assert(product != null);
assert(quantity != null && quantity >= 0 && quantity <= 5);
}
}) : assert(product != null),
assert(quantity != null && quantity >= 0 && quantity <= 5),
super(key: key);

final Product product;
final int quantity;
Expand Down Expand Up @@ -213,11 +211,10 @@ class OrderPage extends StatefulWidget {
@required this.order,
@required this.products,
@required this.shoppingCart,
}) : super(key: key) {
assert(order != null);
assert(products != null && products.isNotEmpty);
assert(shoppingCart != null);
}
}) : assert(order != null),
assert(products != null && products.isNotEmpty),
assert(shoppingCart != null),
super(key: key);

final Order order;
final List<Product> products;
Expand Down Expand Up @@ -328,9 +325,8 @@ class ShrineOrderRoute extends ShrinePageRoute<Order> {
@required this.order,
WidgetBuilder builder,
RouteSettings settings: const RouteSettings(),
}) : super(builder: builder, settings: settings) {
assert(order != null);
}
}) : assert(order != null),
super(builder: builder, settings: settings);

Order order;

Expand Down
7 changes: 3 additions & 4 deletions examples/flutter_gallery/lib/demo/shrine/shrine_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ class ShrinePage extends StatefulWidget {
this.floatingActionButton,
this.products,
this.shoppingCart
}) : super(key: key) {
assert(body != null);
assert(scaffoldKey != null);
}
}) : assert(body != null),
assert(scaffoldKey != null),
super(key: key);

final GlobalKey<ScaffoldState> scaffoldKey;
final Widget body;
Expand Down
6 changes: 3 additions & 3 deletions examples/flutter_gallery/lib/demo/shrine/shrine_theme.dart
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ TextStyle abrilFatfaceRegular34(Color color) => new ShrineStyle.abrilFatface(34.
/// InheritedWidget is shared by all of the routes and widgets created for
/// the Shrine app.
class ShrineTheme extends InheritedWidget {
ShrineTheme({ Key key, @required Widget child }) : super(key: key, child: child) {
assert(child != null);
}
ShrineTheme({ Key key, @required Widget child })
: assert(child != null),
super(key: key, child: child);

final Color cardBackgroundColor = Colors.white;
final Color appBarBackgroundColor = Colors.white;
Expand Down
9 changes: 4 additions & 5 deletions examples/flutter_gallery/lib/demo/shrine/shrine_types.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,10 @@ class Product {
}

class Order {
Order({ @required this.product, this.quantity: 1, this.inCart: false }) {
assert(product != null);
assert(quantity != null && quantity >= 0);
assert(inCart != null);
}
Order({ @required this.product, this.quantity: 1, this.inCart: false })
: assert(product != null),
assert(quantity != null && quantity >= 0),
assert(inCart != null);

final Product product;
final int quantity;
Expand Down
9 changes: 4 additions & 5 deletions examples/flutter_gallery/lib/demo/typography_demo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,10 @@ class TextStyleItem extends StatelessWidget {
@required this.name,
@required this.style,
@required this.text,
}) : super(key: key) {
assert(name != null);
assert(style != null);
assert(text != null);
}
}) : assert(name != null),
assert(style != null),
assert(text != null),
super(key: key);

final String name;
final TextStyle style;
Expand Down
7 changes: 3 additions & 4 deletions examples/flutter_gallery/lib/gallery/drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,9 @@ class GalleryDrawer extends StatelessWidget {
this.onCheckerboardOffscreenLayersChanged,
this.onPlatformChanged,
this.onSendFeedback,
}) : super(key: key) {
assert(onThemeChanged != null);
assert(onTimeDilationChanged != null);
}
}) : assert(onThemeChanged != null),
assert(onTimeDilationChanged != null),
super(key: key);

final bool useLightTheme;
final ValueChanged<bool> onThemeChanged;
Expand Down
Loading