Home > Net >  How to redraw only single widget in flutter?
How to redraw only single widget in flutter?

Time:10-25

No render all widgets. only render one widget.

Means not called build method because it's render all widgets.

Thanks for giving me your important time.

CodePudding user response:

You can't update a widget UI without re-building. To avoid building every widget in a widget tree split your whole widget into small widgets. This will help re-building widgets separately. Also, use const constructors.

CodePudding user response:

you can use value notifier and wrap with valuelistnablebuilder to update only that widget when value changes of value notifier

  • Related