splash_plugin 0.0.6
splash_plugin: ^0.0.6 copied to clipboard
A Flutter plugin for creating Splash Screen.
splash_plugin #
A Flutter plugin for creating Splash Screen.
Features #
Instant splash Screen Ready: just add :
- Route
- Image
- Welcome Text
- Duration
Getting started #
To use this package add splash_plugin as a dependency in your pubspec.yaml
Usage #
SplashPlugin(
nextScreen: (BuildContext context) async {
await Future.delayed(Duration(seconds: 2));
Navigator.pushReplacement(
context,
MaterialPageRoute(builder: (context) => HomeScreen()),
);
},
imagePath: Image.asset('assets/splash_image.png'),
welcomeText: Text('Welcome to MyApp'),
duration: Duration(seconds: 3),
),