Fix typos in bottom_sheet.dart (#146188)
This PR fixes some typos in material/bottom_sheet.dart file.
This commit is contained in:
parent
bd4c17155d
commit
1326c8ee53
@ -234,13 +234,13 @@ class BottomSheet extends StatefulWidget {
|
||||
/// Creates an [AnimationController] suitable for a
|
||||
/// [BottomSheet.animationController].
|
||||
///
|
||||
/// This API available as a convenience for a Material compliant bottom sheet
|
||||
/// This API is available as a convenience for a Material compliant bottom sheet
|
||||
/// animation. If alternative animation durations are required, a different
|
||||
/// animation controller could be provided.
|
||||
static AnimationController createAnimationController(
|
||||
TickerProvider vsync,
|
||||
{ AnimationStyle? sheetAnimationStyle }
|
||||
) {
|
||||
TickerProvider vsync, {
|
||||
AnimationStyle? sheetAnimationStyle,
|
||||
}) {
|
||||
return AnimationController(
|
||||
duration: sheetAnimationStyle?.duration ?? _bottomSheetEnterDuration,
|
||||
reverseDuration: sheetAnimationStyle?.reverseDuration ?? _bottomSheetExitDuration,
|
||||
@ -334,8 +334,7 @@ class _BottomSheetState extends State<BottomSheet> {
|
||||
setState(() {
|
||||
if (hovering){
|
||||
dragHandleMaterialState.add(MaterialState.hovered);
|
||||
}
|
||||
else{
|
||||
} else {
|
||||
dragHandleMaterialState.remove(MaterialState.hovered);
|
||||
}
|
||||
});
|
||||
@ -892,8 +891,8 @@ class ModalBottomSheetRoute<T> extends PopupRoute<T> {
|
||||
final bool isScrollControlled;
|
||||
|
||||
/// The max height constraint ratio for the bottom sheet
|
||||
/// when [isScrollControlled] set to false,
|
||||
/// no ratio will be applied when [isScrollControlled] set to true.
|
||||
/// when [isScrollControlled] is set to false,
|
||||
/// no ratio will be applied when [isScrollControlled] is set to true.
|
||||
///
|
||||
/// Defaults to 9 / 16.
|
||||
final double scrollControlDisabledMaxHeightRatio;
|
||||
@ -1054,7 +1053,7 @@ class ModalBottomSheetRoute<T> extends PopupRoute<T> {
|
||||
/// Updates the details regarding how the [SemanticsNode.rect] (focus) of
|
||||
/// the barrier for this [ModalBottomSheetRoute] should be clipped.
|
||||
///
|
||||
/// returns true if the clipDetails did change and false otherwise.
|
||||
/// Returns true if the clipDetails did change and false otherwise.
|
||||
bool _didChangeBarrierSemanticsClip(EdgeInsets newClipDetails) {
|
||||
if (_clipDetailsNotifier.value == newClipDetails) {
|
||||
return false;
|
||||
@ -1180,7 +1179,8 @@ class ModalBottomSheetRoute<T> extends PopupRoute<T> {
|
||||
/// [Navigator.pop] when the modal bottom sheet was closed.
|
||||
///
|
||||
/// The 'barrierLabel' parameter can be used to set a custom barrier label.
|
||||
/// Will default to modalBarrierDismissLabel of context if not set.
|
||||
/// Will default to [MaterialLocalizations.modalBarrierDismissLabel] of context
|
||||
/// if not set.
|
||||
///
|
||||
/// {@tool dartpad}
|
||||
/// This example demonstrates how to use [showModalBottomSheet] to display a
|
||||
|
Loading…
x
Reference in New Issue
Block a user