Fidev-io / framy

A convenient code generator for app styleguide, gallery, wireframes and/or storyboard.
https://framy.dev
GNU Lesser General Public License v3.0
148 stars 16 forks source link

Support for selecting sub components of widgets in the framy view #125

Open nateshmbhat opened 4 years ago

nateshmbhat commented 4 years ago

In the code generator, it should be possible to wrap each sub component inside a gesture detector to be able to select sub components of a widget.

This makes it possible to select a text inside a button and then later on vary the parameters (like changing the text from the framy view)

This makes #124 possible.

MarcinusX commented 4 years ago

What you mean is to have a thing like:

@framyWidget
class MyButton extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return RaisedButton(
      child: Text('MyText'),
      onPressed: (){},
    );
  }
}

And be able to click on the text and change its' value?

nateshmbhat commented 4 years ago

Yes. Exactly 👍✨

MarcinusX commented 4 years ago

Even though it seems cool, it would mean we are changing widgets instead of using them which would be a very different thing 😬

nateshmbhat commented 4 years ago

I understand. Whether this feature will be made or not depends on whether the library intends to provide the features of a widget studio along with the storyboard and gallery.

In this context, it's already doing a great lot of things. If we add a few features of a widget studio, it will be great.

If you intend to limit it to a story board or a gallery, that's ok too 🙂

It's ur call 😃

MarcinusX commented 4 years ago

I think it would become too big then. Rody's Widget Studio is already doing a great job at generating widgets through UI interface and I think that duplicating it wouldn't be that valuable (at least at this moment).