39 lines
825 B
Dart
39 lines
825 B
Dart
|
import 'package:flutter/material.dart';
|
||
|
import 'package:imagini/screens/splash/components/body.dart';
|
||
|
import 'package:imagini/screens/splash/splash-bloc.dart';
|
||
|
import 'package:imagini/bloc/bloc-prov.dart';
|
||
|
|
||
|
class SplashScreen extends StatefulWidget {
|
||
|
@override
|
||
|
_SplashScreenState createState() => _SplashScreenState();
|
||
|
}
|
||
|
|
||
|
class _SplashScreenState extends State<SplashScreen> {
|
||
|
SplashBloc splashBloc;
|
||
|
|
||
|
@override
|
||
|
void initState() {
|
||
|
super.initState();
|
||
|
splashBloc = SplashBloc();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
void dispose() {
|
||
|
splashBloc.dispose();
|
||
|
super.dispose();
|
||
|
}
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return BlocProvider(
|
||
|
bloc: SplashBloc(),
|
||
|
child: Scaffold(
|
||
|
appBar: AppBar(
|
||
|
title: Text("First Screen"),
|
||
|
),
|
||
|
body: Body(),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|