Skip to content

Commit

Permalink
Merge branch 'main' into feature/GH-15/add_golden_test_for_material_c…
Browse files Browse the repository at this point in the history
…omponents
  • Loading branch information
karas1910 authored Jan 17, 2025
2 parents f10b07c + 975b1ff commit eec575f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ Widget alertDialog(BuildContext context) => Scaffold(
onPressed: () {
unawaited(
showDialog<void>(
useRootNavigator: false,
context: context,
builder: (context) {
return AlertDialog(
Expand Down Expand Up @@ -63,6 +64,7 @@ Widget adaptiveAlertDialog(BuildContext context) => Scaffold(
onPressed: () {
unawaited(
showDialog<void>(
useRootNavigator: false,
context: context,
builder: (context) {
return AlertDialog.adaptive(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Widget datePicker(BuildContext context) {
context: context,
firstDate: first,
lastDate: last,
useRootNavigator: false,
);
if (context.mounted) {
ScaffoldMessenger.maybeOf(context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ Widget dateRangePicker(BuildContext context) {
context: context,
firstDate: first,
lastDate: last,
useRootNavigator: false,
);
if (context.mounted) {
ScaffoldMessenger.maybeOf(context)?.showSnackBar(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Widget timePicker(BuildContext context) {
child: ElevatedButton(
onPressed: () async {
final result = await showTimePicker(
useRootNavigator: false,
context: context,
initialTime: TimeOfDay.now(),
orientation: orientation,
Expand Down

0 comments on commit eec575f

Please sign in to comment.