kauemurakami / getx_pattern

Design pattern designed to standardize your projects with GetX on Flutter.

Home Page:https://kauemurakami.github.io/getx_pattern

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

flutter web problem about refresh page

devchenli opened this issue · comments

commented

getx_pattern_example Project

from ListPage to DetailPage,
And click browser's refresh button ,
Then crashed :

data != null
"A non-null String must be provided to a Text widget."

截屏2021-01-04 20 09 45

So,When User refreshed current page, the data will be lost.

Hello devchenli, you heard some updates, I will pass on today, thanks for your feedback, I will leave this issue open to give you feedback.
Going forward, the GetX widget does not currently allow us to have heavy children, that is, lists, grids, or large chains of components (container does not count as a widget in this case).
So I would start replacing it with an Obx (), passing this function, which gives it in our list of posts, to the onInit of our GetxController and consuming the controller provided by Binding with our GetView