Suragch
Jun 24, 2021

--

Yes, you are correct. The UI knows about the state management layer so this affects widget reusability. If you find that you have a widget that you want to reuse, then you should create a custom widget that will either take the state in as a parameter or handle it’s own state. Most of the time you can do this by composing existing widgets, but if not you can make the widget from scratch.

--

--

Suragch
Suragch

Written by Suragch

Flutter and Dart developer. Twitter: @suragch1, Email: suragch@suragch.dev

No responses yet