flutter-simple-url-preview
flutter-simple-url-preview copied to clipboard
simple_url_preview.dart error after updateing to a new flutter version
After updating to a new flutter version I got the error: C:/Users/hayor/AppData/Local/Pub/Cache/hosted/pub.dev/simple_url_preview-3.0.1/lib/**simple_url_preview.dart:**174:54: Error: The getter 'accentColor' isn't defined for the class 'ThemeData'.
I am not expert in flutter but this site: https://docs.flutter.dev/release/breaking-changes/theme-data-accent-properties#migration-guide says:
Code before migration: MaterialApp( theme: ThemeData(accentColor: myColor), // ... ); Code after migration:
content_copy final ThemeData theme = ThemeData(); MaterialApp( theme: theme.copyWith( colorScheme: theme.colorScheme.copyWith(secondary: myColor), ), //... )
It looks that 'accentColor' is not defined there anymore.
But maybe I am wrong - can you look into this problem?
Thanks, zb
Yes, you are right. The plugin is not yet migrated to Flutter 3.0. We will have to migrate to 3.0.
Can you let me know when your migration is ready?
Thanks,
zb
From: AmitB @.> Sent: Monday, March 13, 2023 2:30 AM To: Amitbhave/flutter-simple-url-preview @.> Cc: zalekbloom @.>; Author @.> Subject: Re: [Amitbhave/flutter-simple-url-preview] simple_url_preview.dart error after updateing to a new flutter version (Issue #26)
Yes, you are right. The plugin is not yet migrated to Flutter 3.0. We will have to migrate to 3.0.
— Reply to this email directly, view it on GitHubhttps://github.com/Amitbhave/flutter-simple-url-preview/issues/26#issuecomment-1465584385, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AIP3YIGANSLDDBC2PHAB4H3W325INANCNFSM6AAAAAAVYPF6V4. You are receiving this because you authored the thread.Message ID: @.***>
Same issue here.