TF-362 Change the view of Home and Session to become loading with spinner in white background
This commit is contained in:
committed by
Dat H. Pham
parent
be6006510e
commit
6dc9e7b74f
@@ -1,25 +1,18 @@
|
|||||||
import 'package:core/core.dart';
|
import 'package:core/core.dart';
|
||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/cupertino.dart';
|
||||||
import 'package:get/get.dart';
|
import 'package:get/get.dart';
|
||||||
import 'package:tmail_ui_user/features/home/presentation/home_controller.dart';
|
import 'package:tmail_ui_user/features/home/presentation/home_controller.dart';
|
||||||
import 'package:tmail_ui_user/main/localizations/app_localizations.dart';
|
|
||||||
|
|
||||||
class HomeView extends GetWidget<HomeController> {
|
class HomeView extends GetWidget<HomeController> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Container(
|
||||||
backgroundColor: AppColor.primaryColor,
|
color: AppColor.primaryLightColor,
|
||||||
body: SafeArea(
|
child: SizedBox(
|
||||||
child: Center(
|
width: 100,
|
||||||
child: Column(
|
height: 100,
|
||||||
mainAxisAlignment: MainAxisAlignment.center,
|
child: CupertinoActivityIndicator(),
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
|
||||||
children: [
|
|
||||||
Text(AppLocalizations.of(context).initializing_data, style: TextStyle(color: Colors.white, fontSize: 17)),
|
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ class SessionView extends GetWidget<SessionController> {
|
|||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Container(
|
return Container(
|
||||||
color: AppColor.primaryColor,
|
color: AppColor.primaryLightColor,
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
width: 100,
|
width: 100,
|
||||||
height: 100,
|
height: 100,
|
||||||
|
|||||||
@@ -126,10 +126,6 @@ class ThreadRepositoryImpl extends ThreadRepository {
|
|||||||
return EmailsResponse(emailList: response.first, state: response.last);
|
return EmailsResponse(emailList: response.first, state: response.last);
|
||||||
});
|
});
|
||||||
|
|
||||||
newEmailResponse.emailList?.forEach((element) {
|
|
||||||
log('ThreadRepositoryImpl::getAllEmail(): filter = ${emailFilter?.mailboxId} [LOCAL] final yield: ${element.subject}:${element.id.id}');
|
|
||||||
});
|
|
||||||
|
|
||||||
yield newEmailResponse;
|
yield newEmailResponse;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user