Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev4.0.0

flare_splash_screen

Facilitador para ter uma tela de inicialização com uma animação Flare até que algum trabalho seja feito para a inicialização do aplicativo

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
666
Curtidas
228
Pontos Pub
140

Instalar pacote

flutter pub add flare_splash_screen

Visão geral do pacote

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

Um pacote Flutter que permite uma tela inicial com animação Flare, mantendo a tela ativa até que as tarefas essenciais de inicialização do aplicativo sejam concluídas. Ele se integra perfeitamente aos gráficos vetoriais animados do Flare para oferecer animações suaves e leves durante a inicialização. O pacote é projetado para desenvolvedores que desejam aprimorar as experiências de onboarding com visuais envolventes, enquanto adiam a prontidão do aplicativo até que o trabalho em segundo plano seja concluído.

Casos de uso

  • Onboarding do aplicativo com tela inicial animada
  • Inicialização atrasada com feedback visual
  • Marca com animações interativas
  • Telas de inicialização multiplataforma
  • Visualização do estado de carregamento
  • Transição suave para o aplicativo principal

Principais recursos

  • Suporte a animação de flare
  • Tratamento automático de atraso na inicialização
  • Duração e retorno personalizáveis
  • Compatibilidade multiplataforma
  • Integração simples com aplicativos Flutter existentes
  • Gatilhos configuráveis de início e fim da animação

Indicado para

  • Desenvolvedores usando animações Flare
  • Aplicativos que exigem telas de inicialização com marca
  • Projetos com inicialização assíncrona
  • Equipes priorizando a experiência do usuário
  • Aplicativos Flutter para múltiplas plataformas
  • Aplicações móveis e web com foco em design

Considerações

  • Requer arquivos Flare (.json)
  • Limitado a animações baseadas em Flare
  • Pode aumentar o tamanho inicial do pacote
  • Necessita de gerenciamento adequado do ciclo de vida
  • Não adequado para telas de inicialização estáticas
  • Dependente da biblioteca de tempo de execução Flare

README original

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

flare_splash_screen

pub package

Facilitator for having a Splash screen with a Flare animation until some work has been done for the initialization of the app

If you're using Rive instead of Flare please use rive_splash_screen

Usage

Navigation

The splash screen will show the animation and push the new route you gave once it's finish, by default it does a fade animation but you can customize it by using transitionsBuilder

SplashScreen.navigate(
    name: 'intro.flr',
    next: (_) => MyHomePage(title: 'Flutter Demo Home Page'),
    until: () => Future.delayed(Duration(seconds: 5)),
    startAnimation: '1',
),
Callback

The splash screen will show the animation and call the onFinished callback when it's finish.

SplashScreen.callback(
    name: 'intro.flr',    
    onFinished: () {
      Navigator.of(context).pushReplacement(PageRouteBuilder(pageBuilder: (_,__,___) => MyHomePage(title: 'Flutter Demo Home Page')));
    },
    loopAnimation: '1',
    until: () => Future.delayed(Duration(seconds: 1)),
    endAnimation: '1',
),
API

name : path/name of the flare animation

next : screen to show once animation is finished as widget builder

loopAnimation: animation name to run, default same as first param

startAnimation: animation name to run once before going into loop

endAnimation: animation name to run once until is complete

until: callback that return a future to process your initialization

isLoading: alternative to until if you want to manage loading state with a boolean

height: force the height of the flare animation, by default it take the all place available

width: force the width of the flare animation, by default it take the all place available

alignment: alignment of the flare animation, center by default

transitionsBuilder transition to apply when showing next

Available animation mode
Only one animation

Basically you have one animation to show and then just need to stay at last frame. In order to do that only specify the startAnimation

Start and loop animation

Your animation have an intro and a loop state, in order to do that only specify the startAnimation and loopAnimation

End and loop animation

Your animation have a finish and a loop state, in order to do that only specify the endAnimation and loopAnimation

Start and end animation

Your animation have an intro and a finish that should stay on the last frame, in order to do that only startAnimation and endAnimation

Start, end and loop animation

Your animation have an intro, a finish and a loop state, in order to do that specify the startAnimation, endAnimation and loopAnimation

Categorias

Dependências

Lista de dependências 1 itens

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.