v1.0.4
easy_splash_screen
आपके फ्लटर ऐप के लिए आसान स्प्लैश स्क्रीन प्लगइन। आप इस प्लगइन को आसानी से लागू कर स्प्लैश स्क्रीन दिखा सकते हैं और समय बचा सकते हैं।
72लाइक 1.2 हज़ार30-दिन डाउनलोड150Pub अंक
AndroidiOSWebmacOSWindowsLinux
CustomSplashScreen एक फ्लटर प्लगइन है जिससे स्प्लैश स्क्रीन को आसानी से जोड़ा जा सकता है
{"sdk":"flutter"}{"sdk":"flutter"}यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
Screenshot
To use this package :
dependencies:
flutter:
sdk: flutter
easy_splash_screen:
As time based...
import 'package:easy_splash_screen/easy_splash_screen.dart';
import '../home.dart';
import 'package:flutter/material.dart';
class SplashPage extends StatefulWidget {
SplashPage({Key? key}) : super(key: key);
@override
_SplashPageState createState() => _SplashPageState();
}
class _SplashPageState extends State<SplashPage> {
@override
Widget build(BuildContext context) {
return EasySplashScreen(
logo: Image.network(
'https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/flutter-512.png'),
title: Text(
"Title",
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
),
backgroundColor: Colors.grey.shade400,
showLoader: true,
loadingText: Text("Loading..."),
navigator: HomePage(),
durationInSeconds: 5,
);
}
}
As future based...
import 'dart:async';
import 'package:easy_splash_screen/easy_splash_screen.dart';
import '../home.dart';
import 'package:flutter/material.dart';
class SplashFuturePage extends StatefulWidget {
SplashFuturePage({Key? key}) : super(key: key);
@override
_SplashFuturePageState createState() => _SplashFuturePageState();
}
class _SplashFuturePageState extends State<SplashFuturePage> {
Future<Widget> futureCall() async {
// do async operation ( api call, auto login)
return Future.value(new HomePage());
}
@override
Widget build(BuildContext context) {
return EasySplashScreen(
logo: Image.network(
'https://cdn4.iconfinder.com/data/icons/logos-brands-5/24/flutter-512.png'),
title: Text(
"Title",
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.bold,
),
),
backgroundColor: Colors.grey.shade400,
showLoader: true,
loadingText: Text("Loading..."),
futureNavigator: futureCall(),
);
}
}