From 2c4a2692cf053da788cf0074644863dc5df5717b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Patr=C3=B3n=20G=C3=B3mez?= Date: Fri, 14 Aug 2026 15:28:27 +0200 Subject: [PATCH] refactor: migrate project dependencies from flutter to material_ui and cupertino_ui packages --- analysis_options.yaml | 7 +++ example/integration_test/app_render_test.dart | 2 +- .../integration_test/markdown_harness.dart | 2 +- example/lib/demos/basic_markdown_demo.dart | 2 +- example/lib/demos/centered_header_demo.dart | 2 +- .../lib/demos/custom_bullet_list_demo.dart | 2 +- example/lib/demos/extended_emoji_demo.dart | 2 +- .../demos/markdown_body_shrink_wrap_demo.dart | 2 +- example/lib/demos/minimal_markdown_demo.dart | 2 +- example/lib/demos/original_demo.dart | 2 +- example/lib/demos/subscript_syntax_demo.dart | 2 +- example/lib/demos/wrap_alignment_demo.dart | 2 +- example/lib/main.dart | 2 +- example/lib/readme_excerpts.dart | 2 +- example/lib/screens/demo_card.dart | 2 +- example/lib/screens/demo_screen.dart | 2 +- example/lib/screens/home_screen.dart | 2 +- example/lib/shared/dropdown_menu.dart | 2 +- example/lib/shared/markdown_extensions.dart | 2 +- example/pubspec.lock | 51 +++++++++++++++---- example/pubspec.yaml | 4 +- lib/src/_functions_io.dart | 4 +- lib/src/_functions_web.dart | 4 +- lib/src/builder.dart | 2 +- lib/src/style_sheet.dart | 4 +- lib/src/widget.dart | 2 +- pubspec.lock | 49 ++++++++++++++---- pubspec.yaml | 2 + test/blockquote_test.dart | 2 +- test/context_menu_builder_test.dart | 2 +- test/custom_syntax_test.dart | 2 +- test/horizontal_rule_test.dart | 2 +- test/image_test.dart | 2 +- test/inline_widget_test.dart | 4 +- test/list_test.dart | 2 +- test/padding_test.dart | 4 +- test/render_golden_test.dart | 2 +- test/selection_area_compatibility_test.dart | 2 +- test/style_sheet_test.dart | 4 +- test/table_test.dart | 2 +- test/text_alignment_test.dart | 2 +- test/text_scaler_test.dart | 2 +- test/text_test.dart | 2 +- test/utils.dart | 2 +- 44 files changed, 135 insertions(+), 68 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index cd005be..deed4a3 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -24,6 +24,13 @@ analyzer: # Locally symlinked sibling package (flutter_markdown_plus_latex) used for # cross-package development; not part of this package. - 'flutter_markdown_plus_latex/**' + - build/** + - android/** + - ios/** + - web/** + - windows/** + - macos/** + - linux/** formatter: page_width: 120 diff --git a/example/integration_test/app_render_test.dart b/example/integration_test/app_render_test.dart index 0450c0f..b8ece8d 100644 --- a/example/integration_test/app_render_test.dart +++ b/example/integration_test/app_render_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_example/main.dart' as app; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/example/integration_test/markdown_harness.dart b/example/integration_test/markdown_harness.dart index 703ddaa..4089dd4 100644 --- a/example/integration_test/markdown_harness.dart +++ b/example/integration_test/markdown_harness.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; /// Wraps a scrollable [Markdown] widget in a minimal [MaterialApp] so diff --git a/example/lib/demos/basic_markdown_demo.dart b/example/lib/demos/basic_markdown_demo.dart index d5a4ffc..33d1e4e 100644 --- a/example/lib/demos/basic_markdown_demo.dart +++ b/example/lib/demos/basic_markdown_demo.dart @@ -4,7 +4,7 @@ import 'dart:async'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter/services.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; diff --git a/example/lib/demos/centered_header_demo.dart b/example/lib/demos/centered_header_demo.dart index 569aaf5..a64bb8b 100644 --- a/example/lib/demos/centered_header_demo.dart +++ b/example/lib/demos/centered_header_demo.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:markdown/markdown.dart' as md; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/demos/custom_bullet_list_demo.dart b/example/lib/demos/custom_bullet_list_demo.dart index d8eb9d4..d499e99 100644 --- a/example/lib/demos/custom_bullet_list_demo.dart +++ b/example/lib/demos/custom_bullet_list_demo.dart @@ -5,7 +5,7 @@ // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore_for_file: avoid_implementing_value_types -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/demos/extended_emoji_demo.dart b/example/lib/demos/extended_emoji_demo.dart index 6b704ef..acf355f 100644 --- a/example/lib/demos/extended_emoji_demo.dart +++ b/example/lib/demos/extended_emoji_demo.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:markdown/markdown.dart' as md; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/demos/markdown_body_shrink_wrap_demo.dart b/example/lib/demos/markdown_body_shrink_wrap_demo.dart index 33bac12..638cc45 100644 --- a/example/lib/demos/markdown_body_shrink_wrap_demo.dart +++ b/example/lib/demos/markdown_body_shrink_wrap_demo.dart @@ -5,7 +5,7 @@ // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore_for_file: avoid_implementing_value_types -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import '../shared/dropdown_menu.dart' as dropdown; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/demos/minimal_markdown_demo.dart b/example/lib/demos/minimal_markdown_demo.dart index 7ba7d40..6cf9ae2 100644 --- a/example/lib/demos/minimal_markdown_demo.dart +++ b/example/lib/demos/minimal_markdown_demo.dart @@ -5,7 +5,7 @@ // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore_for_file: avoid_implementing_value_types -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/demos/original_demo.dart b/example/lib/demos/original_demo.dart index 338bd9f..339ef5d 100644 --- a/example/lib/demos/original_demo.dart +++ b/example/lib/demos/original_demo.dart @@ -5,7 +5,7 @@ // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore_for_file: avoid_implementing_value_types -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/demos/subscript_syntax_demo.dart b/example/lib/demos/subscript_syntax_demo.dart index f33cf26..8e464b7 100644 --- a/example/lib/demos/subscript_syntax_demo.dart +++ b/example/lib/demos/subscript_syntax_demo.dart @@ -5,7 +5,7 @@ // TODO(goderbauer): Restructure the examples to avoid this ignore, https://github.com/flutter/flutter/issues/110208. // ignore_for_file: avoid_implementing_value_types -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:markdown/markdown.dart' as md; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/demos/wrap_alignment_demo.dart b/example/lib/demos/wrap_alignment_demo.dart index 229ac19..cd729fe 100644 --- a/example/lib/demos/wrap_alignment_demo.dart +++ b/example/lib/demos/wrap_alignment_demo.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter/services.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:markdown/markdown.dart' as md; diff --git a/example/lib/main.dart b/example/lib/main.dart index c92da79..7704d8d 100644 --- a/example/lib/main.dart +++ b/example/lib/main.dart @@ -56,7 +56,7 @@ /// flutter_markdown_plus package. library; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'screens/demo_screen.dart'; import 'screens/home_screen.dart'; import 'shared/markdown_demo_widget.dart'; diff --git a/example/lib/readme_excerpts.dart b/example/lib/readme_excerpts.dart index f9b454f..75cf245 100644 --- a/example/lib/readme_excerpts.dart +++ b/example/lib/readme_excerpts.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/cupertino.dart'; +import 'package:cupertino_ui/cupertino_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; // #docregion CreateMarkdownWithEmojiExtension diff --git a/example/lib/screens/demo_card.dart b/example/lib/screens/demo_card.dart index 90cfd78..a5a499d 100644 --- a/example/lib/screens/demo_card.dart +++ b/example/lib/screens/demo_card.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import '../screens/demo_screen.dart'; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/screens/demo_screen.dart b/example/lib/screens/demo_screen.dart index 26bb6ac..16dcd69 100644 --- a/example/lib/screens/demo_screen.dart +++ b/example/lib/screens/demo_screen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import '../shared/markdown_demo_widget.dart'; diff --git a/example/lib/screens/home_screen.dart b/example/lib/screens/home_screen.dart index 4543dad..b7a33b3 100644 --- a/example/lib/screens/home_screen.dart +++ b/example/lib/screens/home_screen.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import '../demos/basic_markdown_demo.dart'; import '../demos/centered_header_demo.dart'; import '../demos/custom_bullet_list_demo.dart'; diff --git a/example/lib/shared/dropdown_menu.dart b/example/lib/shared/dropdown_menu.dart index 0616e57..adb2277 100644 --- a/example/lib/shared/dropdown_menu.dart +++ b/example/lib/shared/dropdown_menu.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; // ignore_for_file: public_member_api_docs diff --git a/example/lib/shared/markdown_extensions.dart b/example/lib/shared/markdown_extensions.dart index 88cbf3c..60dee1d 100644 --- a/example/lib/shared/markdown_extensions.dart +++ b/example/lib/shared/markdown_extensions.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:markdown/markdown.dart' as md; // ignore_for_file: public_member_api_docs diff --git a/example/pubspec.lock b/example/pubspec.lock index 564800c..6436911 100644 --- a/example/pubspec.lock +++ b/example/pubspec.lock @@ -49,6 +49,14 @@ packages: url: "https://pub.dev" source: hosted version: "1.19.1" + cupertino_ui: + dependency: "direct main" + description: + name: cupertino_ui + sha256: "7ed8ce4159d342eec4c65f4ea6eec57adaf9365404378541f38efc1da20a5b3d" + url: "https://pub.dev" + source: hosted + version: "1.0.0" fake_async: dependency: transitive description: @@ -75,13 +83,18 @@ packages: description: flutter source: sdk version: "0.0.0" + flutter_localizations: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" flutter_markdown_plus: dependency: "direct main" description: path: ".." relative: true source: path - version: "1.0.8" + version: "1.0.12" flutter_test: dependency: "direct dev" description: flutter @@ -97,6 +110,14 @@ packages: description: flutter source: sdk version: "0.0.0" + intl: + dependency: transitive + description: + name: intl + sha256: "1ca20c894b1717686a2319b8548763d812bc0aabdac580420a44c5178c57a867" + url: "https://pub.dev" + source: hosted + version: "0.20.3" leak_tracker: dependency: transitive description: @@ -133,10 +154,10 @@ packages: dependency: transitive description: name: matcher - sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 + sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd" url: "https://pub.dev" source: hosted - version: "0.12.19" + version: "0.12.20" material_color_utilities: dependency: transitive description: @@ -145,14 +166,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.13.0" + material_ui: + dependency: "direct main" + description: + name: material_ui + sha256: d9b4f6c69b80bc83d0a14357c86e4c14c8076e807ae73cf2960c8560f623995f + url: "https://pub.dev" + source: hosted + version: "1.0.0" meta: dependency: transitive description: name: meta - sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" + sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.0" path: dependency: transitive description: @@ -234,18 +263,18 @@ packages: dependency: transitive description: name: test_api - sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e" + sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11" url: "https://pub.dev" source: hosted - version: "0.7.11" + version: "0.7.12" vector_math: dependency: transitive description: name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.2" vm_service: dependency: transitive description: @@ -263,5 +292,5 @@ packages: source: hosted version: "3.1.0" sdks: - dart: ">=3.10.0-0 <4.0.0" - flutter: ">=3.27.1" + dart: ">=3.12.0 <4.0.0" + flutter: ">=3.44.0" diff --git a/example/pubspec.yaml b/example/pubspec.yaml index cebb540..0943b29 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -7,6 +7,7 @@ environment: flutter: ">=3.27.1" dependencies: + cupertino_ui: any flutter: sdk: flutter @@ -18,8 +19,7 @@ dependencies: # path: ../../flutter_markdown_plus_latex # For relative path testing markdown: ^7.3.0 - - + material_ui: any dev_dependencies: flutter_test: sdk: flutter diff --git a/lib/src/_functions_io.dart b/lib/src/_functions_io.dart index 7482d5b..63f7a20 100644 --- a/lib/src/_functions_io.dart +++ b/lib/src/_functions_io.dart @@ -4,8 +4,8 @@ import 'dart:io'; -import 'package:flutter/cupertino.dart' show CupertinoTheme; -import 'package:flutter/material.dart' show Theme; +import 'package:cupertino_ui/cupertino_ui.dart' show CupertinoTheme; +import 'package:material_ui/material_ui.dart' show Theme; import 'package:flutter/widgets.dart'; import 'style_sheet.dart'; diff --git a/lib/src/_functions_web.dart b/lib/src/_functions_web.dart index 7d33249..c2cee1c 100644 --- a/lib/src/_functions_web.dart +++ b/lib/src/_functions_web.dart @@ -4,8 +4,8 @@ import 'dart:js_interop'; -import 'package:flutter/cupertino.dart' show CupertinoTheme; -import 'package:flutter/material.dart' show Theme; +import 'package:cupertino_ui/cupertino_ui.dart' show CupertinoTheme; +import 'package:material_ui/material_ui.dart' show Theme; import 'package:flutter/widgets.dart'; import 'package:path/path.dart' as p; diff --git a/lib/src/builder.dart b/lib/src/builder.dart index 3e965bd..01323aa 100644 --- a/lib/src/builder.dart +++ b/lib/src/builder.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:markdown/markdown.dart' as md; import '_functions_io.dart' if (dart.library.js_interop) '_functions_web.dart'; diff --git a/lib/src/style_sheet.dart b/lib/src/style_sheet.dart index eb9f1ed..1f69d7a 100644 --- a/lib/src/style_sheet.dart +++ b/lib/src/style_sheet.dart @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; +import 'package:cupertino_ui/cupertino_ui.dart'; +import 'package:material_ui/material_ui.dart'; /// Defines which [TextStyle] objects to use for which Markdown elements. class MarkdownStyleSheet { diff --git a/lib/src/widget.dart b/lib/src/widget.dart index 5f2dfec..337d20a 100644 --- a/lib/src/widget.dart +++ b/lib/src/widget.dart @@ -5,7 +5,7 @@ import 'dart:convert'; import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter/rendering.dart'; import 'package:markdown/markdown.dart' as md; diff --git a/pubspec.lock b/pubspec.lock index 23b1e5c..3d44544 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -113,6 +113,14 @@ packages: url: "https://pub.dev" source: hosted version: "3.0.7" + cupertino_ui: + dependency: "direct main" + description: + name: cupertino_ui + sha256: "7ed8ce4159d342eec4c65f4ea6eec57adaf9365404378541f38efc1da20a5b3d" + url: "https://pub.dev" + source: hosted + version: "1.0.0" dart_style: dependency: transitive description: @@ -158,6 +166,11 @@ packages: url: "https://pub.dev" source: hosted version: "6.0.0" + flutter_localizations: + dependency: transitive + description: flutter + source: sdk + version: "0.0.0" flutter_test: dependency: "direct dev" description: flutter @@ -171,6 +184,14 @@ packages: url: "https://pub.dev" source: hosted version: "2.1.3" + intl: + dependency: transitive + description: + name: intl + sha256: "1ca20c894b1717686a2319b8548763d812bc0aabdac580420a44c5178c57a867" + url: "https://pub.dev" + source: hosted + version: "0.20.3" leak_tracker: dependency: transitive description: @@ -223,10 +244,10 @@ packages: dependency: transitive description: name: matcher - sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861 + sha256: "31bd099b47c10cd1aeb55146a2d46ce0277630ecef3f7dae54ad7873f36696cd" url: "https://pub.dev" source: hosted - version: "0.12.19" + version: "0.12.20" material_color_utilities: dependency: transitive description: @@ -235,14 +256,22 @@ packages: url: "https://pub.dev" source: hosted version: "0.13.0" + material_ui: + dependency: "direct main" + description: + name: material_ui + sha256: d9b4f6c69b80bc83d0a14357c86e4c14c8076e807ae73cf2960c8560f623995f + url: "https://pub.dev" + source: hosted + version: "1.0.0" meta: dependency: "direct main" description: name: meta - sha256: "1741988757a65eb6b36abe716829688cf01910bbf91c34354ff7ec1c3de2b349" + sha256: "307249ce4ff29d58a18e97f6345f539382eb9c9c29ecda628900f31de0443dd9" url: "https://pub.dev" source: hosted - version: "1.18.0" + version: "1.19.0" mockito: dependency: "direct dev" description: @@ -340,10 +369,10 @@ packages: dependency: transitive description: name: test_api - sha256: "949a932224383300f01be9221c39180316445ecb8e7547f70a41a35bf421fb9e" + sha256: "2a122cbe059f8b610d3a5415f42e255b6c17b1f21eee1d960f31080237fb4f11" url: "https://pub.dev" source: hosted - version: "0.7.11" + version: "0.7.12" typed_data: dependency: transitive description: @@ -356,10 +385,10 @@ packages: dependency: transitive description: name: vector_math - sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b + sha256: f36f9f3be64c6198714492bb455c11056e33e2f85d9a0b676a48301e44fdcf47 url: "https://pub.dev" source: hosted - version: "2.2.0" + version: "2.4.2" vm_service: dependency: transitive description: @@ -385,5 +414,5 @@ packages: source: hosted version: "3.1.3" sdks: - dart: ">=3.11.0 <4.0.0" - flutter: ">=3.27.1" + dart: ">=3.12.0 <4.0.0" + flutter: ">=3.44.0" diff --git a/pubspec.yaml b/pubspec.yaml index 129a514..52e224f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -12,9 +12,11 @@ environment: flutter: ">=3.27.1" dependencies: + cupertino_ui: any flutter: sdk: flutter markdown: ^7.3.1 + material_ui: any meta: ^1.16.0 path: ^1.9.1 diff --git a/test/blockquote_test.dart b/test/blockquote_test.dart index aa4c010..f5c6eec 100644 --- a/test/blockquote_test.dart +++ b/test/blockquote_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'utils.dart'; diff --git a/test/context_menu_builder_test.dart b/test/context_menu_builder_test.dart index c95c2de..e496346 100644 --- a/test/context_menu_builder_test.dart +++ b/test/context_menu_builder_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/custom_syntax_test.dart b/test/custom_syntax_test.dart index cc3db27..93db077 100644 --- a/test/custom_syntax_test.dart +++ b/test/custom_syntax_test.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:markdown/markdown.dart' as md; diff --git a/test/horizontal_rule_test.dart b/test/horizontal_rule_test.dart index 79c4311..2f7180e 100644 --- a/test/horizontal_rule_test.dart +++ b/test/horizontal_rule_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:markdown/markdown.dart' as md; diff --git a/test/image_test.dart b/test/image_test.dart index 46fc7d4..4ea63af 100644 --- a/test/image_test.dart +++ b/test/image_test.dart @@ -6,7 +6,7 @@ import 'dart:io' as io; import 'package:flutter/foundation.dart'; import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/inline_widget_test.dart b/test/inline_widget_test.dart index 58661c1..22f0f45 100644 --- a/test/inline_widget_test.dart +++ b/test/inline_widget_test.dart @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; +import 'package:cupertino_ui/cupertino_ui.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'package:markdown/markdown.dart' as md; diff --git a/test/list_test.dart b/test/list_test.dart index f7e1a3d..64a8e1a 100644 --- a/test/list_test.dart +++ b/test/list_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/padding_test.dart b/test/padding_test.dart index ec835b5..8526505 100644 --- a/test/padding_test.dart +++ b/test/padding_test.dart @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; +import 'package:cupertino_ui/cupertino_ui.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'utils.dart'; diff --git a/test/render_golden_test.dart b/test/render_golden_test.dart index 93fc264..b670b45 100644 --- a/test/render_golden_test.dart +++ b/test/render_golden_test.dart @@ -24,7 +24,7 @@ import 'dart:io' as io; import 'package:flutter/foundation.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter/services.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/selection_area_compatibility_test.dart b/test/selection_area_compatibility_test.dart index 985786b..a25dba6 100644 --- a/test/selection_area_compatibility_test.dart +++ b/test/selection_area_compatibility_test.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/style_sheet_test.dart b/test/style_sheet_test.dart index 8ef8e1b..88c41ff 100644 --- a/test/style_sheet_test.dart +++ b/test/style_sheet_test.dart @@ -2,8 +2,8 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/cupertino.dart'; -import 'package:flutter/material.dart'; +import 'package:cupertino_ui/cupertino_ui.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'utils.dart'; diff --git a/test/table_test.dart b/test/table_test.dart index bdfc343..a29ca6e 100644 --- a/test/table_test.dart +++ b/test/table_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/text_alignment_test.dart b/test/text_alignment_test.dart index 3519b5b..8062dee 100644 --- a/test/text_alignment_test.dart +++ b/test/text_alignment_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'utils.dart'; diff --git a/test/text_scaler_test.dart b/test/text_scaler_test.dart index 50e82a6..a5e6e51 100644 --- a/test/text_scaler_test.dart +++ b/test/text_scaler_test.dart @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; import 'utils.dart'; diff --git a/test/text_test.dart b/test/text_test.dart index 4ba6839..a5b4c59 100644 --- a/test/text_test.dart +++ b/test/text_test.dart @@ -3,7 +3,7 @@ // found in the LICENSE file. import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter_markdown_plus/flutter_markdown_plus.dart'; import 'package:flutter_test/flutter_test.dart'; diff --git a/test/utils.dart b/test/utils.dart index d4ec80a..acf7a0d 100644 --- a/test/utils.dart +++ b/test/utils.dart @@ -7,7 +7,7 @@ import 'dart:io' as io; import 'package:flutter/foundation.dart'; import 'package:flutter/gestures.dart'; -import 'package:flutter/material.dart'; +import 'package:material_ui/material_ui.dart'; import 'package:flutter/rendering.dart'; import 'package:flutter/services.dart'; import 'package:flutter_test/flutter_test.dart';