From 48d47ade9d65733a891a46e612257e715710d628 Mon Sep 17 00:00:00 2001 From: Taha Tesser Date: Fri, 28 Jul 2023 22:17:28 +0300 Subject: [PATCH] Update `BottomSheet.enableDrag` & `BottomSheet.showDragHandle` docs for animation controller (#131484) fixes [`AnimationController` must be provided when `BottomSheet.enableDrag` or `BottomSheet.showDragHandle` is true](https://github.com/flutter/flutter/issues/127093) --- packages/flutter/lib/src/material/bottom_sheet.dart | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/packages/flutter/lib/src/material/bottom_sheet.dart b/packages/flutter/lib/src/material/bottom_sheet.dart index f84cfe9ae1..0d683e3f23 100644 --- a/packages/flutter/lib/src/material/bottom_sheet.dart +++ b/packages/flutter/lib/src/material/bottom_sheet.dart @@ -123,6 +123,10 @@ class BottomSheet extends StatefulWidget { /// because the drag handle is always draggable. /// /// Default is true. + /// + /// If this is true, the [animationController] must not be null. + /// Use [BottomSheet.createAnimationController] to create one, or provide + /// another AnimationController. final bool enableDrag; /// Specifies whether a drag handle is shown. @@ -134,6 +138,10 @@ class BottomSheet extends StatefulWidget { /// /// If null, then the value of [BottomSheetThemeData.showDragHandle] is used. If /// that is also null, defaults to false. + /// + /// If this is true, the [animationController] must not be null. + /// Use [BottomSheet.createAnimationController] to create one, or provide + /// another AnimationController. final bool? showDragHandle; /// The bottom sheet drag handle's color.