Search packages, repositories and app categories

Package detailsv0.2.2

your_splash

A Flutter implementation of splash screen. Supports Android and IOS.

30-day downloads
28
Likes
7
Pub points
40

Install package

flutter pub add your_splash

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

YourSplash is a Flutter package that provides a simple and effective implementation of a splash screen for both Android and iOS platforms. It allows developers to display a customizable splash screen while the app initializes, improving user experience during startup. The package integrates seamlessly with Flutter projects and supports platform-specific configurations. With minimal setup, it ensures a smooth transition from splash to the main app interface.

Use cases

  • App onboarding screens
  • Initial loading state display
  • Branding during app launch
  • Preload assets before navigation
  • Smooth app startup experience

Key features

  • Cross-platform support (Android & iOS)
  • Easy integration with Flutter
  • Customizable splash appearance
  • Automatic transition to main screen
  • Minimal configuration required

Suitable for

  • New Flutter projects
  • Apps requiring branded splash screens
  • Developers seeking lightweight splash solutions
  • Projects with asset preloading needs
  • Simple startup screen implementations

Considerations

  • Does not support web platform
  • Limited customization beyond basic styling
  • No built-in animation controls
  • Relies on manual timing for transition
  • Requires proper asset management for best results

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

your_splash

pub package license build codecov Say Thanks!

A Flutter implementation of splash screen. Supports Android and IOS.

Features

  • Supports splash screen with the Future callback
  • Supports splash screen with timer

Getting Started

To use this library, add your_splash as a dependency in your pubspec.yaml file:

dependencies:
  ...
  your_splash:

In your library add the following import:

import 'package:your_splash/your_splash.dart';
Constructors

This package comes with 2 kinds of splash screen actions:

  • FuturedSplashScreen
  • TimedSplashScreen

You can create a splash screen in two different ways:

  • by calling FuturedSplashScreen or TimedSplashScreen constructor and passing required arguments.
  • by calling SplashScreen.futured or SplashScreen.timed constructor respectively.

A FuturedSplashScreen requires next arguments:

Parameter Description
future This is your Future callback for delay
route This is a dynamic argument. Can be String name of route or PageRoute instance
body This is a body of your splash screen

A TimedSplashScreen requires next arguments:

Parameter Description
seconds This is a duration in seconds for how long your splash screen will be displayed
route This is a dynamic argument. Can be String name of route or PageRoute instance
body This is a body of your splash screen
Examples

Quick start example:

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: SplashScreen.timed(
        seconds: 3,
        route: MaterialPageRoute(builder: (_) => Home()),
        body: Scaffold(
          body: InkWell(
            child: Container(
              decoration: const BoxDecoration(
                image: DecorationImage(
                  fit: BoxFit.cover,
                  image: NetworkImage('https://bit.ly/3hD5Tj8'),
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Home screen!"),
      ),
      body: Center(
        child: Text(
          "Welcome!",
          style: TextStyle(fontWeight: FontWeight.bold, fontSize: 40.0),
        ),
      ),
    );
  }
}

How can I animate transition between the splash screen and navigation page?

Overview

route: PageRouteBuilder(
  pageBuilder: (context, animation, secondaryAnimation) => Home(),
  transitionDuration: Duration(seconds: 1),
  transitionsBuilder: (_, animation, secAnim, child) {
    var tween = Tween(begin: 0.0, end: 1.0).chain(
      CurveTween(curve: Curves.easeInOutCirc),
    );
    return FadeTransition(
        opacity: animation.drive(tween), child: child);
  },

You can see all examples here

Categories

Source repository

Projects using this package

No data available yet.