From 0ba4a9dd218b32cfb46242bdee0c4e13fdd8c81b Mon Sep 17 00:00:00 2001 From: "Lucas.Xu" Date: Thu, 9 Mar 2023 16:42:31 +0800 Subject: [PATCH] fix: dart publish analyze --- example/macos/Podfile.lock | 35 ----------------------------------- example/pubspec.yaml | 1 - lib/src/infra/flowy_svg.dart | 3 ++- pubspec.yaml | 6 +++--- 4 files changed, 5 insertions(+), 40 deletions(-) delete mode 100644 example/macos/Podfile.lock diff --git a/example/macos/Podfile.lock b/example/macos/Podfile.lock deleted file mode 100644 index 3e6dfa9c5..000000000 --- a/example/macos/Podfile.lock +++ /dev/null @@ -1,35 +0,0 @@ -PODS: - - FlutterMacOS (1.0.0) - - path_provider_foundation (0.0.1): - - Flutter - - FlutterMacOS - - rich_clipboard_macos (0.0.1): - - FlutterMacOS - - url_launcher_macos (0.0.1): - - FlutterMacOS - -DEPENDENCIES: - - FlutterMacOS (from `Flutter/ephemeral`) - - path_provider_foundation (from `Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/macos`) - - rich_clipboard_macos (from `Flutter/ephemeral/.symlinks/plugins/rich_clipboard_macos/macos`) - - url_launcher_macos (from `Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos`) - -EXTERNAL SOURCES: - FlutterMacOS: - :path: Flutter/ephemeral - path_provider_foundation: - :path: Flutter/ephemeral/.symlinks/plugins/path_provider_foundation/macos - rich_clipboard_macos: - :path: Flutter/ephemeral/.symlinks/plugins/rich_clipboard_macos/macos - url_launcher_macos: - :path: Flutter/ephemeral/.symlinks/plugins/url_launcher_macos/macos - -SPEC CHECKSUMS: - FlutterMacOS: 8f6f14fa908a6fb3fba0cd85dbd81ec4b251fb24 - path_provider_foundation: c68054786f1b4f3343858c1e1d0caaded73f0be9 - rich_clipboard_macos: 43364b66b9dc69d203eb8dd6d758e2d12e02723c - url_launcher_macos: 5335912b679c073563f29d89d33d10d459f95451 - -PODFILE CHECKSUM: 353c8bcc5d5b0994e508d035b5431cfe18c1dea7 - -COCOAPODS: 1.11.3 diff --git a/example/pubspec.yaml b/example/pubspec.yaml index 691c13d77..c69bbaf79 100644 --- a/example/pubspec.yaml +++ b/example/pubspec.yaml @@ -44,7 +44,6 @@ dependencies: file_picker: ^5.0.1 universal_html: ^2.0.8 highlight: ^0.7.0 - flutter_math_fork: ^0.6.3+1 http: ^0.13.5 dev_dependencies: diff --git a/lib/src/infra/flowy_svg.dart b/lib/src/infra/flowy_svg.dart index 96ae89a4d..85e0fb5c9 100644 --- a/lib/src/infra/flowy_svg.dart +++ b/lib/src/infra/flowy_svg.dart @@ -34,7 +34,8 @@ class FlowySvg extends StatelessWidget { if (name != null) { return SvgPicture.asset( 'assets/images/$name.svg', - color: color, + colorFilter: + color != null ? ColorFilter.mode(color!, BlendMode.color) : null, fit: BoxFit.fill, height: height, width: width, diff --git a/pubspec.yaml b/pubspec.yaml index 73ff882d2..32693fca6 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -19,15 +19,15 @@ dependencies: rich_clipboard: ^1.0.0 html: ^0.15.0 - flutter_svg: ^1.1.1+1 + flutter_svg: ^2.0.2 provider: ^6.0.3 url_launcher: ^6.1.5 logging: ^1.0.2 intl_utils: ^2.7.0 - intl: + intl: ^0.17.0 flutter_localizations: sdk: flutter - markdown: ^6.0.1 + markdown: ^7.0.1 dev_dependencies: flutter_test: