パッケージ、リポジトリ、アプリカテゴリを検索

nine_grid_view のカバー
パッケージ詳細v2.0.0

nine_grid_view

Flutter NineGridView および DragSortView、Weibo / WeChat のような 9 グリッドビュー コントロールで画像を表示します。

AndroidiOSWebmacOSWindowsLinux
30日間ダウンロード
148
いいね数
87
Pub ポイント
140

パッケージをインストール

flutter pub add nine_grid_view

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

NineGridView は、Weibo や WeChat を参考にした、画像を表示するための柔軟な 9 グリッドレイアウトを提供する Flutter パッケージです。静的な画像グリッドと DragSortView を使用したドラッグ可能なソートをサポートしており、インタラクティブな写真配置が可能です。このパッケージは Android、iOS、Web、macOS、Windows、Linux など複数のプラットフォームに対応しており最適化されています。滑らかなレンダリングとカスタマイズ可能なグリッド動作を提供し、ソーシャルメディア風の画像ギャラリーまたはコンテンツフィードに最適です。

用途

  • ソーシャルメディアの写真グリッド
  • 画像コレクションの表示
  • ドラッグアンドドロップによる画像の並べ替え
  • コンテンツフィードレイアウト
  • フォトアルバムインターフェース
  • インタラクティブな画像ギャラリー

主な機能

  • ナイングリッド画像レイアウト
  • 再順序付け用の DragSortView
  • クロスプラットフォーム対応
  • カスタマイズ可能なグリッド間隔
  • スムーズな画像読み込み
  • レスポンシブデザイン

適している対象

  • ソーシャルアプリを開発する開発者
  • 画像中心のインターフェースを構築するUIデザイナー
  • 並べ替え可能な画像コレクションを必要とするアプリ
  • 複数のプラットフォームをターゲットにするプロジェクト
  • Flutterをフルスタック開発に使用するチーム

注意事項

  • 適切な画像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.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。