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)
This commit is contained in:
Taha Tesser
2023-07-28 22:17:28 +03:00
committed by GitHub
parent 3567140d9e
commit 48d47ade9d

View File

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