TF-3772 Animated splash iOS
This commit is contained in:
@@ -89,7 +89,8 @@ class HomeController extends ReloadableController {
|
||||
|
||||
static void downloadCallback(String id, DownloadTaskStatus status, int progress) {}
|
||||
|
||||
void _handleNavigateToScreen() {
|
||||
Future<void> _handleNavigateToScreen() async {
|
||||
await Future.delayed(2.seconds);
|
||||
final arguments = Get.arguments;
|
||||
if (arguments is LoginNavigateArguments) {
|
||||
_handleLoginNavigateArguments(arguments);
|
||||
|
||||
@@ -1,7 +1,10 @@
|
||||
import 'package:core/presentation/extensions/color_extension.dart';
|
||||
import 'package:core/presentation/utils/theme_utils.dart';
|
||||
import 'package:core/utils/platform_info.dart';
|
||||
import 'package:flutter/cupertino.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:lottie_native/lottie_native.dart';
|
||||
import 'package:tmail_ui_user/features/home/presentation/home_controller.dart';
|
||||
|
||||
class HomeView extends GetWidget<HomeController> {
|
||||
@@ -11,6 +14,34 @@ class HomeView extends GetWidget<HomeController> {
|
||||
Widget build(BuildContext context) {
|
||||
ThemeUtils.setSystemDarkUIStyle();
|
||||
|
||||
if (PlatformInfo.isIOS) {
|
||||
return ColoredBox(
|
||||
color: Colors.white,
|
||||
child: Stack(
|
||||
alignment: Alignment.center,
|
||||
children: [
|
||||
SizedBox(
|
||||
width: 176,
|
||||
height: 176,
|
||||
child: LottieView.fromAsset(
|
||||
filePath: controller.imagePaths.animLottieTmail,
|
||||
loop: false,
|
||||
),
|
||||
),
|
||||
Positioned(
|
||||
bottom: 40,
|
||||
child: SafeArea(
|
||||
child: Image.asset(
|
||||
controller.imagePaths.icTwakeWorkplace,
|
||||
width: 210,
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
return Container(
|
||||
color: AppColor.primaryLightColor,
|
||||
child: const SizedBox(
|
||||
|
||||
Reference in New Issue
Block a user