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:
@@ -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()
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user