Open nateshmbhat opened 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?
Yes. Exactly 👍✨
Even though it seems cool, it would mean we are changing widgets instead of using them which would be a very different thing 😬
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 😃
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).
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.