Skip to content

Commit 265ef1e

Browse files
authored
Export SpellOutStringAttribute and LocaleStringAttribute (#106682)
1 parent 2c21f53 commit 265ef1e

File tree

6 files changed

+12
-18
lines changed

6 files changed

+12
-18
lines changed

packages/flutter/lib/semantics.dart

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
/// and is used by the platform-specific accessibility services.
1414
library semantics;
1515

16+
export 'dart:ui' show LocaleStringAttribute, SpellOutStringAttribute;
17+
1618
export 'src/semantics/binding.dart';
1719
export 'src/semantics/debug.dart';
1820
export 'src/semantics/semantics.dart';

packages/flutter/test/semantics/semantics_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'dart:ui';
6-
75
import 'package:flutter/rendering.dart';
86
import 'package:flutter_test/flutter_test.dart';
97
import 'package:vector_math/vector_math_64.dart';

packages/flutter/test/semantics/semantics_update_test.dart

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import 'dart:typed_data';
66
import 'dart:ui' as ui;
7-
import 'dart:ui';
87

98
import 'package:flutter/material.dart';
109
import 'package:flutter/semantics.dart';
@@ -198,15 +197,15 @@ class SemanticsUpdateBuilderSpy extends ui.SemanticsUpdateBuilder {
198197
required double thickness,
199198
required Rect rect,
200199
required String label,
201-
List<ui.StringAttribute>? labelAttributes,
200+
List<StringAttribute>? labelAttributes,
202201
required String value,
203-
List<ui.StringAttribute>? valueAttributes,
202+
List<StringAttribute>? valueAttributes,
204203
required String increasedValue,
205-
List<ui.StringAttribute>? increasedValueAttributes,
204+
List<StringAttribute>? increasedValueAttributes,
206205
required String decreasedValue,
207-
List<ui.StringAttribute>? decreasedValueAttributes,
206+
List<StringAttribute>? decreasedValueAttributes,
208207
required String hint,
209-
List<ui.StringAttribute>? hintAttributes,
208+
List<StringAttribute>? hintAttributes,
210209
String? tooltip,
211210
TextDirection? textDirection,
212211
required Float64List transform,
@@ -304,15 +303,15 @@ class SemanticsNodeUpdateObservation {
304303
final double thickness;
305304
final Rect rect;
306305
final String label;
307-
final List<ui.StringAttribute>? labelAttributes;
306+
final List<StringAttribute>? labelAttributes;
308307
final String value;
309-
final List<ui.StringAttribute>? valueAttributes;
308+
final List<StringAttribute>? valueAttributes;
310309
final String increasedValue;
311-
final List<ui.StringAttribute>? increasedValueAttributes;
310+
final List<StringAttribute>? increasedValueAttributes;
312311
final String decreasedValue;
313-
final List<ui.StringAttribute>? decreasedValueAttributes;
312+
final List<StringAttribute>? decreasedValueAttributes;
314313
final String hint;
315-
final List<ui.StringAttribute>? hintAttributes;
314+
final List<StringAttribute>? hintAttributes;
316315
final TextDirection? textDirection;
317316
final Float64List transform;
318317
final Int32List childrenInTraversalOrder;

packages/flutter/test/widgets/rich_text_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'dart:ui';
6-
75
import 'package:flutter/gestures.dart';
86
import 'package:flutter/material.dart';
97
import 'package:flutter/rendering.dart';

packages/flutter/test/widgets/semantics_tester.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// Use of this source code is governed by a BSD-style license that can be
33
// found in the LICENSE file.
44

5-
import 'dart:ui' show LocaleStringAttribute, SemanticsFlag, SpellOutStringAttribute;
6-
75
import 'package:flutter/foundation.dart';
86
import 'package:flutter/physics.dart';
97
import 'package:flutter/rendering.dart';

packages/flutter_test/lib/src/matchers.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
import 'dart:math' as math;
66
import 'dart:ui' as ui;
7-
import 'dart:ui';
87

98
import 'package:flutter/foundation.dart';
109
import 'package:flutter/material.dart' show Card;

0 commit comments

Comments
 (0)