Skip to content

Commit

Permalink
[nfc]: Remove unnecessary imports of dart:ui
Browse files Browse the repository at this point in the history
Upstream Flutter (in flutter/flutter@c6741614041 )
changed `flutter/material.dart` to additionally export
many types from `dart:ui`. This caused a lot of our
imports to trigger an analysis warning of
`unnecessary_import`.
  • Loading branch information
sirpengi committed Dec 8, 2023
1 parent 01e4f14 commit a9d43d5
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 6 deletions.
1 change: 0 additions & 1 deletion lib/widgets/message_list.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:math';
import 'dart:ui';

import 'package:collection/collection.dart';
import 'package:flutter/material.dart';
Expand Down
1 change: 0 additions & 1 deletion lib/widgets/text.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import 'dart:io';
import 'dart:ui';
import 'package:flutter/widgets.dart';

/// A mergeable [TextStyle] with 'Source Code Pro' and platform-aware fallbacks.
Expand Down
1 change: 0 additions & 1 deletion lib/widgets/unread_count_badge.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:ui';

import 'package:flutter/material.dart';

Expand Down
2 changes: 0 additions & 2 deletions test/flutter_checks.dart
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
/// `package:checks`-related extensions for the Flutter framework.
library;

import 'dart:ui';

import 'package:checks/checks.dart';
import 'package:flutter/services.dart';
import 'package:flutter/widgets.dart';
Expand Down
1 change: 0 additions & 1 deletion test/widgets/text_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import 'dart:ui';

import 'package:checks/checks.dart';
import 'package:flutter/material.dart';
Expand Down

0 comments on commit a9d43d5

Please sign in to comment.