crawl_splash 0.1.0 crawl_splash: ^0.1.0 copied to clipboard
A flutter package that helps you create beautiful splash screen in minutes.
Crawl Splash #
A flutter package that helps you build beautiful splash screens for your app.
Why We Build? #
Can you build a Splash screen within minutes for your app? This is where we help you do that.
Screenshots #
Usage #
Import this class #
import 'package:crawlsplash/src/basic_crawl_splash_screen.dart';
Add the On-Boarding screen #
import 'package:flutter/material.dart';
import 'package:crawlsplash/src/basic_crawl_splash_screen.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
theme: ThemeData(
primarySwatch: Colors.blue,
visualDensity: VisualDensity.adaptivePlatformDensity,
),
// Give Splash Screen Path as First Screen
initialRoute: BasicSplashScreen.id,
routes: {
BasicSplashScreen.id: (context) => BasicSplashScreen(
// Background color of the screen
backgroundColor: const [
Colors.white,
],
// Time for which screen will show up
duration: 1,
// Image path => Asset Image ONLY
imagePath: 'assets/images/instagram.png',
// Image Height
iconHeight: 100,
// Image Width
iconWidth: 200,
// Splash screen text => Not Required
primaryText: 'Instagram',
// Screen Text Color
primaryTextColor: Colors.pink,
// Screen Text Font
primaryTextFont: 'Roboto',
// Screen Text Size
primaryTextSize: 30,
// Screen Text Font Weight
primaryTextWeight: FontWeight.w400,
// Replace null with your landing screen route
nextScreenPath: null,
// Change it to true to check how your splash screen looks like
debug: false,
),
},
);
}
}
Features #
- You can customize your Splash Screens with content and styling.
Contribution #
The project is open for contribution. Anyone willing to code fresh splash screens, customize content for users will be welcomed.
- Fork it
- Create your feature branch (git checkout -b my-new-feature)
- Commit your changes (git commit -m 'Add some feature')
- Push to the branch (git push origin my-new-feature)
- Create new Pull Request