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:
@@ -10,6 +10,6 @@ import 'place_tracker_app.dart';
|
||||
void main() {
|
||||
runApp(ChangeNotifierProvider(
|
||||
create: (context) => AppState(),
|
||||
child: PlaceTrackerApp(),
|
||||
child: const PlaceTrackerApp(),
|
||||
));
|
||||
}
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user