UI is not update,while list & model is updated Gext Flutter

Viewed 43
1 Answers

Use GetBuilder for listView updation , Obx will mostly works for variable updations

Wrap you listview with GetBuilder

GetBuilder<YourController>(
      builder: (_) => ListView.builder(
      itemBuilder: (context, index) {

 })   );

and use

Get.find<YourController>.update();

or

update();

to update the ui

Related