docimports for semantics (#151132)
Part of https://github.com/flutter/flutter/issues/150800 Issues encountered:
This commit is contained in:
parent
61326afdae
commit
0aedb5e688
@ -11,6 +11,8 @@
|
||||
///
|
||||
/// The [SemanticsNode] hierarchy represents the semantic structure of the UI
|
||||
/// and is used by the platform-specific accessibility services.
|
||||
///
|
||||
/// @docImport 'src/semantics/semantics.dart';
|
||||
library semantics;
|
||||
|
||||
export 'dart:ui' show LocaleStringAttribute, SpellOutStringAttribute;
|
||||
|
@ -2,6 +2,11 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'package:flutter/widgets.dart';
|
||||
///
|
||||
/// @docImport 'semantics.dart';
|
||||
library;
|
||||
|
||||
import 'dart:ui' as ui show AccessibilityFeatures, SemanticsActionEvent, SemanticsUpdateBuilder;
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
@ -128,13 +133,13 @@ mixin SemanticsBinding on BindingBase {
|
||||
///
|
||||
/// Bindings that mixin the [SemanticsBinding] must implement this method and
|
||||
/// perform the given `action` on the [SemanticsNode] specified by
|
||||
/// [SemanticsActionEvent.nodeId].
|
||||
/// [ui.SemanticsActionEvent.nodeId].
|
||||
///
|
||||
/// See [dart:ui.PlatformDispatcher.onSemanticsActionEvent].
|
||||
@protected
|
||||
void performSemanticsAction(ui.SemanticsActionEvent action);
|
||||
|
||||
/// The currently active set of [AccessibilityFeatures].
|
||||
/// The currently active set of [ui.AccessibilityFeatures].
|
||||
///
|
||||
/// This is set when the binding is first initialized and updated whenever a
|
||||
/// flag is changed.
|
||||
|
@ -2,6 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'binding.dart';
|
||||
library;
|
||||
|
||||
/// Overrides the setting of [SemanticsBinding.disableAnimations] for debugging
|
||||
/// and testing.
|
||||
|
@ -2,6 +2,12 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'dart:ui';
|
||||
///
|
||||
/// @docImport 'package:flutter/material.dart';
|
||||
/// @docImport 'package:flutter/rendering.dart';
|
||||
library;
|
||||
|
||||
import 'dart:math' as math;
|
||||
import 'dart:ui' show Offset, Rect, SemanticsAction, SemanticsFlag, SemanticsUpdate, SemanticsUpdateBuilder, StringAttribute, TextDirection;
|
||||
|
||||
@ -3717,7 +3723,7 @@ class SemanticsConfiguration {
|
||||
///
|
||||
/// See also:
|
||||
///
|
||||
/// * [addAction] to add an action.
|
||||
/// * [_addAction] to add an action.
|
||||
final Map<SemanticsAction, SemanticsActionHandler> _actions = <SemanticsAction, SemanticsActionHandler>{};
|
||||
|
||||
int get _effectiveActionsAsBits => isBlockingUserActions ? _actionsAsBits & _kUnblockedUserActions : _actionsAsBits;
|
||||
|
@ -2,6 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'package:flutter/services.dart';
|
||||
/// @docImport 'package:flutter/widgets.dart';
|
||||
library;
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/painting.dart';
|
||||
|
@ -2,6 +2,9 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
/// @docImport 'package:flutter/widgets.dart';
|
||||
library;
|
||||
|
||||
import 'dart:ui' show TextDirection;
|
||||
|
||||
import 'package:flutter/services.dart' show SystemChannels;
|
||||
|
Loading…
x
Reference in New Issue
Block a user