flutter_splash 1.0.1 copy "flutter_splash: ^1.0.1" to clipboard
flutter_splash: ^1.0.1 copied to clipboard

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
30
pub points
57%
popularity

Publisher

unverified uploader

Easily create simple splash screen for flutter applications

Repository (GitHub)
View/report issues

License

BSD-2-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_splash