diff --git a/packages/flutter/lib/semantics.dart b/packages/flutter/lib/semantics.dart index 7d252d9a0dac..06e7d4133394 100644 --- a/packages/flutter/lib/semantics.dart +++ b/packages/flutter/lib/semantics.dart @@ -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'; diff --git a/packages/flutter/test/semantics/semantics_test.dart b/packages/flutter/test/semantics/semantics_test.dart index b04ef32f2090..89f6d7333910 100644 --- a/packages/flutter/test/semantics/semantics_test.dart +++ b/packages/flutter/test/semantics/semantics_test.dart @@ -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'; diff --git a/packages/flutter/test/semantics/semantics_update_test.dart b/packages/flutter/test/semantics/semantics_update_test.dart index 72bdcbada495..d7cda6e98f61 100644 --- a/packages/flutter/test/semantics/semantics_update_test.dart +++ b/packages/flutter/test/semantics/semantics_update_test.dart @@ -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'; @@ -198,15 +197,15 @@ class SemanticsUpdateBuilderSpy extends ui.SemanticsUpdateBuilder { required double thickness, required Rect rect, required String label, - List? labelAttributes, + List? labelAttributes, required String value, - List? valueAttributes, + List? valueAttributes, required String increasedValue, - List? increasedValueAttributes, + List? increasedValueAttributes, required String decreasedValue, - List? decreasedValueAttributes, + List? decreasedValueAttributes, required String hint, - List? hintAttributes, + List? hintAttributes, String? tooltip, TextDirection? textDirection, required Float64List transform, @@ -304,15 +303,15 @@ class SemanticsNodeUpdateObservation { final double thickness; final Rect rect; final String label; - final List? labelAttributes; + final List? labelAttributes; final String value; - final List? valueAttributes; + final List? valueAttributes; final String increasedValue; - final List? increasedValueAttributes; + final List? increasedValueAttributes; final String decreasedValue; - final List? decreasedValueAttributes; + final List? decreasedValueAttributes; final String hint; - final List? hintAttributes; + final List? hintAttributes; final TextDirection? textDirection; final Float64List transform; final Int32List childrenInTraversalOrder; diff --git a/packages/flutter/test/widgets/rich_text_test.dart b/packages/flutter/test/widgets/rich_text_test.dart index 83207b9a4e9e..5cae15358ce5 100644 --- a/packages/flutter/test/widgets/rich_text_test.dart +++ b/packages/flutter/test/widgets/rich_text_test.dart @@ -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'; diff --git a/packages/flutter/test/widgets/semantics_tester.dart b/packages/flutter/test/widgets/semantics_tester.dart index 91537d43cb84..5cf5138cb704 100644 --- a/packages/flutter/test/widgets/semantics_tester.dart +++ b/packages/flutter/test/widgets/semantics_tester.dart @@ -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'; diff --git a/packages/flutter_test/lib/src/matchers.dart b/packages/flutter_test/lib/src/matchers.dart index f49f75ee2760..f92b434797ac 100644 --- a/packages/flutter_test/lib/src/matchers.dart +++ b/packages/flutter_test/lib/src/matchers.dart @@ -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;