Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class _SplashViewState extends State<SplashView> {
- @override
- void initState() {
- super.initState();
- _navigateToHomePage();
- }
- @override
- Widget build(BuildContext context) {
- _screenUtilInit();
- return Scaffold(
- body: _centerWidget,
- );
- }
- void _navigateToHomePage() {
- Future.delayed(Duration(milliseconds: UIHelper.SPLASH_DURATION), () {
- Navigator.of(context).pushNamed("/onboard");
- });
- }
- void _screenUtilInit() => ScreenUtil().init(context);
- Widget get _centerWidget => Center(
- child: _helthoImages,
- );
- Widget get _helthoImages => Image.asset(UIHelper.HEALTHO_ICON);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement