mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +00:00
Removed redundant "const" and "new" assignments & Formatted code. (#58)
This commit is contained in:
committed by
Andrew Brogdon
parent
be35972637
commit
8fe2999ee8
@@ -24,7 +24,7 @@ import 'supplemental/asymmetric_view.dart';
|
||||
class ProductPage extends StatelessWidget {
|
||||
final Category category;
|
||||
|
||||
const ProductPage({this.category: Category.all});
|
||||
const ProductPage({this.category = Category.all});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -41,11 +41,8 @@ class HomePage extends StatelessWidget {
|
||||
final ExpandingBottomSheet expandingBottomSheet;
|
||||
final Backdrop backdrop;
|
||||
|
||||
const HomePage({
|
||||
Key key,
|
||||
this.expandingBottomSheet,
|
||||
this.backdrop
|
||||
}) : super(key: key);
|
||||
const HomePage({Key key, this.expandingBottomSheet, this.backdrop})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
Reference in New Issue
Block a user