-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Create a CupertinoApp #18469
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
Create a CupertinoApp #18469
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add an assert to check that
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done. Added some comments here and below too about not letting WidgetsApp make a navigator.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
iirc, some of the docs in this file were subtly different than those in widgets/app.dart in various minor ways. Please verify that the ones you've removed are in fact the same byte-for-byte.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Reverted some unintended merging of MaterialApp's doc into WidgetsApp. Mainly references to routes. Double checked that the delete docs from MaterialApp appear word for word in the template.
|
can we get away with not including the Navigator in CupertinoApp at all? |
|
In the current state, for consistency with MaterialApp, no :( Though I think if you extract a router out of the MaterialApp in a future refactor, it's worth removing it from here as well. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Semi tangential, I don't think this is true in the MaterialApp. We never actually create an actual Route and put a widget inside that says you did something wrong. We just print FlutterErrors.
I'm gonna remove this sentence.
This reverts commit 828a92a. Reverting in order to push segmented control golden files.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this should be private
…merged in time
|
Waiting for the engine roll (which has a golden update queued up) before merging. |
Part 1 of #18037