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

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

flippable_box

एक डबल साइडेड कंटेनर, जो उलट जाता है, दोनों तरफ की सामग्री को दिखाता है।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
66
लाइक
29
Pub अंक
150

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

flutter pub add flippable_box

पैकेज अवलोकन

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

flippable_box एक Flutter पैकेज है जो दो अलग-अलग सामग्री के चेहरों के बीच घूमने वाले डबल-साइडेड Container को प्रदान करता है। यह सामने और पीछे के चेहरों के बीच चिकने, एनिमेटेड ट्रांज़िशन को संभव बनाता है, जो कार्ड या फ्लिप इफेक्ट जैसे इंटरैक्टिव UI तत्वों के लिए आदर्श है। यह पैकेज Android, iOS, Web, macOS, Windows और Linux सहित सभी मुख्य प्लेटफॉर्म का समर्थन करता है, जिससे यह क्रॉस-प्लेटफॉर्म एप्लिकेशन के लिए लचीला बनता है। Flutter के एनिमेशन सिस्टम के साथ बनाया गया, यह प्रतिक्रियाशील और कस्टमाइज़ करने योग्य फ्लिपिंग व्यवहार प्रदान करता है।

उपयोग

  • इंटरैक्टिव कार्ड इंटरफेस
  • उत्पाद विवरण फ्लिप कार्ड्स
  • क्विज़ या फ्लैशकार्ड ऐप्स
  • एनिमेटेड नेविगेशन तत्व
  • गेम यूआई घटक

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

  • स्मूथ 3D फ्लिप एनीमेशन
  • कस्टमाइज़ किए गए सामने और पीछे का सामग्री
  • क्रॉस-प्लेटफॉर्म संगतता
  • मौजूदा विजेट्स के साथ आसान एकीकरण
  • टैप और गेस्चर ट्रिगर का समर्थन करता है

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

  • इंटरैक्टिव यूआई बनाने वाले डेवलपर्स
  • शैक्षिक ऐप निर्माता
  • गेमिफाइड एप्लिकेशन डिज़ाइनर्स
  • गतिशील ट्रांजिशन की तलाश में डिज़ाइनर

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

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

मूल README

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

flippable_box

FlippableBox is a double-sided Container, that holds two pieces of content and automatically re-sizes to match its content, whenever its flipped over.

Usage

First import the package into your class:

import 'package:flippable_box/flippable_box.dart';

Create a FlippableBox with two child Containers. Change the isFlipped property to trigger the internal flip animation.

GestureDetector(
    onTap: () => setState(() => _isFlipped = !_isFlipped),
    child: FlippableBox(
        front: Container(width: 200, height: 200, color: Colors.white),
        back: Container(width: 300, height: 300, color: Colors.white),
        isFlipped: _isFlipped,
    ),
)

NOTE: It is required that the children are Containers, and have their size or constraints set manually, as shown in the example above. This is so the Box knows what its target size is when animating.

To control the flip animation, you can set duration, curve and flipVt which will cause the flip to be in the vertical axis rather than horizontal.

You can also specify a bg which takes a BoxDecoration, and a borderRadius in case you'd like to clip the child contents.

FlippableBox(
    front: child1,
    back: child2,
    isFlipped: _isFlipped,
    borderRadius: 32, //Uses a ClipRRect to clip contents of child containers
    bg: BoxDecoration(color: Colors.white), //Paints the box itself with a shared background
    duration: 0.5, //half second duration
    flipVt: true, //Flip vertically instead of horizontal
    curve: Curves.easeOut,
)

Example

See the example directory for a simple example.

श्रेणियाँ

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

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

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