If a widget has the same style all over the project. We make it common so that we can easily use that with a minimal number of lines. But which one should I use to create a common widget.
Let's assume I have a text widget and text form field widget with the same style. Which one should I use?
What if the text widget has a dynamic string? and what if the text widget has a simple String?
- Stateless widget / stateful widget or
- Simple Function with named params