skaran921 / flutter_awesome_alert_box

Other
7 stars 2 forks source link

Alertboxes incompatible with Cupertino apps or Tab Views? #1

Open herrmayr opened 4 years ago

herrmayr commented 4 years ago

I am trying to use the package's alert boxes inside a CupertinoApp, where I use CupertinoTabViews to create a "classic" iOS app.

However, when calling an AlertBox through an onPressed, the debug console returns

The ancestors of this widget were CupertinoPageScaffold dependencies: [MediaQuery] state: _CupertinoPageScaffoldState#49b30 CupertinoTabView state: _CupertinoTabViewState#69ec6 CupertinoTabScaffold dependencies: [_InheritedCupertinoTheme, CupertinoUserInterfaceLevel, MediaQuery] state: _CupertinoTabScaffoldState#eb2a2 MainNavView state: _MainNavViewState#bcd3a CupertinoApp state: _CupertinoAppState#d3e74 CupertinoImageApp ...

And nothing visible happens on screen. Maybe it's just an implementation error on my part, but the error message sounds suspicous ...

bit-burger commented 3 years ago

Maybe you forgot to give it the context