Buscar pacotes, repositórios e categorias de apps

Repositório GitHubMohamadGreatWarrior/tiktok_double_tap_like

tiktok_double_tap_like

MohamadGreatWarrior/tiktok_double_tap_like open-source repository details.

Capa do projeto tiktok_double_tap_like
Estrelas
4
Forks
1
Último push (UTC)
20 de out. de 2024
Status do projeto
Ativo

README original

Texto original em inglês. Visite o GitHub para a versão atual.

tiktok_double_tap_like

TikTok Double Tap Like

About

TikTok Double Tap Like is a Flutter package that provides a widget that can be used to like a video by double tapping on it, just like TikTok.

Example

tiktok_double_tap_like

DoubleTapLikeWidget(
      onLike: (likeCount) {
        //Do something when the user double taps
      },
      likeWidget: const Image(image: AssetImage('assets/icons/heart.png')),
      likeWidth: 200,
      likeHeight: 200,
      child: VideoPlayer(),
    )

Notes

  • You have to provide a widget that will be displayed when the user double taps on the screen, whether Text, Icon...etc. You can use the likeWidget property to provide that widget.

  • You can also provide the width and height of the widget using the likeWidth and likeHeight properties. The default values are 200 each.

  • You have the likeCount param in onLike in case you want to know how many times the user has liked the video.

  • It's pretty efficient and performant, I've created the animation explicitly using AnimationController, Animation, Tween and AnimatedBuilder. Also, there's an applied mechanism to removing the added hearts off of the screen.

Help me

If you like this package you can support me on

Buy Me A Coffee

Mohamad Tayan GitHub avatar
Autor no GitHub

Mohamad Tayan ↗

LinguagensC++CMakeDartSwiftCHTMLKotlinObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 3 itens

  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}
  • flutter_lintsDesenvolvimento^3.0.0

Como escolher um repositório para seu projeto?

Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.

  1. Busque por nome, autor ou descrição e filtre por tema.
  2. Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
  3. Confira o README, a licença e as issues no GitHub antes de usar o projeto.

Fontes e manutenção

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗