1
0
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:
Abhijeeth Padarthi
2019-03-19 21:57:32 +05:30
committed by Andrew Brogdon
parent be35972637
commit 8fe2999ee8
16 changed files with 87 additions and 75 deletions

View File

@@ -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) {