Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
c0283d85
Commit
c0283d85
authored
Dec 03, 2019
by
Dan Field
Committed by
Flutter GitHub Bot
Dec 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Deprecate UpdateLiveRegionEvent (#45940)
parent
df0b3fed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
13 deletions
+14
-13
semantics.dart
packages/flutter/lib/src/semantics/semantics.dart
+8
-13
semantics_event.dart
packages/flutter/lib/src/semantics/semantics_event.dart
+6
-0
No files found.
packages/flutter/lib/src/semantics/semantics.dart
View file @
c0283d85
...
...
@@ -788,12 +788,10 @@ class SemanticsProperties extends DiagnosticableTree {
/// If non-null, whether the node should be considered a live region.
///
/// On Android, when a live region semantics node is first created TalkBack
/// will make a polite announcement of the current label. This announcement
/// occurs even if the node is not focused. Subsequent polite announcements
/// can be made by sending a [UpdateLiveRegionEvent] semantics event. The
/// announcement will only be made if the node's label has changed since the
/// last update.
/// On Android, when the label changes on a live region semantics node,
/// TalkBack will make a polite announcement of the current label. This
/// announcement occurs even if the node is not focused, but only if the label
/// has changed since the last update.
///
/// On iOS, no announcements are made but the node is marked as
/// `UIAccessibilityTraitUpdatesFrequently`.
...
...
@@ -807,7 +805,6 @@ class SemanticsProperties extends DiagnosticableTree {
///
/// * [SemanticsFlag.liveRegion], the semantics flag this setting controls.
/// * [SemanticsConfiguration.liveRegion], for a full description of a live region.
/// * [UpdateLiveRegionEvent], to trigger a polite announcement of a live region.
final
bool
liveRegion
;
/// The maximum number of characters that can be entered into an editable
...
...
@@ -3522,12 +3519,10 @@ class SemanticsConfiguration {
/// Whether the semantics node is a live region.
///
/// On Android, when a live region semantics node is first created TalkBack
/// will make a polite announcement of the current label. This announcement
/// occurs even if the node is not focused. Subsequent polite announcements
/// can be made by sending a [UpdateLiveRegionEvent] semantics event. The
/// announcement will only be made if the node's label has changed since the
/// last update.
/// On Android, when the label changes on a live region semantics node,
/// TalkBack will make a polite announcement of the current label. This
/// announcement occurs even if the node is not focused, but only if the label
/// has changed since the last update.
///
/// An example of a live region is the [Snackbar] widget. When it appears
/// on the screen it may be difficult to focus to read the label. A live
...
...
packages/flutter/lib/src/semantics/semantics_event.dart
View file @
c0283d85
...
...
@@ -144,6 +144,12 @@ class TapSemanticEvent extends SemanticsEvent {
/// See also:
///
/// * [SemanticsFlag.liveRegion], for a description of live regions.
///
/// Deprecated. This message was never implemented, and references to it should be removed.
@Deprecated
(
'This event has never been implemented and will be removed in a future version of Flutter. References to it should be removed. '
'This feature was deprecated after v1.12.16.'
)
class
UpdateLiveRegionEvent
extends
SemanticsEvent
{
/// Creates a new [UpdateLiveRegionEvent].
const
UpdateLiveRegionEvent
()
:
super
(
'updateLiveRegion'
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment