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

套件詳情v3.0.1

anitex

Anitex 是一個隱式動畫文字組件,會在傳入的文字變更時進行動畫

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
480
喜歡數
29
Pub 分數
150

安裝套件

flutter pub add anitex

套件介紹

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

Anitex 是一個 Flutter 套件,提供了一個隱式動畫文字元件,當顯示的文字變更時會自動進行動畫過渡。它簡化了建立流暢文字動畫的過程,無需手動管理動畫控制器。非常適合用於計數器、即時更新或狀態指示器等動態內容,Anitex 透過細微的視覺反饋提升使用者體驗。此套件支援所有主要平台,包括 Android、iOS、Web、macOS、Windows 和 Linux,讓它適用於跨平台應用。設計簡單,可輕鬆整合至現有的 Flutter 專案中。

適用情境

  • 即時計數器
  • 動態狀態更新
  • 儀表板中的文字過渡
  • 動畫歡迎訊息
  • 即時資料顯示

主要特色

  • 文字變更時自動動畫
  • 所需的設定最少
  • 跨平台支援
  • 平滑的淡入/淡出過渡
  • 無需 AnimationController

適合對象

  • 尋求簡單文字動畫的開發者
  • 文字頻繁變更的應用程式
  • 需要細微視覺反饋的 UI
  • 跨平台 Flutter 項目
  • 快速原型設計

使用建議

  • 最適合簡單的文字變更
  • 除了基本動畫外,自訂功能有限
  • 不適合複雜的動畫序列
  • 頻繁更新帶來的效能影響
  • 依賴 Flutter 的建構系統進行渲染

原始 README

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

AnimatedTextWidget

Getting started

Anitex - is a simple package, which give you access to implicitly animate any text. The most impressive animation is achieve if the old and new lines are the same length, or don't differ too much in length.

Example of usage:
  /// ...
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: AnimatedText(
          title, // This is just a [String]
          style: Theme.of(context).textTheme.headline6.copyWith(color: Colors.white),
          duration: const Duration(seconds: 1),
        ),
      ),
      body: Center(
        child: AnimatedText(
          content,
          reversed: true,
        ),
      ),
    );
  }

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。