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

outdated

A small splashscreen used for an intro for any flutter application easily using

example/example.dart

import 'dart:async';
import 'package:flutter/material.dart';
import 'package:splashscreen/splashscreen.dart';
void main(){
  runApp(new MaterialApp(
    home: MyApp(),
  ));
}


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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return new SplashScreen(
      timer: Timer(Duration(seconds: 12),(){Navigator.of(context).push(new MaterialPageRoute(builder: (BuildContext context) => new AfterLogin()),);}),
      title: new Text('Welcome In SplashScreen'),
      imageNetwork: 'https://i.imgur.com/TyCSG9A.png',
      loaderColor: Colors.blue,
      backgroundColor: Colors.white,
      styleTextUnderTheLoader: new TextStyle()
    );
  }
}

class AfterLogin extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(title: new Text("Welcome In SplashScreen Package")),
      body: new Center(
        child: new Text("Succeeded!",
        style: new TextStyle(
          fontWeight: FontWeight.bold,
          fontSize: 30.0
        ),),

      ),
    );
  }
}
519
likes
0
pub points
95%
popularity

Publisher

verified publisherdplyr.dev

A small splashscreen used for an intro for any flutter application easily using

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on splashscreen