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

套件詳情v1.0.0+2

social_media_widgets

一個用於收集常見流行社交媒體組件的新 Flutter 套件,例如 Instagram 故事滑動和 Snapchat 屏幕關閉功能。

近 30 天下載
6
喜歡數
84
Pub 分數
40

安裝套件

flutter pub add social_media_widgets

套件介紹

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

一個 Flutter 套件,提供一組常見的社群媒體介面元件,例如 Instagram 風格的故事滑動與 Snapchat 啟發的畫面關閉手勢。設計用以簡化在 Flutter 應用中實作流行社群媒體互動,提供可重複使用、可自訂的元件,透過熟悉的導航模式提升使用者體驗。此套件非常適合開發社交網路功能或需要直覺性手勢導航的內容驅動應用程式之開發者。

適用情境

  • 實現Instagram風格的故事查看器
  • 建立類似 Snapchat 的全螢幕可關閉覆蓋層
  • 構建互動式內容輪播
  • 透過滑動手势提升使用者參與度
  • 開發社交媒體應用UI
  • 向媒體資訊流添加基於手勢的導航

主要特色

  • 預建構的 Instagram 故事滑動元件
  • Snapchat風格的螢幕關閉手勢
  • 手勢回應式設計元素
  • 可自訂的動畫過渡
  • 透過 pub add 命令輕鬆整合
  • 可重用且模組化的 widget 架構

適合對象

  • 社交媒體應用開發者
  • 使用Flutter的UI/UX設計師
  • 內容豐富的故事介面應用程式
  • 尋求快速手勢實現的開發者
  • Flutter 初學者探索互動式 UI
  • 需要原生社交互動的專案

使用建議

  • 有限的平台支援(未列出具體平台)
  • 依賴外部GitHub倉庫進行更新
  • 可能需要額外的樣式自定義
  • 未針對超出基本手勢的複雜動畫進行優化
  • 元數據中未提供官方文件
  • 未來更新可能需要依賴管理

原始 README

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

Social Media Widgets - package

A new flutter package for collection of common popular social media widgets

Currently available widgets

  • Snapchat screen dismiss - By swiping down
  • Instagram story swipe

Adding basic Snapchat screen dismiss

Navigator.push(
  context,
  MaterialPageRoute(
    builder: (context) => SnapchatDismiss(
      child: Screen('Screen', Colors.redAccent),
    ),
  ),
);

Here we are navigating to another screen and applying the snapchat screen dismiss

Adding basic Snapchat screen dismiss with previous screen as background

Navigator.push(
  context,
  PageRouteBuilder(
    opaque: false,
    pageBuilder: (_, __, ___) =>
        SnapchatDismiss(child: Screen('Screen', Colors.redAccent),)
  ),
);

Here we are navigating to another screen and applying the snapchat screen dismiss and with the previous screen as background when we dismiss

Adding basic Snapchat screen dismiss with increased dismiss height

Navigator.push(
  context,
  PageRouteBuilder(
    opaque: false,
    pageBuilder: (_, __, ___) => SnapchatDismiss(
      dismissHeight: 250,
      child: Screen('Screen', Colors.redAccent),
    ),
  ),
);

Here we are navigating to another screen and applying the snapchat screen dismiss and this will require more drag than default to dismiss screen

Basic Instagram Story Swipe

Navigator.push(
  context,
  MaterialPageRoute(
    builder: (context) => InstagramStorySwipe(
      children: <Widget>[
        Screen('Screen 1', Colors.lightBlueAccent),
        Screen('Screen 2', Colors.redAccent),
        Screen('Screen 3', Colors.greenAccent),
      ],
    ),
  ),
);

Instagram Story Swipe with initial page specified

Navigator.push(
  context,
  MaterialPageRoute(
    builder: (context) => InstagramStorySwipe(
      initialPage: 1,
      children: <Widget>[
        Screen('Screen 1', Colors.lightBlueAccent),
        Screen('Screen 2', Colors.redAccent),
        Screen('Screen 3', Colors.greenAccent),
      ],
    ),
  ),
);

Instagram Story Swipe and snapchat dismiss combined

Navigator.push(
  context,
  PageRouteBuilder(
    pageBuilder: (_, __, ___) => SnapchatDismiss(
      child: InstagramStorySwipe(
        initialPage: 1,
        children: <Widget>[
          Screen('Screen 1', Colors.lightBlueAccent),
          Screen('Screen 2', Colors.redAccent),
          Screen('Screen 3', Colors.greenAccent),
        ],
      ),
    ),
  ),
);

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。