Fix showDateRangePicker is missing dartpad tag and cleanup (#144475)
fixes [`showDateRangePicker` interactive sample not loading](https://github.com/flutter/flutter/issues/144474) ### Description This fixes `showDateRangePicker` example not loading in Dartpad. Similar fix was made for `showDatePicker` in https://github.com/flutter/flutter/pull/99401
This commit is contained in:
@@ -13,10 +13,9 @@ class DatePickerApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(useMaterial3: true),
|
||||
return const MaterialApp(
|
||||
restorationScopeId: 'app',
|
||||
home: const DatePickerExample(restorationId: 'main'),
|
||||
home: DatePickerExample(restorationId: 'main'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,10 +13,9 @@ class DatePickerApp extends StatelessWidget {
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
theme: ThemeData(useMaterial3: true),
|
||||
return const MaterialApp(
|
||||
restorationScopeId: 'app',
|
||||
home: const DatePickerExample(restorationId: 'main'),
|
||||
home: DatePickerExample(restorationId: 'main'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user