mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 13:58:47 +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:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user