tiktok_double_tap_like 1.0.5+2 copy "tiktok_double_tap_like: ^1.0.5+2" to clipboard
tiktok_double_tap_like: ^1.0.5+2 copied to clipboard

A Flutter package that provides a TikTok-like double tap to like animation, complete with customizable heart icons and animations.

example/lib/main.dart

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

void main() {
  runApp(const MyApp());
}

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'TikTok Double Tap Like',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: const MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  const MyHomePage({super.key});

  @override
  State createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return DoubleTapLikeWidget(
      onLike: (likeCount) {
        //Do something when the user double taps
      },
      likeWidget: const Image(image: AssetImage('assets/icons/heart.png')),
      likeWidth: 200,
      likeHeight: 200,
      child: Scaffold(
        appBar: AppBar(
          title: const Text('TikTok Double Tap Like'),
        ),
      ),
    );
  }
}
34
likes
150
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provides a TikTok-like double tap to like animation, complete with customizable heart icons and animations.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on tiktok_double_tap_like