- A small Splash Screen used for an intro for any flutter application easily using
- It 's Now Very Simple And Easy To Use
- Coming Soon Will Add A Greater Functions
- For Any information Send Message To Me On => monkey4gamesmmm@gmail.com
To use this package :
- add the dependency to your pubspec.yaml file.
dependencies:
flutter:
sdk: fluttersplashscreen:newSplashScreen(
seconds:14,
navigateAfterSeconds:newAfterSplash(),
title:newText('Welcome In SplashScreen'),
image:newImage.asset('screenshot.png'),
backgroundColor:Colors.white,
styleTextUnderTheLoader:newTextStyle(),
photoSize:100.0,
loaderColor:Colors.red
);import'package:flutter/material.dart';
import'package:splashscreen/splashscreen.dart';
voidmain(){
runApp(newMaterialApp(
home:newMyApp(),
));
}
classMyAppextendsStatefulWidget {
@override_MyAppStatecreateState() =>new_MyAppState();
}
class_MyAppStateextendsState<MyApp> {
@overrideWidgetbuild(BuildContext context) {
returnnewSplashScreen(
seconds:14,
navigateAfterSeconds:newAfterSplash(),
title:newText('Welcome In SplashScreen',
style:newTextStyle(
fontWeight:FontWeight.bold,
fontSize:20.0
),),
image:newImage.network('https://i.imgur.com/TyCSG9A.png'),
backgroundColor:Colors.white,
styleTextUnderTheLoader:newTextStyle(),
photoSize:100.0,
onClick: ()=>print("Flutter Egypt"),
loaderColor:Colors.red
);
}
}
classAfterSplashextendsStatelessWidget {
@overrideWidgetbuild(BuildContext context) {
returnnewScaffold(
appBar:newAppBar(
title:newText("Welcome In SplashScreen Package"),
automaticallyImplyLeading:false
),
body:newCenter(
child:newText("Done!",
style:newTextStyle(
fontWeight:FontWeight.bold,
fontSize:30.0
),),
),
);
}
}