Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev0.1.1

rive_splash_screen

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

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
229
Curtidas
59
Pontos Pub
140

Instalar pacote

flutter pub add rive_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 aos desenvolvedores exibir uma tela inicial com animação Rive enquanto o aplicativo é inicializado. Simplifica a integração de animações suaves e interativas durante a inicialização, garantindo uma experiência do usuário refinada. O pacote gerencia a lógica de carregamento e as transições de forma transparente assim que o trabalho de inicialização for concluído. Suporta múltiplas plataformas, incluindo móvel, web e desktop, tornando-o ideal para aplicativos que exigem experiências de onboarding visualmente envolventes.

Casos de uso

  • Onboarding do aplicativo com tela inicial animada
  • Visualização do estado de carregamento
  • Marca com animações interativas
  • Gerenciamento de inicialização atrasada
  • Telas de inicialização multiplataforma

Principais recursos

  • Suporte de animação Rive
  • Transição automática após a inicialização
  • Compatibilidade multiplataforma
  • Configuração simples com código mínimo
  • Duração de carregamento personalizável

Indicado para

  • Desenvolvedores procurando telas de inicialização animadas
  • Aplicativos com processos de inicialização complexos
  • Projetos que enfatizam o design visual
  • Equipes usando Rive para animações
  • Aplicações multiplataforma

Considerações

  • Requer ativos de arquivo Rive
  • Pode afetar o tempo inicial de carregamento se as animações forem grandes
  • Necessita de lógica de inicialização adequada
  • Personalização limitada além das transições básicas
  • Dependente do desempenho do tempo de execução do Rive

README original

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

rive_splash_screen

pub package

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

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.riv',
    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.riv',
    onSuccess: (data) {
      //data is the optional data returned by until callback function
      Navigator.of(context).pushReplacement(PageRouteBuilder(pageBuilder: (_,__,___) => MyHomePage(title: 'Flutter Demo Home Page')));
    },
    onError: (err, stack) {
      //error throw by until callback function
    },
    loopAnimation: '1',
    until: () => Future.delayed(Duration(seconds: 1)),
    endAnimation: '1',
),
API

name : path/name of the Rive 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 Rive animation, by default it take the all place available

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

alignment: alignment of the Rive 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

  • rive_loading>=0.1.3 <1.0.0

Repositório-fonte

Projetos que usam este pacote

Ainda não há dados.