update:change splashscreen view
This commit is contained in:
parent
5ac66566d2
commit
b758b98271
|
@ -1,9 +1,9 @@
|
||||||
import 'package:flutter/material.dart';
|
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/network/network_info.dart';
|
||||||
import 'package:rijig_mobile/core/router.dart';
|
import 'package:rijig_mobile/core/router.dart';
|
||||||
import 'package:rijig_mobile/core/storage/expired_token.dart';
|
import 'package:rijig_mobile/core/storage/expired_token.dart';
|
||||||
import 'package:rijig_mobile/core/utils/guide.dart';
|
import 'package:rijig_mobile/core/utils/guide.dart';
|
||||||
// import 'package:rijig_mobile/core/storage/secure_storage.dart';
|
|
||||||
|
|
||||||
class SplashScreen extends StatefulWidget {
|
class SplashScreen extends StatefulWidget {
|
||||||
const SplashScreen({super.key});
|
const SplashScreen({super.key});
|
||||||
|
@ -67,6 +67,7 @@ class SplashScreenState extends State<SplashScreen> {
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
const String assetName = 'assets/icon/logorijig.svg';
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
backgroundColor: primaryColor,
|
backgroundColor: primaryColor,
|
||||||
body: Center(
|
body: Center(
|
||||||
|
@ -74,17 +75,9 @@ class SplashScreenState extends State<SplashScreen> {
|
||||||
children: [
|
children: [
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
child: Text(
|
child: SvgPicture.asset(assetName, height: 120),
|
||||||
'Rijig',
|
|
||||||
style: TextStyle(
|
|
||||||
fontSize: 36,
|
|
||||||
fontWeight: FontWeight.bold,
|
|
||||||
color: whiteColor,
|
|
||||||
fontFamily: 'Roboto',
|
|
||||||
),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
|
|
||||||
if (_isCheckingConnection)
|
if (_isCheckingConnection)
|
||||||
Align(
|
Align(
|
||||||
alignment: Alignment.center,
|
alignment: Alignment.center,
|
||||||
|
|
Loading…
Reference in New Issue