heart_overlay 1.0.0+1 copy "heart_overlay: ^1.0.0+1" to clipboard
heart_overlay: ^1.0.0+1 copied to clipboard

The HeartOverlay widget can be used to create a fun and interactive overlay that displays a heart animation when the user taps on the screen.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      debugShowCheckedModeBanner: false,
      home: Scaffold(
        backgroundColor: Colors.black45,
        appBar: AppBar(
          title: const Text('Heart Overlay'),
          centerTitle: true,
          backgroundColor: Colors.cyan,
        ),
        body: Column(
          children: const [
            Expanded(
              child: HeartOverlay(
                duration: Duration(seconds: 2),
                backgroundColor: Colors.lightBlue,
                height: 200,
                icon: Icon(
                  Icons.abc,
                  color: Colors.purple,
                  size: 100,
                ),
              ),
            ),
          ],
        ),
      ),
    );
  }
}
8
likes
0
pub points
72%
popularity

Publisher

unverified uploader

The HeartOverlay widget can be used to create a fun and interactive overlay that displays a heart animation when the user taps on the screen.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on heart_overlay