mirrored_repositories/Kimit-P7-G136/se7ety_app_1_9/lib
import 'package:flutter/material.dart';
import 'package:se7ety_app_1_9/core/functions/routing.dart';
import 'package:se7ety_app_1_9/features/on-boarding/on_boarding_view.dart';

class SplashView extends StatefulWidget {
  const SplashView({super.key});

  @override
  State<SplashView> createState() => _SplashViewState();
}

class _SplashViewState extends State<SplashView> {
  @override
  void initState() {
    super.initState();
    Future.delayed(
      const Duration(seconds: 3),
      () {
        pushToWithReplacement(context, const OnBoardingView());
      },
    );
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Image.asset(
          'assets/logo.png',
          width: 250,
        ),
      ),
    );
  }
}
