Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev1.1.1

decoding_text_effect

Um pacote Flutter para o widget DecodingTextEffect. Existem 5 efeitos de decodificação que você pode escolher.

Downloads em 30 dias
45
Curtidas
31
Pontos Pub
40

Instalar pacote

flutter pub add decoding_text_effect

Visão geral do pacote

Orientação gerada a partir de informações públicas. Apenas para referência.

Um pacote Flutter que fornece o widget DecodingTextEffect, oferecendo cinco efeitos distintos de animação de decodificação para texto. Ele aumenta o engajamento do usuário ao animar o texto como se estivesse sendo decodificado em tempo real, ideal para telas de inicialização, indicadores de carregamento ou elementos de interface dinâmicos. O pacote é leve e fácil de integrar, com opções personalizáveis de velocidade e estilo. Perfeito para adicionar um toque moderno e inspirado em tecnologia aos aplicativos.

Casos de uso

  • Telas de inicialização
  • Animações de carregamento
  • Elementos de interface do usuário interativos
  • Interfaces gamificadas
  • Exibição de texto dinâmico

Principais recursos

  • Cinco efeitos de decodificação embutidos
  • Velocidade de animação personalizável
  • Integração simples com o Flutter
  • Leve e eficiente
  • Suporta estilização personalizada de texto

Indicado para

  • Desenvolvedores de aplicativos procurando efeitos de texto animados
  • Designers que querem elementos de interface futuristas
  • Projetos com fluxos interativos de onboarding
  • Aplicativos educacionais com conteúdo envolvente
  • Jogos com feedback visual

Considerações

  • Limitado a animações apenas de texto
  • Sem suporte para plataformas não-Flutter
  • Efeitos podem afetar o desempenho em dispositivos de baixa gama
  • Requer configuração manual para personalização avançada
  • Não adequado para conteúdo de texto estático

README original

Snapshot do README original do repositório-fonte vinculado. Consulte o repositório para o conteúdo mais recente.


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.

Categorias

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.