| @@ -0,0 +1,5 @@ | |||
| <vector xmlns:android="http://schemas.android.com/apk/res/android" | |||
| android:width="1024dp" | |||
| android:height="1024dp" | |||
| android:viewportWidth="1024" | |||
| android:viewportHeight="1024" /> | |||
| @@ -4,9 +4,9 @@ | |||
| <item android:drawable="@android:color/white" /> | |||
| <!-- You can insert your own image assets here --> | |||
| <!-- <item> | |||
| <item> | |||
| <bitmap | |||
| android:gravity="center" | |||
| android:src="@mipmap/launch_image" /> | |||
| </item> --> | |||
| android:src="@mipmap/splash_tpf" /> | |||
| </item> | |||
| </layer-list> | |||
| @@ -1,4 +1,6 @@ | |||
| import 'package:farm_tpf/utils/const_assets.dart'; | |||
| import 'package:flutter/material.dart'; | |||
| import 'package:get/get.dart'; | |||
| class SplashPage extends StatelessWidget { | |||
| static Route route() { | |||
| @@ -7,8 +9,11 @@ class SplashPage extends StatelessWidget { | |||
| @override | |||
| Widget build(BuildContext context) { | |||
| return const Scaffold( | |||
| body: Center(child: CircularProgressIndicator()), | |||
| ); | |||
| return Scaffold( | |||
| body: Image.asset( | |||
| AppAssets.icActionCropStatus, | |||
| width: Get.width, | |||
| height: Get.height, | |||
| )); | |||
| } | |||
| } | |||
| @@ -1,6 +1,7 @@ | |||
| class AppAssets { | |||
| static const baseAssets = 'assets/png/'; | |||
| static const logo = baseAssets + 'logo.png'; | |||
| static const splash = baseAssets + 'splash.png'; | |||
| static const logoWithSlogan = baseAssets + 'logoWithSlogan.png'; | |||
| static const tempImage = baseAssets + 'tempImage.png'; | |||
| static const icActionNursery = baseAssets + 'icActionNursery.png'; | |||