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

nine_grid_view कवर
पैकेज विवरणv2.0.0

nine_grid_view

Flutter NineGridView और DragSortView, वीबो / वीचैट के समान नौ ग्रिड दृश्य नियंत्रण के लिए चित्र प्रदर्शित करने के लिए।

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
148
लाइक
87
Pub अंक
140

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

flutter pub add nine_grid_view

पैकेज अवलोकन

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

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

उपयोग

  • सोशल मीडिया फ़ोटो ग्रिड्स
  • चित्र संग्रह प्रदर्शन
  • ड्रैग एंड ड्रॉप छवि सॉर्टिंग
  • सामग्री फीड लेआउट
  • फोटो एल्बम इंटरफेस
  • इंटरैक्टिव इमेज गैलरी

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

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

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

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

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

  • सही छवि URL का निपटान आवश्यक है
  • बड़े छवि सेट के लिए प्रदर्शन ट्यूनिंग की आवश्यकता हो सकती है
  • आधार संस्करण में केवल छवि सामग्री सीमित है
  • कस्टम स्टाइलिंग के लिए अतिरिक्त कोड की आवश्यकता होती है
  • गैर-छवि डेटा के लिए उपयुक्त नहीं

मूल README

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

Language: English | 中文简体

Pub      Pub

NineGridView

Similar to Weibo dynamics, WeChat circle of friends, nine grid view controls to display pictures. Support single big picture preview.
It also supports WeChat group , DingTalk group, QQ group avatar effects.

DragSortView

Similar to Weibo/WeChat release dynamic picture selection nine grid view. Support press to enlarge effect, drag and drop sorting, drag and drop to a specified location to delete.

Pub
dependencies:
  nine_grid_view: ^2.0.0
Example
import 'package:nine_grid_view/nine_grid_view.dart';

// bigImage param, It is recommended to use a medium-quality picture, because the original picture is too large and takes time to load.
NineGridView(
  margin: EdgeInsets.all(12),
  padding: EdgeInsets.all(5),
  space: 5,
  type: NineGridType.weChat,//NineGridType.weChat, NineGridType.weiBo
  itemCount: itemCount,
  itemBuilder: (BuildContext context, int index) {},
);

// group avatar.
// need width, height param.
NineGridView(
  width: 120,
  height: 120,
  padding: EdgeInsets.all(5),
  space: 5,
  type: NineGridType.qqGp, //NineGridType.weChatGp, NineGridType.dingTalkGp
  itemCount: itemCount,
  itemBuilder: (BuildContext context, int index) {},
);

// It is recommended to use a thumbnail picture,because the original picture is too large, it may cause repeated loading and cause flashing.
DragSortView(
  imageList,
  space: 5,
  margin: EdgeInsets.all(20),
  padding: EdgeInsets.all(0),
  itemBuilder: (BuildContext context, int index) {},
  initBuilder: (BuildContext context) {},
  onDragListener: (MotionEvent event, double itemWidth) {
    /// Judge to drag to the specified position to delete
    /// return true;
    if (event.globalY > 600) {
      return true;
    }
    return false;
  },
);   
Screenshots

Changelog

Please see the Changelog page to know what's recently changed.

Others

Another NineGridView in flukit UI Kit,using GridView implementation。But in this project used Stack + Positioned。

App

Moss.
A GitHub client app developed with Flutter, which supports Android iOS Web.
Web :Flutter Web.

श्रेणियाँ

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

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

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