mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 14:58:34 +00:00
Removed redundant "const" and "new" assignments & Formatted code. (#58)
This commit is contained in:
committed by
Andrew Brogdon
parent
be35972637
commit
8fe2999ee8
@@ -12,7 +12,7 @@ import 'package:jsonexample/built_value/built_simple_object.dart';
|
||||
|
||||
part 'built_value_serializers.g.dart';
|
||||
|
||||
@SerializersFor(const [
|
||||
@SerializersFor([
|
||||
BuiltSimpleObject,
|
||||
BuiltComplexObject,
|
||||
])
|
||||
|
||||
@@ -46,7 +46,7 @@ class MyHomePage extends StatelessWidget {
|
||||
],
|
||||
),
|
||||
),
|
||||
body: new SafeArea(
|
||||
body: SafeArea(
|
||||
bottom: false,
|
||||
child: TabBarView(
|
||||
children: [
|
||||
|
||||
@@ -129,7 +129,7 @@ class ComplexObjectView extends StatelessWidget {
|
||||
if (simpleObjects == null) {
|
||||
return [
|
||||
const Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 8.0),
|
||||
padding: EdgeInsets.symmetric(vertical: 8.0),
|
||||
child: Text('NULL'),
|
||||
),
|
||||
];
|
||||
@@ -138,7 +138,7 @@ class ComplexObjectView extends StatelessWidget {
|
||||
if (simpleObjects.length == 0) {
|
||||
return [
|
||||
const Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4.0),
|
||||
padding: EdgeInsets.symmetric(vertical: 4.0),
|
||||
child: Text('[]'),
|
||||
),
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user