Open kamlesh1808 opened 2 years ago
/cc @guidezpl Wondering if this should remain in this repo or can be transferred to https://github.com/flutter/gallery/issues ?
Hey, all gallery issues can be transferred over
Thanks for confirming. Transferring this to dedicated repo.
Use case
I have reviewed example code https://gallery.flutter.dev/#/demo/text-field. I think it is very verbose. The concept of having TextFormFieldDemo and TextFormFieldDemoState I believe is a lot of code for such simple demo app.
Proposal
Reduce TextFormFieldDemo and TextFormFieldDemoState to a single class. Weather a widget is Stateful or Stateless should be internal and should not need explicit declaration by extending a State class. State should be POJOs.