Skip to content

Commit d72a485

Browse files
authored
Feat: Add brightness export from widgets.dart (#169410)
Feat: Add brightness export from widgets.dart fixes: #169294 ## Pre-launch Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [Tree Hygiene] wiki page, which explains my responsibilities. - [x] I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement]. - [x] I signed the [CLA]. - [x] I listed at least one issue that this PR fixes in the description above. - [x] I updated/added relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or this PR is [test-exempt]. - [x] I followed the [breaking change policy] and added [Data Driven Fixes] where supported. - [x] All existing and new tests are passing.
1 parent 6af3df8 commit d72a485

5 files changed

Lines changed: 1 addition & 8 deletions

File tree

packages/flutter/lib/src/material/desktop_text_selection_toolbar_button.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +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 'package:flutter/services.dart';
65
import 'package:flutter/widgets.dart';
76

87
import 'colors.dart';

packages/flutter/lib/src/material/material_button.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,6 @@
1212
/// @docImport 'text_theme.dart';
1313
library;
1414

15-
import 'dart:ui';
16-
1715
import 'package:flutter/rendering.dart';
1816
import 'package:flutter/widgets.dart';
1917

packages/flutter/lib/widgets.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ library widgets;
1515
export 'package:characters/characters.dart';
1616
export 'package:vector_math/vector_math_64.dart' show Matrix4;
1717

18-
export 'foundation.dart' show UniqueKey;
18+
export 'foundation.dart' show Brightness, UniqueKey;
1919
export 'rendering.dart' show TextSelectionHandleType;
2020
export 'src/widgets/actions.dart';
2121
export 'src/widgets/adapter.dart';

packages/flutter_tools/templates/widget_preview_scaffold/lib/src/widget_preview.dart.tmpl

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/foundation.dart';
86
import 'package:flutter/widget_previews.dart';
97
import 'package:flutter/widgets.dart';

packages/flutter_tools/test/widget_preview_scaffold.shard/widget_preview_scaffold/lib/src/widget_preview.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/foundation.dart';
86
import 'package:flutter/widget_previews.dart';
97
import 'package:flutter/widgets.dart';

0 commit comments

Comments
 (0)