flutter_gen icon indicating copy to clipboard operation
flutter_gen copied to clipboard

[FR]: Custom Constants Generate from XML.

Open ismailcaakir opened this issue 3 years ago • 1 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Describe the problem

Producing our const files in our projects through files like strings.xml is something that can really speed up our development speed.

For example. When we switch to a new project, we could change the data we store under lib/core, which we want to get from the previous project and fill with new information, via xml.

Describe the solution

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <cons name="appName" type="string" static=false>App Name HERE</color>
    <cons name="consName" type="bool" static=false>true</color>
   ... like
</resources>

Additional context

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

ismailcaakir avatar Nov 28 '22 20:11 ismailcaakir

What is the bridge that requires you to use XML rather than a configuration Dart file? The Dart file would be easy to modify and copy between projects.

AlexV525 avatar Jan 29 '25 13:01 AlexV525