Unverified Commit c37b7c53 authored by Hans Muller's avatar Hans Muller Committed by GitHub

Dismissible not dismissable (#26911)

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