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

concentric_transition 封面
套件詳情v1.0.3

concentric_transition

同心過渡效果。適用於引導頁、頁面切換等情境。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
1340
喜歡數
827
Pub 分數
160

安裝套件

flutter pub add concentric_transition

套件介紹

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

Concentric Transition 是一個 Flutter 套件,可實現螢幕或元件之間平滑的同心動畫效果。適合用於引導流程與頁面切換,透過圓形模式展開或收縮圖層,創造出視覺上吸引人的體驗。此套件支援 Android、iOS、Web、macOS、Windows 與 Linux 多個平台,適用於跨平台應用。僅需透過 pub add 命令進行簡單設定,開發者即可輕鬆將優雅的過渡動畫整合至其 UI 中。

適用情境

  • 入門畫面
  • 頁面過渡
  • 啟動畫面效果
  • 互動式使用者介面元素
  • 動畫導航
  • 視覺敘事

主要特色

  • 圓形同心動畫
  • 跨平台支援
  • 簡單整合
  • 可自訂的定時
  • 流暢的性能
  • 可重用的過渡小部件

適合對象

  • 應用入門流程
  • 互動式使用者介面設計
  • 動畫啟動畫面
  • 行動和網路應用
  • 注重設計的 Flutter 項目
  • 尋求視覺精緻的開發者

使用建議

  • 可能影響低階裝置的效能
  • 需要仔細調整時間
  • 限制為圓形過渡模式
  • 不適合複雜的狀態轉換
  • 最適合簡單、專注的動畫
  • 需要在所有目標平台上進行測試

原始 README

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

➰ Concentric Transition

A Flutter plugin to create views using Concentric Transition Clipper. Useful for onboarding, page transitions, custom clippers, painters etc.

Inspired by Cuberto - Animated Onboarding Screens

Build Status Pub package Star on GitHub License: MIT

1.gif 2.gif 3.gif 4.gif 5.gif 6.gif

Getting Started

  • Add this to your pubspec.yaml
    dependencies:
    concentric_transition: ^1.0.3
    
  • Get the package from Pub:
    flutter packages get
    
  • Import it in your file
    import 'package:concentric_transition/concentric_transition.dart';
    

Features

  • 📺 Concentric PageView
  • 🕳️ Concentric Clipper
  • 📙 Concentric PageRoute

Usage

  • Using ConcentricPageView widget
import 'package:concentric_transition/concentric_transition.dart';

ConcentricPageView(
   colors: <Color>[Colors.white, Colors.blue, Colors.red],
   itemCount: 1, // null = infinity
   physics: NeverScrollableScrollPhysics(),
   itemBuilder: (int index, double value) {
       return Center(
           child: Container(
               child: Text('Page $index'),
           ),
       );
   },
);
  • Using ConcentricPageRoute widget
Navigator.push(context, ConcentricPageRoute(builder: (ctx) {
  return NextPage();
}));
  • Using ConcentricClipper widget
import 'package:concentric_transition/concentric_transition.dart';

ClipPath(
  clipper: ConcentricClipper(
    progress: 0.1, // from 0.0 to 1.0
    reverse: false,
    radius: 30.0,
    verticalPosition: 0.82,
  ),
  child: Container(
    color: Colors.green,
  ),
)

Credits

Maintainers

License

License: MIT

所屬分類

原始碼儲存庫

使用此套件的專案