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

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

flutter_animate_on_scroll

स्क्रॉल इवेंट के आधार पर विजेट्स को एनीमेट करने के लिए फ्लटर पैकेज। आपके UI को बढ़ाने के लिए आकर्षक, इंटरएक्टिव स्क्रॉल-आधारित एनीमेशन बनाना आसान है।

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

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

flutter pub add flutter_animate_on_scroll

पैकेज अवलोकन

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

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

उपयोग

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

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

  • वास्तविक समय की स्क्रॉल घटना निर्धारण
  • सरल एनीमेशन कॉन्फ़िगरेशन
  • क्रॉस-प्लेटफॉर्म संगतता
  • विभिन्न प्रकार के एनीमेशन का समर्थन करता है
  • हल्का और एकीकरण में आसान

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

  • इंटरैक्टिव तत्वों की खोज कर रहे UI डिजाइनर
  • स्क्रॉल-भारी इंटरफेस विकसित कर रहे डेवलपर्स
  • लंबी सामग्री सूचियों या फीड वाले ऐप
  • हल्के गतिशील प्रतिक्रिया की आवश्यकता वाले प्रोजेक्ट
  • क्रॉस-प्लेटफ़ॉर्म मोबाइल और वेब एप्लिकेशन

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

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

मूल README

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

Flutter_animate_on_scroll

Enables you to create flutter animations on scroll, faster, efficient and with less code.

Features

  • Stunning default animation
  • Customizable animation

Getting started

Put the dependency inside your pubspec.yml and run packages get.

Usage

Provide required child [Widget], you can play with animation delay, curves, duration...

import './src/components/custom_info.dart';
import 'package:flutter/material.dart';
import 'package:flutter_animate_on_scroll/flutter_animate_on_scroll.dart';

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State<MyHomePage> createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SingleChildScrollView(
        child: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 20).copyWith(top: 80),
          child: Column(
            children: [
              FadeIn(
                config: BaseAnimationConfig(
                  child: const CustomInfo(name: 'Fade In')
                ),
              ),
              const SizedBox(height: 20),
              FadeInDown(
                config: BaseAnimationConfig(
                  delay: 200.ms,
                  child: const CustomInfo(name: 'Fade In Down'),
                ),
              ),
              const SizedBox(height: 20),
              FadeInUp(
                config: BaseAnimationConfig(
                  delay: 400.ms,
                  child: const CustomInfo(name: 'Fade In Up'),
                ),
              ),
              const SizedBox(height: 20),
              FadeInLeft(
                config: BaseAnimationConfig(
                  delay: 600.ms,
                  child: const CustomInfo(name: 'Fade In Left'),
                ),
              ),
              const SizedBox(height: 20),
              FadeInRight(
                config: BaseAnimationConfig(
                  delay: 200.ms,
                  child: const CustomInfo(name: 'Fade In Right'),
                ),
              ),
              const SizedBox(height: 20),
              const Divider(),
              FadeOut(
                config: BaseAnimationConfig(
                  delay: 400.ms,
                  child: const CustomInfo(name: 'Fade Out'),
                ),
              ),
              const SizedBox(height: 20),
              FadeOutUp(
                config: BaseAnimationConfig(
                  delay: 600.ms,
                  child: const CustomInfo(name: 'Fade Out Up'),
                ),
              ),
              const SizedBox(height: 20),
              FadeOutDown(
                config: BaseAnimationConfig(
                  delay: 800.ms,
                  child: const CustomInfo(name: 'Fade Out Down'),
                ),
              ),
              const SizedBox(height: 20),
              FadeOutLeft(
                config: BaseAnimationConfig(
                  delay: 400.ms,
                  child: const CustomInfo(name: 'Fade Out Left'),
                ),
              ),
              const SizedBox(height: 20),
              FadeOutRight(
                config: BaseAnimationConfig(
                  delay: 600.ms,
                  child: const CustomInfo(name: 'Fade Out Right'),
                ),
              ),
              const SizedBox(height: 220),
            ],
          ),
        ),
      ),
    );
  }
}

Custom animation
import 'package:flutter/material.dart';
import 'package:flutter_animate_on_scroll/flutter_animate_on_scroll.dart';

import '../components/custom_info.dart';

class CustomAnimationExample extends StatefulWidget {
  const CustomAnimationExample({super.key});

  @override
  State<CustomAnimationExample> createState() => _CustomAnimationExampleState();
}

class _CustomAnimationExampleState extends State<CustomAnimationExample>
    with SingleTickerProviderStateMixin, AutomaticKeepAliveClientMixin{
  late AnimationController _animationController;
  late Animation<double> _animation;

  @override
  void initState() {
    _animationController = AnimationController(vsync: this, duration: 600.ms);
    _animation = Tween<double>(begin: 0.3, end: 1.0).animate(
      CurvedAnimation(parent: _animationController, curve: Curves.bounceInOut),
    );
    super.initState();
  }

  @override
  void dispose() {
    _animationController.dispose();
    super.dispose();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: SingleChildScrollView(
        child: Padding(
          padding: const EdgeInsets.symmetric(horizontal: 20).copyWith(top: 80),
          child: Column(
            children: [
              CustomAnimated(
                animationController: _animationController,
                animation: _animation,
                child: ScaleTransition(
                  scale: _animation,
                  child: const CustomInfo(name: 'Custom Animation'),
                ),
              ),
              const SizedBox(height: 20),
              const Divider(),
              const SizedBox(height: 220),
            ],
          ),
        ),
      ),
    );
  }
}

Video Demo

https://github.com/FadiChaalab/flutter_animate_on_scroll/assets/58008170/25ed91f2-e2b0-4321-a077-b22248e69f55

Default Animations

Fade Animation

Fade Animation

  • FadeIn
  • FadeInDown
  • FadeInLeft
  • FadeInRight
  • FadeInUp
  • FadeOut
  • FadeOutDown
  • FadeOutLeft
  • FadeOutRight
  • FadeOutUp
Slide Animation

Slide Animation

  • SlideInDown
  • SlideInLeft
  • SlideInRight
  • SlideInUp
  • SlideOutDown
  • SlideOutLeft
  • SlideOutRight
  • SlideOutUp
Rotate Animation

Rotate Animation

  • RotateIn
  • RotateInDownLeft
  • RotateInDownRight
  • RotateInUpLeft
  • RotateInUpRight
  • RotateOut
  • RotateOutDownLeft
  • RotateOutDownRight
  • RotateOutUpLeft
  • RotateOutUpRight
Zoom Animation
  • ZoomIn
  • ZoomOut
Text Animation
  • Text typer animation with fade option
  • Text wavy effect

श्रेणियाँ

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

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

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