splashy 2.1.2

  • Readme
  • Changelog
  • Example
  • Installing
  • new68

Animated Flat Camera Icon by Kushagra Agarwal Animated Flat Camera Icon by Kushagra Agarwal


Pub Star on GitHub style: effective dart Flutter Website Awesome Flutter Flutter Samples License: MIT


Splash Screen is the first visual users see when an application is launched.

One might wonder what is ‘splashy’ about Splash Screen. Frankly, very little! Its chief purpose is to engage users while the app loads. And in order to do that, it may feel like a of splash of visuals virtually thrown them.

package inspired from Splash Screen: Designing a Successful Launch Experience for Your Mobile App of Maitrik Kataria

📦 Splashy is a fork of animated_splash

Using the package #

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

void main(){

    Future<Widget> customFunction(){
        print("Background process");
        return Future.value(HomPage())
    }

    runApp(MaterialApp(
        home: Splashy(
            imagePath: "assets/flutter_icon.png",
            curve : Curves.easeInOut,
            backgroundColor : Colors.blue,
            customFunction: customFunction(),
        )
    ));
}


class HomePage extends StatefulWidget {
  @override
  _HomePageState createState() => _HomePageState();
}

class _HomeState extends State<HomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Splashy"),
      ),
      body: Center(child: Text("Hello World"),),
    );
  }
}

maintainer #


  • Jean Luc Kabulu don't hesite to 🐦 me or /and to buy a 🍹 for me 🤠

[2.1.0] - Jun 28, 2020 #

  • Add License

[2.0.2] - Jun 28, 2020 #

  • correct README.md

[2.0.0] - Jun 27, 2020 #

  • Add Bottom Loader
  • Create Custom Functions
  • Splashy complete params

[1.1.0] - Jun 26, 2020 #

  • Customize splash Page

[1.0.0] - Jun 26, 2020. #

example/lib/main.dart

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

void main() {
  Future<Widget> customFunction() {
    print('Something background process');
    int a = 123 + 23;
    print(a);

    if (a > 100) return Future.value(Home1());
    // return Future.value(null);
    // else
    //   return Future.value(HomeSt());
  }

  runApp(MaterialApp(
    home: Splashy(
      imagePath: "assets/flutter_icon.png",
      style: AnimationStyle.Scale,
      curve: Curves.decelerate,
      backgroundColor: Colors.red,
      logoHeight: 150,
      logoWidth: 150,
      // duration: 10000,
      bottomLoader: CircularProgressIndicator(),

      customFunction: customFunction(),
      // home: HomePage(),
    ),
  ));
}

class Home1 extends StatefulWidget {
  @override
  _Home1State createState() => _Home1State();
}

class _Home1State extends State<Home1> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Splashy"),
      ),
      body: Center(
        child: Text("1"),
      ),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  splashy: ^2.1.2

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:splashy/splashy.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
36
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
68
Learn more about scoring.

We analyzed this package on Jul 8, 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

Because:

  • splashy that is a package requiring null.

Package not compatible with runtime flutter-web on web

Because:

  • package:splashy/splashy.dart that imports:
  • dart:io

Dependencies

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