/
DevMaster
/
flutter_libs
Обзор
Документация
Войти
/
DevMaster
/
flutter_libs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
pages/SplashScreen.dart
50 строк
1 KB
Oleg Kulichkov
add templates and core
10 июн 2024, 00:07
10 июн 2024, 00:07
748efca
Код
Авторство
О чём код?
class SplashScreen extends StatefulWidget { const SplashScreen({super.key}); @override State<SplashScreen> createState() => _SplashScreenState(); } class _SplashScreenState extends State<SplashScreen> with SingleTickerProviderStateMixin { @override void initState() { super.initState(); SystemChrome.setEnabledSystemUIMode(SystemUiMode.immersive); Future.delayed(const Duration(seconds: 2), () { Get.to( isShowOnboarding ? const OnboardingPage() : const ButtomNavigation()); }); } @override void dispose() { SystemChrome.setEnabledSystemUIMode(SystemUiMode.manual, overlays: SystemUiOverlay.values); super.dispose(); } @override Widget build(BuildContext context) { return Scaffold( body: Column( crossAxisAlignment: CrossAxisAlignment.center, mainAxisAlignment: MainAxisAlignment.center, children: [ SvgPicture.asset("assets/logo.svg"), const SizedBox( height: 10, ), Padding( padding: const EdgeInsets.symmetric(horizontal: 50.0), child: Text( "logo".toUpperCase(), style: TextStyles.text24w800, textAlign: TextAlign.center, ), ) ], ), ); } }