Dismissible not dismissable (#26911)

This commit is contained in:
Hans Muller 2019-01-22 15:06:56 -08:00 committed by GitHub
parent 8afb015c08
commit c37b7c535c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

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

View File

@ -71,7 +71,7 @@ class DelayedImageProvider extends ImageProvider<DelayedImageProvider> {
}
@override
String toString() => '${describeIdentity(this)}}()';
String toString() => '${describeIdentity(this)}()';
}
class TestImage implements ui.Image {