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

पैकेज विवरणv2.1.0

animated_svg

स्केलेबल वेक्टर ग्राफिक्स 1.1 फ़ाइलों को प्रदर्शित और एनीमेट करने के लिए Flutter पैकेज।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
978
लाइक
113
Pub अंक
160

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

flutter pub add animated_svg

पैकेज अवलोकन

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

Animated SVG एक Flutter पैकेज है जो Flutter एप्लिकेशन में स्केलेबल वेक्टर ग्राफिक्स (SVG) फ़ाइलों के प्रदर्शन और एनीमेशन की अनुमति देता है। यह SVG 1.1 फॉर्मेट का समर्थन करता है और विभिन्न प्लेटफॉर्मों पर चिकनी एनीमेशन के साथ वेक्टर ग्राफिक्स को रेंडर करने की अनुमति देता है। पैकेज बिना किसी दिक्कत के Flutter प्रोजेक्ट में एकीकृत होता है, डायनामिक, रिज़ॉल्यूशन-स्वतंत्र विज़ुअल्स के लिए हल्का समाधान प्रदान करता है। यह इंटरैक्टिव UI तत्वों, लोडिंग इंडिकेटर्स या एनीमेटेड इलस्ट्रेशन्स बनाने के लिए विशेष रूप से उपयोगी है। Android, iOS, Web, macOS, Windows और Linux के समर्थन के साथ, यह उपकरणों पर समान रूप से रेंडरिंग सुनिश्चित करता है।

उपयोग

  • एनिमेटेड लोडिंग इंडिकेटर बनाएं
  • गति के साथ स्केलेबल आइकन रेंडर करना
  • इंटरैक्टिव UI इलस्ट्रेशन बिल्ड करना
  • एनिमेटेड लोगो को प्रदर्शित कर रहा है
  • एप्प ऑनबोर्डिंग अनुभवों को बेहतर बनाना

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

  • SVG 1.1 प्रारूप का समर्थन करता है
  • स्मूथ एनिमेशन प्ले बैक
  • क्रॉस-प्लेटफॉर्म संगतता
  • हल्का और कारगर
  • Flutter के साथ आसान एकीकरण
  • डायनामिक SVG रेंडरिंग

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

  • वेक्टर एनिमेशन की आवश्यकता वाले ऐप विकासकर्ता
  • SVG संपत्तियों को एकीकृत करने वाले डिज़ाइनर
  • स्केलेबल यूआई तत्वों की आवश्यकता वाले प्रोजेक्ट
  • इंटरैक्टिव मोबाइल और वेब एप्लिकेशन
  • विजुअल स्टोरीटेलिंग वाले यूआई-भारी एप्लिकेशन

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

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

मूल README

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

Animated SVG | Flutter Package

Flutter package for displaying and animating Scalable Vector Graphics 1.1 files. The package has been written solely in Dart language.

animated_svg coverage style: very good analysis License: MIT

animated_svg_first_gif animated_svg_second_gif

Features

A powerful and fully customizable widget. With this package, you can animate SVGs without effort and make your UI look more lovely.

The AnimatedSvg widget creates a smooth transition between the two SVGs you assign.

   

Getting started

Let's take a look at how to implement AnimatedSvg to quickly create cool transition animation between SVGs.

First, add the following line to pubspec.yaml:

animated_svg: ^2.1.0

Second, import AnimatedSvg:

import 'package:animated_svg/animated_svg.dart';

Usage

Basic usage example:

main.dart

// Define an SvgController
late final SvgController controller;

@override
void initState() {
    // Initialize SvgController
    controller = AnimatedSvgController();
    super.initState();
}

@override
void dispose() {
    // Dispose SvgController
    controller.dispose();
    super.dispose();
}

@override
Widget build(BuildContext context) {
    // Call the AnimatedSvg widget anywhere in your widget tree.
    return AnimatedSvg(
        controller: controller,
        duration: const Duration(milliseconds: 600),
        onTap: () {},
        size: 80,
        clockwise: false,
        isActive: true,
        children: [
            SvgPicture.asset(
                'assets/play.svg',
            ),
            SvgPicture.asset(
                'assets/pause.svg',
            ),
        ],
    );
}

Example

More examples can be found in /example folder on GitHub.

Media Player - an example of basic implementation of AnimatedSvg. Simple project that simulates a media player. As usual, the player needs play and pause buttons. Thanks to the AnimatedSvg package, it is so easy to create a smooth transition between play and pause SVGs.

Additional information

This package has been written solely in Dart Language yet it has the flutter_svg as a dependency.

For more information please visit GitHub.

Feature requests and bugs

Please file feature requests and bugs at the issue tracker.

Maintainers

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 1 आइटम

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

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

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