You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
984 B
Dart
33 lines
984 B
Dart
import 'package:flare_flutter/flare_actor.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:test_sa/screens/login_screen/login_screen.dart';
|
|
|
|
class SplashScreen extends StatelessWidget {
|
|
static const routeName = "/splashScreen";
|
|
|
|
const SplashScreen({Key? key}) : super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
backgroundColor: Colors.white,
|
|
body: Center(
|
|
child: SizedBox(
|
|
width: MediaQuery.of(context).size.width / 1.1,
|
|
child: FlareActor(
|
|
"assets/rives/atoms_splash.flr",
|
|
fit: BoxFit.contain,
|
|
animation: "splash",
|
|
callback: (animation) async {
|
|
Navigator.of(context).pushNamed(LoginScreen.routeName);
|
|
// if (_settingProvider.isLoaded && _settingProvider.user != null) {
|
|
// _goToUserScreen(_settingProvider.user);
|
|
// }
|
|
},
|
|
),
|
|
),
|
|
),
|
|
);
|
|
}
|
|
}
|