Buscar pacotes, repositórios e categorias de apps

Detalhes do pacotev1.1.0

zoom_tap_animation

A animação de toque de zoom permite que você crie um efeito semelhante aos itens da App Store na aba Hoje, quando você toca por um tempo em algum item, ele começa a aumentar o zoom e depois a diminuir.

AndroidiOSWebmacOSWindowsLinux
Downloads em 30 dias
5,5 mil
Curtidas
139
Pontos Pub
140

Instalar pacote

flutter pub add zoom_tap_animation

Visão geral do pacote

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

Zoom Tap Animation é um pacote Flutter que cria um efeito dinâmico de zoom in e zoom out quando o usuário pressiona por tempo prolongado um item, imitando o comportamento interativo visto na aba Today do App Store. Ele aumenta o engajamento do usuário ao fornecer feedback visual durante as interações com toque. A animação é suave e personalizável, adequada para botões, cartões ou qualquer elemento da interface interativa. Desenvolvido com foco em desempenho e compatibilidade entre plataformas, funciona perfeitamente em Android, iOS, Web, macOS, Windows e Linux.

Casos de uso

  • ícones de aplicativos interativos
  • Toque no cartão animado
  • Feedback de botão aprimorado
  • Interfaces do tipo guia de hoje
  • elementos de engajamento do usuário
  • Destaque de interação por toque

Principais recursos

  • Zoom acionado por pressionamento longo
  • Zoom suave para dentro e para fora
  • Suporte multiplataforma
  • Duração de animação personalizável
  • Integração fácil com widgets existentes
  • Leve e eficiente

Indicado para

  • Desenvolvedores em busca de efeitos táteis envolventes
  • Designers de UI aprimorando a interatividade
  • Aplicativos com navegação baseada em gestos
  • Projetos que exigem animações semelhantes às do App Store
  • Aplicativos Flutter direcionados a múltiplas plataformas

Considerações

  • Pode exigir ajuste para o tempo ideal
  • Não ideal para conteúdo estático ou não interativo
  • Melhor usado com alvos visuais claros
  • Pode entrar em conflito com outros gestos se não for gerido
  • Limitado a gatilhos de toque/pressão longa

README original

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

pub package

Zoom Tap Animation

Zoom Tap Animation is is a package that allows you to make an zoom animation effect similar to App Store's (ios app) items in Today tab, when you long tap on some item, it start to zoom in then it zoom out when you release it.

Screenshots:

Source of idea

The idea is inspired from App Store app in Today tab where you can long tap on some item and it start to zoom in then zoom out as shown in the screenshot below.

Example:

Check out the example project in the example folder.

Installation:

add the package to your dependencies
dependencies:
  zoom_tap_animation: ^1.1.0
import 'package:zoom_tap_animation/zoom_tap_animation.dart';

Usage:

default use of ZoomTapAnimation widget
ZoomTapAnimation(
      onTap: (){},
      child: YOUR_WIDGET
);
and you can also define custom parameters
ZoomTapAnimation(
      child: YOUR_WIDGET,
      onTap: (){},
      onLongTap: (){},
      enableLongTapRepeatEvent: false,
      longTapRepeatDuration: const Duration(milliseconds: 100),
      begin: 1.0,
      end: 0.93,
      beginDuration: const Duration(milliseconds: 20),
      endDuration: const Duration(milliseconds: 120),
      beginCurve: Curves.decelerate,
      endCurve: Curves.fastOutSlowIn
);
also you can use ZoomTapAnimation with your custom gestures
ZoomTapAnimation(
      child: GestureDetector(
      onTap: () {},
      onLongPress: (){},
      onDoubleTap: (){},
      // you can add more gestures...
      child: Container(color: Colors.yellow, width: 100.0, height: 100.0),
      ),
);
parameters
parameter description default
child your child widget that you want to put the zoom effect on.
onTap what should happen when you tap on the widget. null
onLongTap what should happen when you long tap on the widget. null
enableLongTapRepeatEvent option to enable long tap loop which repeat every onTap event (in case onLongTap is specified, it repeats the onLongTap event). false
longTapRepeatDuration the duration between every onTap/onLongTap loop event. const Duration(milliseconds: 100)
begin the size of widget you want to begin with. 1.0
end the size of widget you want to begin with. 0.93
beginDuration the duration of the begin zoom in animation. const Duration(milliseconds: 20)
endDuration the duration of the end zoom in animation. const Duration(milliseconds: 120)
beginCurve the curve animation type of the begin zoom in animation. Curves.decelerate
endCurve the curve animation type of the end zoom in animation. Curves.fastOutSlowIn

Categorias

Repositório-fonte

Projetos que usam este pacote