FLUTTER ECOSYSTEM

chrisedg87/flutter_animated_check

Flutter 的一個動畫勾選圖示元件實作

flutter_animated_check 專案封面
Stars
7
Forks
5
最近推送(UTC)
2021年10月11日
專案狀態
未封存
Chris Edgington GitHub avatar
語言DartKotlinSwiftObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 2 項
  • flutter{"sdk":"flutter"}
  • flutter_test開發依賴{"sdk":"flutter"}

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 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!