splashscreen 2.0.0 copy "splashscreen: ^2.0.0" to clipboard
splashscreen: ^2.0.0 copied to clipboard

A splashscreen package created as intro for any flutter application easily with a lot of customization

example/example.dart

import 'package:flutter/material.dart';
import 'package:splashscreen/splashscreen.dart';

void main() {
  runApp(const MaterialApp(home: MyApp()));
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return SplashScreen.timer(
      seconds: 14,
      navigateAfterSeconds: const AfterSplash(),
      title: const Text(
        'Welcome In SplashScreen',
        style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0),
      ),
      image: Image.network(
        'https://flutter.io/images/catalog-widget-placeholder.png',
      ),
      backgroundColor: Colors.white,
      loaderColor: Colors.red,
    );
  }
}

class AfterSplash extends StatelessWidget {
  const AfterSplash({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Welcome In SplashScreen Package'),
        automaticallyImplyLeading: false,
      ),
      body: const Center(
        child: Text(
          'Succeeded!',
          style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0),
        ),
      ),
    );
  }
}
519
likes
150
points
199
downloads

Publisher

verified publisherdplyr.dev

Weekly Downloads

A splashscreen package created as intro for any flutter application easily with a lot of customization

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on splashscreen