flutter_splash_screen 0.3.0 copy "flutter_splash_screen: ^0.3.0" to clipboard
flutter_splash_screen: ^0.3.0 copied to clipboard

PlatformAndroidiOS
outdated

A splash screen API for flutter which can programatically hide and show the splash screen. Works on Android and iOS.

example/lib/main.dart

import 'dart:async';

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

void main() => runApp(MyApp());

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

class _MyAppState extends State<MyApp> {

  @override
  void initState() {
    super.initState();
    hideScreen();
  }

  ///hide your splash screen
  Future<void> hideScreen() async {
    Future.delayed(Duration(milliseconds: 3600), () {
      FlutterSplashScreen.hide();
    });
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          title: const Text('flutter_splash_screen'),
        ),
        body: Center(
          child: Text('by CrazyCodeBoy',style: TextStyle(fontSize: 20),),
        ),
      ),
    );
  }
}
68
likes
155
points
639
downloads

Publisher

unverified uploader

Weekly Downloads

A splash screen API for flutter which can programatically hide and show the splash screen. Works on Android and iOS.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_splash_screen