Advertisement
Guest User

Untitled

a guest
Jul 21st, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. class _SplashViewState extends State<SplashView> {
  2. @override
  3. void initState() {
  4. super.initState();
  5. _navigateToHomePage();
  6. }
  7.  
  8. @override
  9. Widget build(BuildContext context) {
  10. _screenUtilInit();
  11. return Scaffold(
  12. body: _centerWidget,
  13. );
  14. }
  15.  
  16. void _navigateToHomePage() {
  17. Future.delayed(Duration(milliseconds: UIHelper.SPLASH_DURATION), () {
  18. Navigator.of(context).pushNamed("/onboard");
  19. });
  20. }
  21.  
  22. void _screenUtilInit() => ScreenUtil().init(context);
  23.  
  24. Widget get _centerWidget => Center(
  25. child: _helthoImages,
  26. );
  27.  
  28. Widget get _helthoImages => Image.asset(UIHelper.HEALTHO_ICON);
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement