BirjuVachhani / spider

A small dart library to generate Assets dart code from assets folder.
https://spider.birju.dev/
Apache License 2.0
190 stars 19 forks source link

Fails on Flutter 3.13 #77

Closed kaciula closed 1 year ago

kaciula commented 1 year ago

I get this build error after updating to Flutter 3.13. Can you please fix it?

Building package executable... Failed to build spider:spider: ../../../.pub-cache/hosted/pub.dev/watcher-1.0.2/lib/src/constructable_file_system_event.dart:7:57: Error: The class 'FileSystemEvent' can't be extended, implemented, or mixed in outside of its library because it's a sealed class. abstract class _ConstructableFileSystemEvent implements FileSystemEvent {

BirjuVachhani commented 1 year ago

What version of Spider are you using? You can check by running spider -v. Also try updating/reinstalling spider again!

kaciula commented 1 year ago

@BirjuVachhani I am using the latest version 4.2.2.

I have uninstalled and reinstalled spider and now it works. Thanks for the suggestion.

Screenshot 2023-09-10 at 14 56 06

BirjuVachhani commented 1 year ago

@kaciula Yeah, this happens when Flutter is upgraded. Usually it is auto-fixed. I don't know why it did not for you! Glad it worked for you after reinstalling.