splash_screen_view 3.0.0 splash_screen_view: ^3.0.0 copied to clipboard
This flutter lib is used as Splash Screen of your app to display logo and different text style.
import 'package:flutter/material.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
Widget example1 = SplashScreenView(
navigateRoute: SecondScreen(),
duration: 5000,
imageSize: 130,
imageSrc: "splashscreen_image.png",
text: "Splash Screen",
textType: TextType.ColorizeAnimationText,
textStyle: TextStyle(
fontSize: 40.0,
),
colors: [
Colors.purple,
Colors.blue,
Colors.yellow,
Colors.red,
],
backgroundColor: Colors.white,
);
return MaterialApp(
title: 'Splash screen Demo',
home: example1,
);
}
}