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); // } }, ), ), ), ); } }