forked from eatvio/eatvio_app
37 lines
1.2 KiB
Dart
37 lines
1.2 KiB
Dart
import 'bloc/splash_bloc.dart';
|
|
import 'models/splash_model.dart';
|
|
import 'package:eatvio_app/core/app_export.dart';
|
|
import 'package:flutter/material.dart';
|
|
|
|
class SplashScreen extends StatelessWidget {
|
|
const SplashScreen({Key? key}) : super(key: key);
|
|
|
|
static Widget builder(BuildContext context) {
|
|
return BlocProvider<SplashBloc>(
|
|
create: (context) =>
|
|
SplashBloc(SplashState(splashModelObj: SplashModel()))
|
|
..add(SplashInitialEvent()),
|
|
child: SplashScreen());
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
mediaQueryData = MediaQuery.of(context);
|
|
return BlocBuilder<SplashBloc, SplashState>(builder: (context, state) {
|
|
return SafeArea(
|
|
child: Scaffold(
|
|
body: SizedBox(
|
|
width: double.maxFinite,
|
|
child: Column(
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
children: [
|
|
SizedBox(height: 16.v),
|
|
CustomImageView(
|
|
imagePath: ImageConstant.img2456927096976,
|
|
height: 137.adaptSize,
|
|
width: 137.adaptSize)
|
|
]))));
|
|
});
|
|
}
|
|
}
|