splashscreen 2.0.0
splashscreen: ^2.0.0 copied to clipboard
A splashscreen package created as intro for any flutter application easily with a lot of customization
import 'package:flutter/material.dart';
import 'package:splashscreen/splashscreen.dart';
void main() {
runApp(const MaterialApp(home: MyApp()));
}
class MyApp extends StatelessWidget {
const MyApp({super.key});
@override
Widget build(BuildContext context) {
return SplashScreen.timer(
seconds: 14,
navigateAfterSeconds: const AfterSplash(),
title: const Text(
'Welcome In SplashScreen',
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 20.0),
),
image: Image.network(
'https://flutter.io/images/catalog-widget-placeholder.png',
),
backgroundColor: Colors.white,
loaderColor: Colors.red,
);
}
}
class AfterSplash extends StatelessWidget {
const AfterSplash({super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text('Welcome In SplashScreen Package'),
automaticallyImplyLeading: false,
),
body: const Center(
child: Text(
'Succeeded!',
style: TextStyle(fontWeight: FontWeight.bold, fontSize: 30.0),
),
),
);
}
}