1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-10 14:58:34 +00:00

place_tracker: use_key_in_widget_constructors and Runners rebuild (#829)

This commit is contained in:
Brett Morgan
2021-06-08 07:46:36 +10:00
committed by GitHub
parent a51c0641f1
commit 7acef097f0
20 changed files with 169 additions and 126 deletions

View File

@@ -10,6 +10,6 @@ import 'place_tracker_app.dart';
void main() {
runApp(ChangeNotifierProvider(
create: (context) => AppState(),
child: PlaceTrackerApp(),
child: const PlaceTrackerApp(),
));
}

View File

@@ -17,6 +17,8 @@ enum PlaceTrackerViewType {
}
class PlaceTrackerApp extends StatelessWidget {
const PlaceTrackerApp({Key key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const MaterialApp(