1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 13:58:47 +00:00

Upgrading samples to flutter_lints, part 1 of n (#804)

This commit is contained in:
Brett Morgan
2021-06-05 12:24:28 +10:00
committed by GitHub
parent 14921d0c06
commit 936d1fdaae
230 changed files with 2361 additions and 2444 deletions

View File

@@ -19,7 +19,7 @@ enum PlaceTrackerViewType {
class PlaceTrackerApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
return const MaterialApp(
home: _PlaceTrackerHomePage(),
);
}
@@ -46,7 +46,7 @@ class _PlaceTrackerHomePage extends StatelessWidget {
backgroundColor: Colors.green[700],
actions: [
Padding(
padding: EdgeInsets.fromLTRB(0.0, 0.0, 16.0, 0.0),
padding: const EdgeInsets.fromLTRB(0.0, 0.0, 16.0, 0.0),
child: IconButton(
icon: Icon(
state.viewType == PlaceTrackerViewType.map
@@ -67,8 +67,8 @@ class _PlaceTrackerHomePage extends StatelessWidget {
),
body: IndexedStack(
index: state.viewType == PlaceTrackerViewType.map ? 0 : 1,
children: [
PlaceMap(center: const LatLng(45.521563, -122.677433)),
children: const [
PlaceMap(center: LatLng(45.521563, -122.677433)),
PlaceList()
],
),