Describe the bug
When using GetCupertinoApp as the main design for the app, almost every functionality from GetX works. When trying to use Get.bottomSheet, it shows the below pasted error.
FlutterError (No MaterialLocalizations found.
Navigator widgets require MaterialLocalizations to be provided by a Localizations widget ancestor.
The material library uses Localizations to generate messages, labels, and abbreviations.
To introduce a MaterialLocalizations, either use a MaterialApp at the root of your application to include them automatically, or add a Localization widget with a MaterialLocalizations delegate.
The specific widget that could not find a MaterialLocalizations ancestor was:
Navigator-[LabeledGlobalKey<NavigatorState>#55a27 Key Created by default]
The ancestors of this widget were:
Directionality
Builder
DefaultTextStyle
Title
Directionality
_LocalizationsScope-[GlobalKey#c6131]
Semantics
Localizations
MediaQuery
_MediaQueryFromWindow
_FocusMarker
Focus
_FocusTraversalGroupMarker
FocusTraversalGroup
_ActionsMarker
Actions
_ShortcutsMarker
Semantics
_FocusMarker
Focus
DefaultTextEditingShortcuts
_ShortcutsMarker
Semantics
_FocusMarker
Focus
Shortcuts
_SharedAppModel
SharedAppData
UnmanagedRestorationScope
RestorationScope
UnmanagedRestorationScope
RootRestorationScope
WidgetsApp-[GlobalObjectKey _CupertinoAppState#069c4]
Builder
HeroControllerScope
IconTheme
_InheritedCupertinoTheme
CupertinoTheme
CupertinoUserInterfaceLevel
ScrollConfiguration
CupertinoApp
GetBuilder<GetMaterialController>
GetCupertinoApp
MyApp
[root])
To Reproduce
Steps to reproduce the behavior:
Create an empty app.
Use GetCupertinoApp.
Try to open a bottom sheet anywhere in the app.
Expected behavior
To show a bottom sheet. If I change to GetMaterialApp, Get.bottomSheet works as expected.
Flutter Version:
4.10.3
Getx Version:
Latest (4.6.1)
Describe on which device you found the bug:
iPhone 13 - iOS 15 (simulator)
Describe the bug When using
GetCupertinoApp
as the main design for the app, almost every functionality from GetX works. When trying to useGet.bottomSheet
, it shows the below pasted error.Reproduction code
example:
Error
To Reproduce Steps to reproduce the behavior:
GetCupertinoApp
.Expected behavior To show a bottom sheet. If I change to
GetMaterialApp
,Get.bottomSheet
works as expected.Flutter Version: 4.10.3
Getx Version: Latest (4.6.1)
Describe on which device you found the bug: iPhone 13 - iOS 15 (simulator)
Minimal reproduce code Pasted above.