New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AppBar within CupertinoApp no longer working #21872
Comments
This is definitely new - seems to be a result of #20787 |
Using most Material widgets requires MaterialLocalizations. To fix this, you can add a material localization delegate to your Cupertino app: CupertinoApp(
localizationsDelegates: const <LocalizationsDelegate<dynamic>>[
DefaultMaterialLocalizations.delegate,
DefaultWidgetsLocalizations.delegate,
],
title: 'Flutter Demo',
home: new MyHomePage(title: 'Flutter Demo Home Page'),
) Previously there were many configurations that happened to work without them, but adding/removing certain properties might trigger a certain code path that broke. For example if you added a drawer to your AppBar it would throw the same exception. |
Thanks Jonah. |
@jonahwilliams This works, thank you very much! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of |
As far as I am aware this worked until I did a flutter upgrade today - so i'm not sure what would have changed, any insight would be useful according to #7508 this should work.
Steps to Reproduce
Logs
flutter.log
The text was updated successfully, but these errors were encountered: