1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Remove extra parameter from BottomSheet (#2080)

This PR is to fix the warning which is mentioned in #2079

## Pre-launch Checklist

- [x] I read the [Flutter Style Guide] _recently_, and have followed its
advice.
- [x] I signed the [CLA].
- [x] I read the [Contributors Guide].
- [ ] I updated/added relevant documentation (doc comments with `///`).
- [x] All existing and new tests are passing.
This commit is contained in:
Qun Cheng
2023-11-07 11:49:26 -08:00
committed by GitHub
parent f06daf4386
commit f741c8ff08
2 changed files with 4 additions and 4 deletions

View File

@@ -1635,7 +1635,7 @@ class BottomSheetSection extends StatefulWidget {
class _BottomSheetSectionState extends State<BottomSheetSection> { class _BottomSheetSectionState extends State<BottomSheetSection> {
bool isNonModalBottomSheetOpen = false; bool isNonModalBottomSheetOpen = false;
PersistentBottomSheetController<void>? _nonModalBottomSheetController; PersistentBottomSheetController? _nonModalBottomSheetController;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@@ -1722,7 +1722,7 @@ class _BottomSheetSectionState extends State<BottomSheetSection> {
}); });
} }
_nonModalBottomSheetController = showBottomSheet<void>( _nonModalBottomSheetController = showBottomSheet(
elevation: 8.0, elevation: 8.0,
context: context, context: context,
// TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619 // TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619

View File

@@ -1635,7 +1635,7 @@ class BottomSheetSection extends StatefulWidget {
class _BottomSheetSectionState extends State<BottomSheetSection> { class _BottomSheetSectionState extends State<BottomSheetSection> {
bool isNonModalBottomSheetOpen = false; bool isNonModalBottomSheetOpen = false;
PersistentBottomSheetController<void>? _nonModalBottomSheetController; PersistentBottomSheetController? _nonModalBottomSheetController;
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
@@ -1722,7 +1722,7 @@ class _BottomSheetSectionState extends State<BottomSheetSection> {
}); });
} }
_nonModalBottomSheetController = showBottomSheet<void>( _nonModalBottomSheetController = showBottomSheet(
elevation: 8.0, elevation: 8.0,
context: context, context: context,
// TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619 // TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619