checkmark 0.0.2+1 copy "checkmark: ^0.0.2+1" to clipboard
checkmark: ^0.0.2+1 copied to clipboard

Animated check mark. Customise colors, curves, duration, and more.

example/lib/main.dart

import 'package:checkmark/checkmark.dart';
import 'package:flutter/material.dart';

class CheckMarkPage extends StatefulWidget {
  const CheckMarkPage({Key? key}) : super(key: key);

  @override
  _CheckMarkPageState createState() => _CheckMarkPageState();
}

class _CheckMarkPageState extends State<CheckMarkPage> {
  bool checked = false;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Example'),
      ),
      body: Container(
        height: MediaQuery.of(context).size.height,
        width: MediaQuery.of(context).size.width,
        alignment: Alignment.center,
        child: GestureDetector(
          onTap: () {
            setState(() {
              checked = !checked;
            });
          },
          child: SizedBox(
            height: 50,
            width: 50,
            child: CheckMark(
              active: checked,
              curve: Curves.decelerate,
              duration: const Duration(milliseconds: 500),
            ),
          ),
        ),
      ),
    );
  }
}
25
likes
160
pub points
87%
popularity

Publisher

verified publisherprecede.dev

Animated check mark. Customise colors, curves, duration, and more.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on checkmark