simple_splashscreen 0.1.3

  • Readme
  • Changelog
  • Example
  • Installing
  • 86

simple_splashscreen #

Simple way to create your own splash screen.

Just use Simple_splashScreen widget. It requires the folllowing parameters. context, splashscreenWidget, gotoWidget, timerInSeconds.

Now one need not write init method, and call Timer method to navigate to the other widget.

Getting Started #

This project is a starting point for a Dart package, a library module containing code that can be shared easily across multiple Flutter or Dart projects.

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

[0.1.3] - 2020-04-09 #

  • Simple way to design a splash screen


import 'package:flutter/material.dart';
import 'package:simple_splashscreen/simple_splashscreen.dart';
void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  Widget build(BuildContext context) {
    return MaterialApp(
      home: HomePage(),

class HomePage extends StatefulWidget {
  _HomePageState createState() => _HomePageState();
class _HomePageState extends State<HomePage> {
  Widget build(BuildContext context) {
    return Simple_splashscreen(
      context: context,
      gotoWidget: HomeScreen(),
      splashscreenWidget: SplashScreen(),
      timerInSeconds: 5,

//Splash Screen
class SplashScreen extends StatefulWidget {
  _SplashScreenState createState() => _SplashScreenState();
class _SplashScreenState extends State<SplashScreen> {
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text('Splash Screen !'),

//Go to Screen
class HomeScreen extends StatefulWidget {
  _HomeScreenState createState() => _HomeScreenState();
class _HomeScreenState extends State<HomeScreen> {
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Text(
          'Home Scerrn !',

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  simple_splashscreen: ^0.1.3

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:simple_splashscreen/simple_splashscreen.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Jul 11, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.8.4
  • pana: 0.13.14
  • Flutter: 1.17.5

Analysis suggestions

Package not compatible with SDK dart


  • simple_splashscreen that is a package requiring null.

Health suggestions

Fix lib/simple_splashscreen.dart. (-1.49 points)

Analysis of lib/simple_splashscreen.dart reported 3 hints:

line 6 col 7: This class (or a class that this class inherits from) is marked as '@immutable', but one or more of its instance fields aren't final: Simple_splashscreen.context, Simple_splashscreen.splashscreenWidget, Simple_splashscreen.gotoWidget, Simple_splashscreen.timerInSeconds

line 6 col 7: Name types using UpperCamelCase.

line 20 col 7: Name types using UpperCamelCase.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.12 1.14.13
meta 1.1.8 1.2.2
sky_engine 0.0.99
typed_data 1.1.6 1.2.0
vector_math 2.0.8 2.1.0-nullsafety
Dev dependencies