We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug
when i use following code ,hot reload not work, button text not change when model.reading has been changed
model.reading
GFButton( child: model.reading ? Text('Stop') : Text('Continuous'), onPressed: () async { if (!model.reading) { await model.startInventory(); } else { await model.stopInventory(); } }, ),
i must set a key for that to work
GFButton( key: ValueKey(model.reading), //text: model.reading ? 'Stop' : 'Continuous', child: model.reading ? Text('Stop') : Text('Continuous'), onPressed: () async { if (!model.reading) { await model.startInventory(); } else { await model.stopInventory(); } }, ),
is that expected?
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
Hi liugangnhm.
Thanks for submitting issue. We are looking at the issue we will release new version with the fix ASAP possible.
Sorry, something went wrong.
New version has been released. it includes fixes of hot reload issue mentioned above. Please use version getflutter: ^1.0.8 or above.
getflutter: ^1.0.8
thanks. this issue seems to be fixed but getting another hot reload issue . I will close this issue and open a new one!
Sandipkakadiya
No branches or pull requests
Describe the bug
when i use following code ,hot reload not work, button text not change when
model.reading
has been changedi must set a key for that to work
is that expected?
To Reproduce
Steps to reproduce the behavior:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: