From b758b9827187b22eb83cff66a1dd17d59bc1f503 Mon Sep 17 00:00:00 2001 From: pahmiudahgede Date: Fri, 16 May 2025 08:07:43 +0700 Subject: [PATCH] update:change splashscreen view --- lib/features/launch/splash_screen.dart | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/lib/features/launch/splash_screen.dart b/lib/features/launch/splash_screen.dart index fcec64b..218bded 100644 --- a/lib/features/launch/splash_screen.dart +++ b/lib/features/launch/splash_screen.dart @@ -1,9 +1,9 @@ import 'package:flutter/material.dart'; +import 'package:flutter_svg/flutter_svg.dart'; import 'package:rijig_mobile/core/network/network_info.dart'; import 'package:rijig_mobile/core/router.dart'; import 'package:rijig_mobile/core/storage/expired_token.dart'; import 'package:rijig_mobile/core/utils/guide.dart'; -// import 'package:rijig_mobile/core/storage/secure_storage.dart'; class SplashScreen extends StatefulWidget { const SplashScreen({super.key}); @@ -67,6 +67,7 @@ class SplashScreenState extends State { @override Widget build(BuildContext context) { + const String assetName = 'assets/icon/logorijig.svg'; return Scaffold( backgroundColor: primaryColor, body: Center( @@ -74,17 +75,9 @@ class SplashScreenState extends State { children: [ Align( alignment: Alignment.center, - child: Text( - 'Rijig', - style: TextStyle( - fontSize: 36, - fontWeight: FontWeight.bold, - color: whiteColor, - fontFamily: 'Roboto', - ), - ), + child: SvgPicture.asset(assetName, height: 120), ), - + if (_isCheckingConnection) Align( alignment: Alignment.center,