splashy 2.1.2 copy "splashy: ^2.1.2" to clipboard
splashy: ^2.1.2 copied to clipboard

outdated

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

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"),
      ),
    );
  }
}
8
likes
35
pub points
22%
popularity

Publisher

unverified uploader

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

Repository (GitHub)
View/report issues

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on splashy