I tried passing the loading value as shown below, but it is not changing. Tried the same in a checkbox and its working though
controller.loadingScreen ? Center(child: CircularProgressIndicator()) : Container(),
controller class code RxBool _loadingScreen = false.obs; get loadingScreen => _loadingScreen.value;
Try like
YourController.dart> var loadingScreen = false.obs; (make it public) YourScreen.dart> controller.loadingScreen.value == true ? Center(child: CircularProgressIndicator()) : Container(),
If you have any query pm me at telegram/bihim (IDK how to hyperlink telegram).
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I tried passing the loading value as shown below, but it is not changing. Tried the same in a checkbox and its working though
controller.loadingScreen
? Center(child: CircularProgressIndicator())
: Container(),
controller class code
RxBool _loadingScreen = false.obs;
get loadingScreen => _loadingScreen.value;
Try like
YourController.dart> var loadingScreen = false.obs; (make it public)
YourScreen.dart> controller.loadingScreen.value == true
? Center(child: CircularProgressIndicator())
: Container(),
If you have any query pm me at telegram/bihim (IDK how to hyperlink telegram).