animated_splash 0.0.1 copy "animated_splash: ^0.0.1" to clipboard
animated_splash: ^0.0.1 copied to clipboard

outdated

A light weight package for flutter apps, that easily shows a splash screen with a nice fade animation, for a specific amount of time, also it executes peace of code that needs to be run while the spla [...]

example/lib/main.dart

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

void main() {
  Function duringSplash = () {
    print('Something background process');
    int a = 123 + 23;
    print(a);
  };

  runApp(MaterialApp(
    home: SplashScreen(
        imagePath: 'assets/flutter_icon.png',
        home: Home(),
        duringSplash: duringSplash,
        duration: 2500),
  ));
}

class Home extends StatefulWidget {
  @override
  _HomeState createState() => _HomeState();
}

class _HomeState extends State<Home> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('Home'),
        ),
        body: Center(
            child: Text('My Cool App',
                style: TextStyle(color: Colors.black, fontSize: 20.0))));
  }
}
192
likes
20
pub points
84%
popularity

Publisher

unverified uploader

A light weight package for flutter apps, that easily shows a splash screen with a nice fade animation, for a specific amount of time, also it executes peace of code that needs to be run while the splash screen is shown.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on animated_splash