パッケージ、リポジトリ、アプリカテゴリを検索

パッケージ詳細v1.1.1

decoding_text_effect

DecodingTextEffect ウィジェット用のFlutterパッケージ。選択できるデコード効果が5つあります。

30日間ダウンロード
45
いいね数
31
Pub ポイント
40

パッケージをインストール

flutter pub add decoding_text_effect

パッケージ概要

公開情報に基づく選定ガイドです。参考としてご利用ください。

テキストのリアルタイムでのデコードを彷彿とさせるアニメーション効果を提供する、DecodingTextEffectウィジェットを備えたFlutterパッケージです。スプラッシュスクリーン、ローディングインジケーター、またはダイナミックUI要素に最適です。ユーザー参加度を高めるため、軽量で簡単に統合でき、スピードやスタイルのカスタマイズが可能です。アプリケーションにモダンでテクノロジーインスパイアされた雰囲気を加えるのにぴったりです。

用途

  • スプラッシュスクリーン
  • 読み込みアニメーション
  • インタラクティブなUI要素
  • ゲーム化インターフェース
  • 動的テキスト表示

主な機能

  • 5つの組み込みデコード効果
  • カスタマイズ可能なアニメーション速度
  • Flutter との簡単な統合
  • 軽量でパフォーマンスに優れる
  • カスタムテキストスタイルをサポート

適している対象

  • アニメーションテキストエフェクトを探しているアプリ開発者
  • 未来のUI要素を求めるデザイナー
  • インタラクティブなオンボーディングフローを備えたプロジェクト
  • 魅力的なコンテンツを備えた教育アプリ
  • 視覚フィードバック付きのゲーム

注意事項

  • テキストアニメーションのみに制限
  • 非Flutterプラットフォームはサポートされていません
  • エフェクトは低スペックデバイスのパフォーマンスに影響を与える可能性があります
  • 高度なカスタマイズには手動設定が必要です
  • 静的テキストコンテンツには適していません

元の README

関連するソースリポジトリの README 原文のスナップショットです。最新の内容はリポジトリをご覧ください。


This flutter package contains a widget called DecodingTextEffect which is having some cool Decode Effects for texts.


Installing

1. Depend on it

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

dependencies:
  decoding_text_effect: ^1.1.1
2. Install it

You can install packages from the command line:

$ flutter pub get
3. Import it

Now in your Dart code, you can use:

import 'package:decoding_text_effect/decoding_text_effect.dart';

Documentation

Decoding effects occurs only for following two cases,

  1. When the widget is rendered for the very first time.
  2. When the value of originalString parameter gets changed.
DecodingTextEffect(
   this.originalString, {
   @required this.decodeEffect,
   Key key,
   this.textStyle,
   this.textAlign,
   this.refreshDuration,
   this.eachCount = 5,
   this.onTap,
   this.onFinished,
  })  : assert(
         originalString != null,
         'A non-null String must be provided to a Decoding Text Effect Widget.',
        ),
        super(key: key);

Usage

List<String> myText = [
   'Decoding Text\nEffect',
   'Welcome to\nthe Dart Side!',
   'I have 50\nwatermelons',
   'Quick Maths,\n2 + 2 = 4'
  ];

1. DecodeEffect.fromStart

Container(
   height: 200,
   width: 350,
   color: Colors.pink[100],
   padding: EdgeInsets.all(50),
   child: DecodingTextEffect(
      myText[index],
      decodeEffect: DecodeEffect.fromStart,
      textStyle: TextStyle(fontSize: 30),
   ),
),

2. DecodeEffect.fromEnd

Container(
   height: 200,
   width: 350,
   color: Colors.yellow[100],
   padding: EdgeInsets.all(50),
   child: DecodingTextEffect(
      myText[index],
      decodeEffect: DecodeEffect.fromEnd,
      textStyle: TextStyle(fontSize: 30),
   ),
),

3. DecodeEffect.toMiddle

Container(
   height: 200,
   width: 350,
   color: Colors.green[100],
   padding: EdgeInsets.all(50),
   child: DecodingTextEffect(
      myText[index],
      decodeEffect: DecodeEffect.to_middle,
      textStyle: TextStyle(fontSize: 30),
   ),
),

4. DecodeEffect.random

Container(
   height: 200,
   width: 350,
   color: Colors.purple[100],
   padding: EdgeInsets.all(50),
   child: DecodingTextEffect(
      myText[index],
      decodeEffect: DecodeEffect.random,
      textStyle: TextStyle(fontSize: 30),
   ),
),

5. DecodeEffect.all

Container(
   height: 200,
   width: 350,
   color: Colors.blue[100],
   padding: EdgeInsets.all(50),
   child: DecodingTextEffect(
      myText[index],
      decodeEffect: DecodeEffect.all,
      textStyle: TextStyle(fontSize: 30),
   ),
),

refreshDuration and eachCount

The refreshDuration is an optional argument that is having a default value of Duration(milliseconds: 60). Shorter the value of refreshDuration, faster will be the effect and hence decreasing the duration of effect. refreshDuration is also the time gap between two consecutive setState() function calls.

The eachCount is also an optional argument that is having a default value of 5. It is the number of random characters that will be shown before showing the original character and then moving on to decode next character and this cycles repeat until the completion of effect.

Demo

Source code of the below app is available in the example directory of this package's github repository.

Below are some other demonstration of DecoratingTextEffect widget. But the source code of below apps are not in this repository.

カテゴリー

ソースリポジトリ

このパッケージを使用しているプロジェクト

データはまだありません。