TF-56 Create object LoadingState

This commit is contained in:
dab246
2021-09-17 18:00:22 +07:00
committed by Dat H. Pham
parent 926f249897
commit 430f21bdaf
9 changed files with 108 additions and 103 deletions
@@ -115,7 +115,7 @@ class EmailView extends GetWidget {
Widget _buildLoadingView() {
return Obx(() => emailController.viewState.value.fold(
(failure) => SizedBox.shrink(),
(success) => success == UIState.loading
(success) => success is LoadingState
? Center(child: Padding(
padding: EdgeInsets.only(top: 25, bottom: 16),
child: SizedBox(