पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.0.2

custom_splash

एक फ्लटर पैकेज जो स्प्लैश स्क्रीन को कस्टमाइज़ करने के लिए है, जैसे लोगो आइकन बदलना, लोगो एनिमेशन और स्प्लैश स्क्रीन बैकग्राउंड रंग।

30-दिन डाउनलोड
81
लाइक
86
Pub अंक
30

पैकेज इंस्टॉल करें

flutter pub add custom_splash

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

एक फ्लटर पैकेज जो विकासकर्ताओं को बहुत अनुकूलित स्प्लैश स्क्रीन बनाने की अनुमति देता है, जिसमें लोगो आइकन बदलने, लोगो एनिमेशन जोड़ने और पृष्ठभूमि रंग सेट करने के विकल्प शामिल हैं। यह जटिल कस्टम कोड के बिना दृश्यात्मक रूप से आकर्षक ऑनबोर्डिंग स्क्रीन के कार्यान्वयन को सरल बनाता है। इस पैकेज को उपयोग में आसानी और फ्लटर एप्लिकेशन में बिना किसी बाधा के एकीकृत करने के लिए डिज़ाइन किया गया है। यह डायनामिक स्टाइलिंग और चिकनी ट्रांज़िशन का समर्थन करता है, जो ऐप लॉन्च के दौरान उपयोगकर्ता अनुभव को बढ़ाता है।

उपयोग

  • एप्प ओनबोर्डिंग स्क्रीन्स
  • कस्टमाइज़्ड लोडिंग अनुभव
  • ब्रांडिंग-फोकस्ड स्प्लैश स्क्रीन्स
  • एनिमेटेड लोगो प्रदर्शित करता है
  • सरल लेकिन शानदार स्टार्टअप विजुअल्स

मुख्य विशेषताएँ

  • कस्टम लोगो आइकन प्रतिस्थापन
  • लोगो एनिमेशन समर्थन
  • पृष्ठभूमि रंग कस्टमाइज़ेशन
  • Flutter के साथ आसान एकीकरण
  • हल्का और तेज़ रेंडरिंग

इनके लिए उपयुक्त

  • शुरुआती Flutter विकासकर्ता
  • ब्रांडेड ओनबोर्डिंग की आवश्यकता वाले ऐप्स
  • एनिमेटेड UI तत्वों वाले प्रोजेक्ट्स
  • न्यूनतम डिज़ाइन पसंद
  • त्वरित स्प्लैश स्क्रीन कार्यान्वयन

विचार योग्य बातें

  • सीमित प्लेटफॉर्म-विशिष्ट कस्टमाइज़ेशन
  • स्प्लैश स्क्रीन अवधि नियंत्रण के लिए कोई बिल्ट-इन समर्थन नहीं है
  • पोस्ट-स्प्लैश नेविगेशन के हैंडलिंग के लिए मैनुअल हैंडलिंग की आवश्यकता है
  • जटिल एनीमेशन के लिए अनअनुकूलित
  • उन्नत प्रभावों के लिए बाहरी निर्भरता पर निर्भर करता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

Custom Splash Screen

A Flutter package to custom splash screen: change logo icon, logo animation, and splash screen background color. (Custom from animated splash screen)

ProgressDialog Demo
Using the package

Get the library

Things to do
  1. Get a logo for your app
  2. Prepare what to execute while the splash screen is shown (initializing your db, shared preferences, firebase...etc)
  3. Screen to be shown after splash screen and background process
  4. Duration of Splash Screen

Import the package

import 'package:custom_splash/custom_splash.dart';

Show splash screen for some duration

  type: CustomSplashType.StaticDuration

Inside your main function, use home as SplashScreen(_), the parameters are as follows:

imagePath: Path to your app-logo/image

backGroundColor(not require - default: white): background's color (Colors.deepOrange or Color(0xfffc6042))

animationEffect(not require - default: 'fade-in'): change animation of logo. There are: 'fade-in', 'zoom-in', 'zoom-out', 'top-down'.

ProgressDialog Demo

logoSize(not require - default: 250): custom size of logo

home: Screen to be shown after splash

duration: duration of splash screen in milliseconds

type

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.StaticDuration,
        outputAndHome: op,
    ),
));

Execute a function in background and based on the value from that function navigate to different screen

  type: CustomSplashType.BackgroundProcess

Create an object of Function that gets executed while splash screen is shown

Function duringSplash = () {
  //Write your code here
  ...
  return value;
};

Create routes according to your function return value

  //setup the return value correctly for proper navigation
  Map<dynamic, Widget> returnValueAndHomeScreen = {1: Home(), 2: HomeSt()};

Inside your main function, use home as SplashScreen(_), the parameters are as follows:

imagePath: Path to your app-logo/image home: Screen to be shown after splash customFunction: the function you have written above duration: duration of splash screen in milliseconds type output value of customFunction and home screen to navigate(Map function)

runApp(MaterialApp(
    home: CustomSplash(
        imagePath: 'assets/flutter_icon.png',
        backGroundColor: Colors.deepOrange,
        animationEffect: 'zoom-in',
        logoSize: 200,
        home: MyApp(),
        customFunction: duringSplash,
        duration: 2500,
        type: CustomSplashType.BackgroundProcess,
        outputAndHome: op,
    ),
));

श्रेणियाँ

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।