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

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

your_splash

स्प्लैश स्क्रीन का एक फ्लटर इम्प्लीमेंटेशन। एंड्रॉइड और आईओएस को सपोर्ट करता है।

30-दिन डाउनलोड
28
लाइक
7
Pub अंक
40

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

flutter pub add your_splash

पैकेज अवलोकन

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

YourSplash एक Flutter पैकेज है जो Android और iOS प्लेटफ़ॉर्म के लिए स्प्लैश स्क्रीन का एक सरल और प्रभावी कार्यान्वयन प्रदान करता है। यह डेवलपर्स को ऐप के प्रारंभिक चरण में एक कस्टमाइज़ किए गए स्प्लैश स्क्रीन को दिखाने की अनुमति देता है, जिससे शुरुआती अनुभव में सुधार होता है। पैकेज बिना किसी बाधा के Flutter प्रोजेक्ट में एकीकृत होता है और प्लेटफ़ॉर्म-विशिष्ट कॉन्फ़िगरेशन को समर्थन देता है। न्यूनतम सेटअप के साथ, यह स्प्लैश से मुख्य ऐप इंटरफ़ेस तक चिकनी ट्रांजिशन सुनिश्चित करता है।

उपयोग

  • एप्प ओनबोर्डिंग स्क्रीन्स
  • प्रारंभिक लोडिंग अवस्था प्रदर्शन
  • एप्लिकेशन लॉन्च के दौरान ब्रांडिंग
  • नेविगेशन से पहले संसाधनों को प्रीलोड करें
  • चिकनी ऐप स्टार्टअप अनुभव

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

  • क्रॉस-प्लेटफॉर्म समर्थन (Android और iOS)
  • Flutter के साथ आसान एकीकरण
  • कस्टमाइज़ेबल स्प्लैश उपस्थिति
  • मुख्य स्क्रीन पर स्वचालित संक्रमण
  • आवश्यक न्यूनतम कॉन्फ़िगरेशन

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

  • नए Flutter प्रोजेक्ट्स
  • ब्रांडेड स्प्लैश स्क्रीन वाले ऐप्स
  • हल्के स्प्लैश समाधान खोज रहे विकासकर्ता
  • संपत्ति पूर्व-लोडिंग की आवश्यकता वाले प्रोजेक्ट
  • सरल स्टार्टअप स्क्रीन कार्यान्वयन

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

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

मूल README

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

your_splash

pub package license build codecov Say Thanks!

A Flutter implementation of splash screen. Supports Android and IOS.

Features

  • Supports splash screen with the Future callback
  • Supports splash screen with timer

Getting Started

To use this library, add your_splash as a dependency in your pubspec.yaml file:

dependencies:
  ...
  your_splash:

In your library add the following import:

import 'package:your_splash/your_splash.dart';
Constructors

This package comes with 2 kinds of splash screen actions:

  • FuturedSplashScreen
  • TimedSplashScreen

You can create a splash screen in two different ways:

  • by calling FuturedSplashScreen or TimedSplashScreen constructor and passing required arguments.
  • by calling SplashScreen.futured or SplashScreen.timed constructor respectively.

A FuturedSplashScreen requires next arguments:

Parameter Description
future This is your Future callback for delay
route This is a dynamic argument. Can be String name of route or PageRoute instance
body This is a body of your splash screen

A TimedSplashScreen requires next arguments:

Parameter Description
seconds This is a duration in seconds for how long your splash screen will be displayed
route This is a dynamic argument. Can be String name of route or PageRoute instance
body This is a body of your splash screen
Examples

Quick start example:

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

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: SplashScreen.timed(
        seconds: 3,
        route: MaterialPageRoute(builder: (_) => Home()),
        body: Scaffold(
          body: InkWell(
            child: Container(
              decoration: const BoxDecoration(
                image: DecorationImage(
                  fit: BoxFit.cover,
                  image: NetworkImage('https://bit.ly/3hD5Tj8'),
                ),
              ),
            ),
          ),
        ),
      ),
    );
  }
}

class Home extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text("Home screen!"),
      ),
      body: Center(
        child: Text(
          "Welcome!",
          style: TextStyle(fontWeight: FontWeight.bold, fontSize: 40.0),
        ),
      ),
    );
  }
}

How can I animate transition between the splash screen and navigation page?

Overview

route: PageRouteBuilder(
  pageBuilder: (context, animation, secondaryAnimation) => Home(),
  transitionDuration: Duration(seconds: 1),
  transitionsBuilder: (_, animation, secAnim, child) {
    var tween = Tween(begin: 0.0, end: 1.0).chain(
      CurveTween(curve: Curves.easeInOutCirc),
    );
    return FadeTransition(
        opacity: animation.drive(tween), child: child);
  },

You can see all examples here

श्रेणियाँ

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

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

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