1
0
mirror of https://github.com/flutter/samples.git synced 2026-05-30 19:08:56 +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

@@ -14,7 +14,7 @@ import 'package:veggieseasons/widgets/veggie_card.dart';
class ListScreen extends StatelessWidget {
List<Widget> _generateVeggieRows(List<Veggie> veggies, Preferences prefs) {
final cards = new List<Widget>();
final cards = List<Widget>();
for (Veggie veggie in veggies) {
cards.add(Padding(