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

overflow_text_animated 封面
套件詳情v0.0.6

overflow_text_animated

一個處理文字溢出動畫的 Flutter 套件專案。

AndroidiOSWebmacOSWindowsLinux
近 30 天下載
211
喜歡數
51
Pub 分數
155

安裝套件

flutter pub add overflow_text_animated

套件介紹

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

一個 Flutter 套件,透過平滑地顯示或隱藏溢出文字,實現文字溢出的動畫效果。當文字超出其容器範圍時,該套件透過微妙的動畫提升使用者體驗,非常適合空間有限的動態介面。此套件支援多個平台,並能順暢整合至現有的 Flutter 專案中。專為尋求在文字截斷時獲得優雅視覺反饋的開發者設計。

適用情境

  • 動態文字容器
  • 動畫文字截斷
  • 使用者介面增強
  • 響應式設計元素
  • 互動式文字顯示
  • 溢出時的視覺反饋

主要特色

  • 溢出時的平滑動畫
  • 跨平台支援
  • 與 Flutter 的輕鬆整合
  • 可自訂的動畫持續時間
  • 支援多行文字
  • 所需的樣板程式碼最少

適合對象

  • UI/UX 設計師
  • Flutter 開發者
  • 文字內容可變的應用程式
  • 互動式儀表板
  • 行動與Web應用程式

使用建議

  • 大型文字區塊可能影響效能
  • 動畫行為可能因平台而異
  • 需要仔細調整以獲得最佳使用者體驗
  • 不適用於僅靜態文字
  • 除了基本動畫外,自訂選項有限
  • 依賴於 Flutter 的渲染管道

原始 README

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

A plugin that displays overflowed text in a different way:

Installing

1. Depend on it

Add this to your package's pubspec.yaml file:

dependencies:
  overflow_text_animated: ^0.0.6
2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter pub get
3. Import it

Now in your Dart code, you can use:

import 'package:overflow_text_animated/overflow_text_animated.dart';

Usage

OverflowTextAnimated is a Stateful Widget. Include it in your build method like:

OverflowTextAnimated(
  text: overflowText,
  style: descriptionStyle,
  curve: Curves.fastEaseInToSlowEaseOut,
  animation: OverFlowTextAnimations.scrollOpposite,
  animateDuration: Duration(milliseconds: 1500),
  delay: Duration(milliseconds: 500),
)

OverflowTextAnimated is used as default text widget. It has many configurable properties, including:

  • text - required properties
  • style – style of text
  • curve – motion curves of animation effects
  • animation - animation type
  • animateDuration – is the duration of the animation
  • delay – is the break time between 2 animations

Note: Widget is only available when its parent has a specified width.

所屬分類

原始碼儲存庫

使用此套件的專案

暫無相關資料。