搜尋套件、儲存庫與 APP 分類

flutter_instagram_image_picker 封面
套件詳情v2.0.0

flutter_instagram_image_picker

Flutter 插件,可在 iOS 和 Android 上顯示 Instagram 多圖選擇器。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
77
喜歡數
25
Pub 分數
140

安裝套件

flutter pub add flutter_instagram_image_picker

套件介紹

根據套件公開資料產生的選型評估,僅供參考。

一個 Flutter 插件,可將 Instagram 風格的多圖片選擇功能整合到 Android、iOS、Web、macOS、Windows 和 Linux 上的應用程式中。它為使用者提供熟悉且類似原生的介面,以便從裝置相簿中選擇多張圖片,進而提升照片上傳體驗。此外,該插件設計目標是模擬 Instagram 直觀的圖片選取器 UI,非常適合社交媒體或內容創作應用。支援現代 Flutter 平台,並提供無縫整合,設定簡單。

適用情境

  • 社群媒體應用程式照片上傳
  • 內容創作工具
  • 多圖片個人檔案照片選擇
  • 使用者產生的內容集合
  • 電子商務產品圖片上傳

主要特色

  • Instagram 風格的使用者介面
  • 多圖選擇
  • 跨平台支援
  • 原生效能
  • 與 Flutter 的輕鬆整合
  • 支援所有主要的桌面與行動平台

適合對象

  • 開發社交應用的開發者
  • 需要直覺圖像選擇的應用程式
  • 針對多個平台的專案
  • 希望獲得精緻影像選擇器的團隊
  • 偏好熟悉 Instagram 風格介面的使用者

使用建議

  • 需要平台特定權限
  • 可能需要額外的樣式來支援自定主題
  • 選擇器佈局的自訂有限
  • 依賴於底層平台的影像庫
  • 不適用於僅單張圖片的使用情境

原始 README

以下為關聯原始碼儲存庫的 README 原文快照,最新內容請造訪原始碼儲存庫。

flutter_instagram_image_picker

A Flutter package for picking images from Instagram

Getting Started

This plugin displays a gallery with user's Instagram Albums and Photos, based on the access token provided. It does handle authorization and login by itself.
Then just provides access data (userId+SessionKey) to the gallery.

Usage

1.Check if user has logged in, if not prompt him to enter his login data using by navigation to the InstagramLoginPage

bool isLogged = await InstagramAuth().isLogged;
// check if user already logged in, if not log the user
if (!isLogged) {
  bool loginStatus = await InstagramAuth().signUserIn(context);

  // if user canceled the operation
  if (!loginStatus)
    return;
}

2.Check if the user logged in successfully by accessing his data.

final accessMapData = await InstagramAuth().accessData;
if(accessMapData == null){
  return null;
}

3.After we got the access data, we can navigate to InstagramImagePicker:

Navigator.push(
  context,
  MaterialPageRoute(
    builder: (context) => InstagramImagePicker(
      accessMapData,
      showLogoutButton: true,
      onDone: (photos) {
        // photos are the photos you selected in the picker
        // each one has the url
        Navigator.pop(context);
      },
      onCancel: () => Navigator.pop(context),
    ),
  ),
);
,

Screenshots

  • Login Page:

  • Image Picker:

  • Image Picker (after selection):

所屬分類

依賴

依賴清單 3 項

原始碼儲存庫

使用此套件的專案

暫無相關資料。