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

Create a recipe to demonstrate the new Cupertino-Sheet class #11598

Open
1 task
sfshaza2 opened this issue Jan 16, 2025 · 1 comment
Open
1 task

Create a recipe to demonstrate the new Cupertino-Sheet class #11598

sfshaza2 opened this issue Jan 16, 2025 · 1 comment
Assignees
Labels
co.request Community ask for documentation e2-days Effort: < 5 days p1-high Major but not urgent concern: Resolve in months. Update each month. t.ui.com.cupertino Relates to the Cupertino design components

Comments

@sfshaza2
Copy link
Contributor

sfshaza2 commented Jan 16, 2025

What information needs to be added?

This feature was added for for the next stable release.

Where should this new content appear?

/cookbook/design/sheets ??
/cookbook/design/cupertino ??

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.
@sfshaza2 sfshaza2 added co.request Community ask for documentation e2-days Effort: < 5 days p1-high Major but not urgent concern: Resolve in months. Update each month. t.ui.com.cupertino Relates to the Cupertino design components labels Jan 16, 2025
@sfshaza2 sfshaza2 self-assigned this Jan 16, 2025
@sfshaza2
Copy link
Contributor Author

sfshaza2 commented Jan 16, 2025

In the simple case it's very easy, similar to showMenu etc.

CupertinoButton.filled(
              onPressed: () {
                showCupertinoSheet<void>(
                  context: context,
                  useNestedNavigation: true,
                  pageBuilder: (BuildContext context) => const _SheetScaffold(),
                );
              },
              child: const Text('Open Bottom Sheet'),
            ),

From https://github.com/flutter/flutter/blob/master/examples/api/lib/cupertino/sheet/cupertino_sheet.1.dart

Examples:

https://github.com/flutter/flutter/blob/master/examples/api/lib/cupertino/sheet/cupertino_sheet.0.dart
https://github.com/flutter/flutter/blob/master/examples/api/lib/cupertino/sheet/cupertino_sheet.1.dart
https://github.com/flutter/flutter/blob/master/examples/api/lib/cupertino/sheet/cupertino_sheet.2.dart

Sheets: https://developer.apple.com/design/human-interface-guidelines/sheets

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co.request Community ask for documentation e2-days Effort: < 5 days p1-high Major but not urgent concern: Resolve in months. Update each month. t.ui.com.cupertino Relates to the Cupertino design components
Projects
None yet
Development

No branches or pull requests

1 participant