Skip to content

Commit

Permalink
Export SpellOutStringAttribute and LocaleStringAttribute (#106682)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hixie authored Jun 27, 2022
1 parent 2c21f53 commit 265ef1e
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 18 deletions.
2 changes: 2 additions & 0 deletions packages/flutter/lib/semantics.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@
/// and is used by the platform-specific accessibility services.
library semantics;

export 'dart:ui' show LocaleStringAttribute, SpellOutStringAttribute;

export 'src/semantics/binding.dart';
export 'src/semantics/debug.dart';
export 'src/semantics/semantics.dart';
Expand Down
2 changes: 0 additions & 2 deletions packages/flutter/test/semantics/semantics_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:ui';

import 'package:flutter/rendering.dart';
import 'package:flutter_test/flutter_test.dart';
import 'package:vector_math/vector_math_64.dart';
Expand Down
21 changes: 10 additions & 11 deletions packages/flutter/test/semantics/semantics_update_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import 'dart:typed_data';
import 'dart:ui' as ui;
import 'dart:ui';

import 'package:flutter/material.dart';
import 'package:flutter/semantics.dart';
Expand Down Expand Up @@ -198,15 +197,15 @@ class SemanticsUpdateBuilderSpy extends ui.SemanticsUpdateBuilder {
required double thickness,
required Rect rect,
required String label,
List<ui.StringAttribute>? labelAttributes,
List<StringAttribute>? labelAttributes,
required String value,
List<ui.StringAttribute>? valueAttributes,
List<StringAttribute>? valueAttributes,
required String increasedValue,
List<ui.StringAttribute>? increasedValueAttributes,
List<StringAttribute>? increasedValueAttributes,
required String decreasedValue,
List<ui.StringAttribute>? decreasedValueAttributes,
List<StringAttribute>? decreasedValueAttributes,
required String hint,
List<ui.StringAttribute>? hintAttributes,
List<StringAttribute>? hintAttributes,
String? tooltip,
TextDirection? textDirection,
required Float64List transform,
Expand Down Expand Up @@ -304,15 +303,15 @@ class SemanticsNodeUpdateObservation {
final double thickness;
final Rect rect;
final String label;
final List<ui.StringAttribute>? labelAttributes;
final List<StringAttribute>? labelAttributes;
final String value;
final List<ui.StringAttribute>? valueAttributes;
final List<StringAttribute>? valueAttributes;
final String increasedValue;
final List<ui.StringAttribute>? increasedValueAttributes;
final List<StringAttribute>? increasedValueAttributes;
final String decreasedValue;
final List<ui.StringAttribute>? decreasedValueAttributes;
final List<StringAttribute>? decreasedValueAttributes;
final String hint;
final List<ui.StringAttribute>? hintAttributes;
final List<StringAttribute>? hintAttributes;
final TextDirection? textDirection;
final Float64List transform;
final Int32List childrenInTraversalOrder;
Expand Down
2 changes: 0 additions & 2 deletions packages/flutter/test/widgets/rich_text_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:ui';

import 'package:flutter/gestures.dart';
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart';
Expand Down
2 changes: 0 additions & 2 deletions packages/flutter/test/widgets/semantics_tester.dart
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

import 'dart:ui' show LocaleStringAttribute, SemanticsFlag, SpellOutStringAttribute;

import 'package:flutter/foundation.dart';
import 'package:flutter/physics.dart';
import 'package:flutter/rendering.dart';
Expand Down
1 change: 0 additions & 1 deletion packages/flutter_test/lib/src/matchers.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

import 'dart:math' as math;
import 'dart:ui' as ui;
import 'dart:ui';

import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart' show Card;
Expand Down

0 comments on commit 265ef1e

Please sign in to comment.