SEGVeenstra / ext_theme

Extended themes for Flutter
6 stars 0 forks source link

ext_theme_generator doesn't work in combination with some other generators #2

Open speszke opened 2 years ago

speszke commented 2 years ago

I've noticed that when I use ext_theme_generator as a single generator, all is fine, but in case there another generators like , e.g. auto_route_generator or hive_generator theme generator seems to be skipped (all the generation process finished with no issues) and no *.g.dart file with custom themes :-/ . FYI: When I use theme generator in parallel with (only) freezed generator, all is fine and I it ends up with generated theme file as expected. I've tested it on the example project from this package and the result is the same as in my project.

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.10.3, on macOS 12.2.1 21D62 darwin-x64, locale en-PL)
[✓] Android toolchain - develop for Android devices (Android SDK version 31.0.0-rc4)
[✓] Xcode - develop for iOS and macOS (Xcode 13.2)
[✓] Android Studio (version 2021.1)
[✓] VS Code (version 1.65.0)
[!] Connected device
    ! Error: XXX iPhone is not connected. Xcode will continue when XXX iPhone is connected. (code -13)
[✓] HTTP Host Availability

! Doctor found issues in 1 category.
SEGVeenstra commented 2 years ago

Hi @speszke,

Thank you for filling the issue. To be honest, I wasn't aware of people actually using this package already.

If I can find some time, I'll look into it.

It also looks like Flutter will add support for extending the ThemeData soon (Flutter Repo)so if that's working fine, I will most likely discontinue this package:

speszkeroche commented 2 years ago

Thanks for reply. Yes, I've also noticed that flutter is preparing a solution... that's very good news 🙂

SEGVeenstra commented 2 years ago

@speszke @speszkeroche I just have to ask, due to some new information, did you add the part section?