Unverified Commit 48d47ade authored by Taha Tesser's avatar Taha Tesser Committed by GitHub

Update `BottomSheet.enableDrag` & `BottomSheet.showDragHandle` docs for...

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)
parent 3567140d
......@@ -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.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment