Skip to content

Commit f741c8f

Browse files
authored
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.
1 parent f06daf4 commit f741c8f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

experimental/material_3_demo/lib/component_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ class BottomSheetSection extends StatefulWidget {
16351635

16361636
class _BottomSheetSectionState extends State<BottomSheetSection> {
16371637
bool isNonModalBottomSheetOpen = false;
1638-
PersistentBottomSheetController<void>? _nonModalBottomSheetController;
1638+
PersistentBottomSheetController? _nonModalBottomSheetController;
16391639

16401640
@override
16411641
Widget build(BuildContext context) {
@@ -1722,7 +1722,7 @@ class _BottomSheetSectionState extends State<BottomSheetSection> {
17221722
});
17231723
}
17241724

1725-
_nonModalBottomSheetController = showBottomSheet<void>(
1725+
_nonModalBottomSheetController = showBottomSheet(
17261726
elevation: 8.0,
17271727
context: context,
17281728
// TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619

material_3_demo/lib/component_screen.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1635,7 +1635,7 @@ class BottomSheetSection extends StatefulWidget {
16351635

16361636
class _BottomSheetSectionState extends State<BottomSheetSection> {
16371637
bool isNonModalBottomSheetOpen = false;
1638-
PersistentBottomSheetController<void>? _nonModalBottomSheetController;
1638+
PersistentBottomSheetController? _nonModalBottomSheetController;
16391639

16401640
@override
16411641
Widget build(BuildContext context) {
@@ -1722,7 +1722,7 @@ class _BottomSheetSectionState extends State<BottomSheetSection> {
17221722
});
17231723
}
17241724

1725-
_nonModalBottomSheetController = showBottomSheet<void>(
1725+
_nonModalBottomSheetController = showBottomSheet(
17261726
elevation: 8.0,
17271727
context: context,
17281728
// TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619

0 commit comments

Comments
 (0)