-
Notifications
You must be signed in to change notification settings - Fork 465
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
[sheet] Show cupertino modal? #367
Comments
Same here, I'm trying to get this animation. |
@cancng were you able to create this animation? I m not able to create it :( |
@bahadurh No, I couldn't. In React Native, this presentation type is pageSheet, but I couldn't find it in Flutter. 😦 |
You can achieve this do this using I'm using go_router and was able to create an iOS-style modal by following this example. The key thing is that you need to use GoRoute(
path: '/timer',
pageBuilder: (BuildContext context, GoRouterState state) =>
const CupertinoExtendedPage(child: StartTimerScreen()),
routes: <RouteBase>[
GoRoute(
path: 'select-tags',
pageBuilder: (BuildContext context, GoRouterState state) =>
const CupertinoSheetPage(child: SelectTagsScreen()),
),
],
), Additionally, if you build the example app and go to the "Route" tab you'll see a bunch of examples that showcase various ways to use an iOS-style modal. Many of these don't use go_router and thus show how to create the modal using the vanilla navigator API. |
as the 1.0 version, the package doesn't have a I ended up making a copy of Also there are some issues with padding and Safearea |
I really like the direction sheet is going and how it can work with Navigator2.
The only reason I use modal_bottom_sheet is for iOS-styled modals, which you can achieve with modal_bottom_sheet (but not in Navigator2-friendly way). I didn't find any example of this with sheet. Is it possible to do it?
Example of what I'm talking about:
The text was updated successfully, but these errors were encountered: