flare_splash_screen 1.1.1

  • README.md
  • CHANGELOG.md
  • Example
  • Installing
  • Versions
  • new77

flare_splash_screen #

Facilitator for having a Splash screen with a Flare animation until some work has been done for the initialization of the app

Usage #

SplashScreen(
  'animation.flr', 
  HomeScreen(),
  animation: 'circle',
);

First param: path/name of the flare animation

Second param: next screen to show once animation is finished

animation: animation name to run, default same as first param

until: callback that return a future to process your initialization

endAnimation: animation name to run once until is complete

height: force the height of the flare animation, by default it take the all place available

width: force the width of the flare animation, by default it take the all place available

alignment: alignment of the flare animation, center by default

transitionsBuilder transition to apply when showing next

Be careful, flare animation should:

  • not be looped for animation if you don't set until/endAnimation
  • be looped for animation if you set until/endAnimation
  • not be looped at all for endAnimation

If you don't follow that the next screen will never be shown.

[1.1.1]

  • When endAnimation is not set, go directly to next page

[1.1.0]

  • Add until, endAnimation, width, height, alignment and transitionsBuilder capabilities.

[1.0.0]

  • initial release.

example/README.md

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: SplashScreen('intro.flr', MyHomePage(title: 'Flutter Demo Home Page'), animation: '1',),
    );
  }
}

Use this package as a library

1. Depend on it

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


dependencies:
  flare_splash_screen: ^1.1.1

2. Install it

You can install packages from the command line:

with Flutter:


$ flutter packages get

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

3. Import it

Now in your Dart code, you can use:


import 'package:flare_splash_screen/flare_splash_screen.dart';
  
Version Uploaded Documentation Archive
1.1.1 Mar 23, 2019 Go to the documentation of flare_splash_screen 1.1.1 Download flare_splash_screen 1.1.1 archive
1.1.0 Mar 23, 2019 Go to the documentation of flare_splash_screen 1.1.0 Download flare_splash_screen 1.1.0 archive
1.0.0 Feb 24, 2019 Go to the documentation of flare_splash_screen 1.0.0 Download flare_splash_screen 1.0.0 archive
0.0.1 Feb 24, 2019 Go to the documentation of flare_splash_screen 0.0.1 Download flare_splash_screen 0.0.1 archive
Popularity:
Describes how popular the package is relative to other packages. [more]
55
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]
77
Learn more about scoring.

We analyzed this package on Mar 23, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.2.0
  • pana: 0.12.14
  • Flutter: 1.3.3

Platforms

Detected platforms: Flutter

References Flutter, and has no conflicting libraries.

Health suggestions

Format lib/flare_splash_screen.dart.

Run flutter format to format lib/flare_splash_screen.dart.

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flare_flutter ^1.3.4 1.3.4
flutter 0.0.0
Transitive dependencies
collection 1.14.11
flare_dart 1.3.3
meta 1.1.6 1.1.7
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies
flutter_test