rxlabz / panache

🎨 Flutter Material Theme editor
https://rxlabz.github.io/panache
1.76k stars 233 forks source link

Import/Export to JSON #19

Open ToddManUtah opened 5 years ago

ToddManUtah commented 5 years ago

This is a great tool! What would really help is if we could export the design created to JSON and then create the ThemeData class dynamically from that JSON. The idea is similar to what was requested "Manage multiple themes". I want to be able to change themes dynamically and store the definitions of those themes locally or on a server.

The Dart code is great, but it assumes I am inserting the theme at compile time. I want to be able to insert new themes at runtime AND retrieve those themes from a server.

ToddManUtah commented 5 years ago

Just an idea: I wanted to create a new class called NamedThemeData that would allow me to store ThemeData instances with names. This would allow me to maintain a Map of themes.