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

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

example/lib/main.dart

import 'package:example/amazon_page.dart';
import 'package:example/linkedin_page.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(Linkedin());

  // TODO : Demo
  // 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
21%
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, page_transition

More

Packages that depend on splashy