FLUTTER ECOSYSTEM

chrisedg87/flutter_animated_check

Uma implementação de um widget de ícone de marcação animado para Flutter

Capa do projeto flutter_animated_check
Stars
7
Forks
5
Último push (UTC)
11 de out. de 2021
Status do projeto
Ativo
Chris Edgington GitHub avatar
LinguagensDartKotlinSwiftObjective-C

Pacotes publicados por este repositório

Dependências usadas

Lista de dependências 2 itens
  • flutter{"sdk":"flutter"}
  • flutter_testDesenvolvimento{"sdk":"flutter"}

README original

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

Expandir / recolher README

animated_check

pub package

AnimatedCheck is a Flutter package with a simple implementation of an animated checkmark icon.

https://github.com/chrisedg87/flutter_animated_check/raw/main/screenshots/animated_check.gif

Installation

Add this to your pubspec.yaml:

dependencies:
    animated_check: ^1.0.0

Usage

Import
import 'package:animated_check/animated_check.dart';
Simple Implementation
_controller = AnimationController(vsync: this, duration: const Duration(seconds: 1));

Animation _animation = Tween<double>(begin: 0, end: 1)
  .animate(CurvedAnimation(
    parent: _animationController,
    curve: Curves.easeInOutCirc)
  );

void _showCheck() {
  _controller.forward();
}

void _resetCheck() {
  _controller.reverse();
}

AnimatedCheck(
  progress: _animation,
  size: 200,
)

Contributions

All contributions are welcome!