crawl_splash 0.1.0 copy "crawl_splash: ^0.1.0" to clipboard
crawl_splash: ^0.1.0 copied to clipboard

A flutter package that helps you create beautiful splash screen in minutes.

example/lib/example.dart

import 'package:flutter/material.dart';
import 'package:crawl_splash/crawlsplash.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,
            ),
      },
    );
  }
}
1
likes
40
pub points
0%
popularity

Publisher

unverified uploader

A flutter package that helps you create beautiful splash screen in minutes.

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on crawl_splash