Skip to content

Commit

Permalink
Set showDragHandle to true for BottomSheet (#1741)
Browse files Browse the repository at this point in the history
One line change to show the drag handle on the `ModalBottomSheetRoute`.

<img width="611" alt="Screenshot 2023-04-18 at 4 56 49 PM"
src="https://user-images.githubusercontent.com/36861262/232929589-492434b9-7c87-43a0-8378-45ee3ca53782.png">


## 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.

Co-authored-by: Qun Cheng <[email protected]>
  • Loading branch information
QuncCccccc and QuncCccccc authored Apr 26, 2023
1 parent 9ff21d3 commit a0386f3
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions experimental/material_3_demo/lib/component_screen.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,7 @@ class _BottomSheetSectionState extends State<BottomSheetSection> {
),
onPressed: () {
showModalBottomSheet<void>(
showDragHandle: true,
context: context,
// TODO: Remove when this is in the framework https://github.com/flutter/flutter/issues/118619
constraints: const BoxConstraints(maxWidth: 640),
Expand Down

0 comments on commit a0386f3

Please sign in to comment.