Skip to content
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

The demo code version is not fit with README. #384

Closed
magic3584 opened this issue Jan 19, 2024 · 3 comments
Closed

The demo code version is not fit with README. #384

magic3584 opened this issue Jan 19, 2024 · 3 comments

Comments

@magic3584
Copy link

Such as showCupertinoModalBottomSheet is deprecated in demo and I failed show modal using the function in 2.1.2

showModalBottomSheet(
      context: context,
      backgroundColor: Colors.transparent,
      builder: (context) => DetailPage(),
    );

Any help?

@CyMathew
Copy link

CyMathew commented Mar 9, 2024

Deprecated in which demo?

You will need MaterialWithModalsPageRoute on the route you're navigating from.

@magic3584
Copy link
Author

The demo perhaps is in Example folder on master branch by then.
I don't know whether it works by now.

@jamesblasco
Copy link
Owner

Please see the example Cupertino Modal fit:

ListTile(
title: Text('Cupertino Modal fit'),
onTap: () => showCupertinoModalBottomSheet(
expand: false,
context: context,
backgroundColor: Colors.transparent,
builder: (context) => ModalFit(),
),
),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants