flutter_splash 1.0.1

Flutter Android iOS web

Easily create simple splash screen for flutter applications

example/example.dart

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

void main() {
  runApp(new MaterialApp(
    home: new MyApp(),
  ));
}

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {
  loadWidget() async {
    return await new Future<Widget>.delayed(
        Duration(seconds: 1), () => AfterSplash());
  }

  @override
  Widget build(BuildContext context) {
    return new Splash(
      title: new Text(
        'Welcome In SplashScreen',
        style: new TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0),
      ),
      image: new Image.network(
          'https://flutter.io/images/catalog-widget-placeholder.png'),
      backgroundColor: Colors.white,
      styleTextUnderTheLoader: new TextStyle(),
      photoSize: 100.0,
      onClick: () => print("Flutter Egypt"),
      loaderColor: Colors.red,
    );
  }
}

class AfterSplash extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text("Welcome In SplashScreen Package"),
        automaticallyImplyLeading: false,
      ),
      body: new Center(
        child: new Text(
          "Succeeded!",
          style: new TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0),
        ),
      ),
    );
  }
}
10
likes
90
pub points
80%
popularity

Easily create simple splash screen for flutter applications

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

chrome.nor@gmail.com

License

BSD (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_splash