Dismissible not dismissable (#26911)
This commit is contained in:
parent
8afb015c08
commit
c37b7c535c
@ -159,7 +159,7 @@ List<GalleryDemo> _buildGalleryDemos() {
|
||||
),
|
||||
GalleryDemo(
|
||||
title: 'Bottom sheet: Modal',
|
||||
subtitle: 'A dismissable bottom sheet',
|
||||
subtitle: 'A dismissible bottom sheet',
|
||||
icon: GalleryIcons.bottom_sheets,
|
||||
category: _kMaterialComponents,
|
||||
routeName: ModalBottomSheetDemo.routeName,
|
||||
|
@ -231,7 +231,7 @@ class CupertinoPageRoute<T> extends PageRoute<T> {
|
||||
// with forms, then do not allow the user to dismiss the route with a swipe.
|
||||
if (route.hasScopedWillPopCallback)
|
||||
return false;
|
||||
// Fullscreen dialogs aren't dismissable by back swipe.
|
||||
// Fullscreen dialogs aren't dismissible by back swipe.
|
||||
if (route.fullscreenDialog)
|
||||
return false;
|
||||
// If we're in an animation already, we cannot be manually swiped.
|
||||
|
@ -60,7 +60,7 @@ class ModalBarrier extends StatelessWidget {
|
||||
/// the [ModalBarrier] built by [ModalRoute] pages.
|
||||
final bool barrierSemanticsDismissible;
|
||||
|
||||
/// Semantics label used for the barrier if it is [dismissable].
|
||||
/// Semantics label used for the barrier if it is [dismissible].
|
||||
///
|
||||
/// The semantics label is read out by accessibility tools (e.g. TalkBack
|
||||
/// on Android and VoiceOver on iOS) when the barrier is focused.
|
||||
@ -147,7 +147,7 @@ class AnimatedModalBarrier extends AnimatedWidget {
|
||||
/// [AnimatedModalBarrier] built by [ModalRoute] pages.
|
||||
final bool dismissible;
|
||||
|
||||
/// Semantics label used for the barrier if it is [dismissable].
|
||||
/// Semantics label used for the barrier if it is [dismissible].
|
||||
///
|
||||
/// The semantics label is read out by accessibility tools (e.g. TalkBack
|
||||
/// on Android and VoiceOver on iOS) when the barrier is focused.
|
||||
|
@ -71,7 +71,7 @@ class DelayedImageProvider extends ImageProvider<DelayedImageProvider> {
|
||||
}
|
||||
|
||||
@override
|
||||
String toString() => '${describeIdentity(this)}}()';
|
||||
String toString() => '${describeIdentity(this)}()';
|
||||
}
|
||||
|
||||
class TestImage implements ui.Image {
|
||||
|
Loading…
x
Reference in New Issue
Block a user