Skip to content

Commit

Permalink
Feat/add draggable property cupertino sheet route (#357)
Browse files Browse the repository at this point in the history
* feat: add draggable property to CupertinoSheetRoute 

it seems like a nice addition to me to let users customise this behaviour, also it might mitigate some scrolling issues users have.

* chore: reformatted changed content

---------

Co-authored-by: Jaime Blasco <[email protected]>
  • Loading branch information
Joran-Dob and jamesblasco authored Nov 18, 2024
1 parent 208300a commit c6718a0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sheet/lib/src/route/cupertino/sheet_route.dart
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ class CupertinoSheetRoute<T> extends SheetRoute<T> {
Color? backgroundColor,
super.maintainState = true,
super.fit,
super.draggable = true,
}) : super(
builder: (BuildContext context) {
return _CupertinoSheetDecorationBuilder(
Expand All @@ -113,9 +114,6 @@ class CupertinoSheetRoute<T> extends SheetRoute<T> {
initialExtent: initialStop,
);

@override
bool get draggable => true;

final SheetController _sheetController = SheetController();

@override
Expand Down

0 comments on commit c6718a0

Please sign in to comment.