패키지, 저장소 및 앱 카테고리 검색

패키지 상세v1.1.1

decoding_text_effect

DecodingTextEffect 위젯을 위한 플러터 패키지입니다. 선택할 수 있는 디코딩 효과가 5가지 있습니다.

30일 다운로드
45
좋아요
31
Pub 점수
40

패키지 설치

flutter pub add decoding_text_effect

패키지 개요

공개 정보를 바탕으로 생성한 선택 가이드입니다.

텍스트를 실시간으로 디코딩되는 것처럼 애니메이션하는 다섯 가지의 독특한 디코딩 애니메이션 효과를 제공하는 플러터 패키지입니다. 스플래시 화면, 로딩 인디케이터 또는 동적 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.

카테고리

소스 저장소

이 패키지를 사용하는 프로젝트

아직 데이터가 없습니다.