From f741c8ff086033e11a55e75c1907c0b58f71f923 Mon Sep 17 00:00:00 2001 From: Qun Cheng <36861262+QuncCccccc@users.noreply.github.com> Date: Tue, 7 Nov 2023 11:49:26 -0800 Subject: [PATCH] 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. --- experimental/material_3_demo/lib/component_screen.dart | 4 ++-- material_3_demo/lib/component_screen.dart | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/experimental/material_3_demo/lib/component_screen.dart b/experimental/material_3_demo/lib/component_screen.dart index f3456df8d..c484e96fb 100644 --- a/experimental/material_3_demo/lib/component_screen.dart +++ b/experimental/material_3_demo/lib/component_screen.dart @@ -1635,7 +1635,7 @@ class BottomSheetSection extends StatefulWidget { class _BottomSheetSectionState extends State { bool isNonModalBottomSheetOpen = false; - PersistentBottomSheetController? _nonModalBottomSheetController; + PersistentBottomSheetController? _nonModalBottomSheetController; @override Widget build(BuildContext context) { @@ -1722,7 +1722,7 @@ class _BottomSheetSectionState extends State { }); } - _nonModalBottomSheetController = showBottomSheet( + _nonModalBottomSheetController = showBottomSheet( elevation: 8.0, context: context, // TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619 diff --git a/material_3_demo/lib/component_screen.dart b/material_3_demo/lib/component_screen.dart index f3456df8d..c484e96fb 100644 --- a/material_3_demo/lib/component_screen.dart +++ b/material_3_demo/lib/component_screen.dart @@ -1635,7 +1635,7 @@ class BottomSheetSection extends StatefulWidget { class _BottomSheetSectionState extends State { bool isNonModalBottomSheetOpen = false; - PersistentBottomSheetController? _nonModalBottomSheetController; + PersistentBottomSheetController? _nonModalBottomSheetController; @override Widget build(BuildContext context) { @@ -1722,7 +1722,7 @@ class _BottomSheetSectionState extends State { }); } - _nonModalBottomSheetController = showBottomSheet( + _nonModalBottomSheetController = showBottomSheet( elevation: 8.0, context: context, // TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619