animate_on_hover 1.0.2 copy "animate_on_hover: ^1.0.2" to clipboard
animate_on_hover: ^1.0.2 copied to clipboard

Add animation(s) to your widgets on web when hovered, using this package.

example/lib/main.dart

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

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

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
        title: 'Animate on hover example',
        theme: ThemeData(
          primarySwatch: Colors.blue,
        ),
        home: const HomeScreen());
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(
        child: Container(
          height: 75,
          width: 100,
          decoration: BoxDecoration(
            color: Colors.red,
            borderRadius: BorderRadius.circular(5),
          ),
        ).increaseSizeOnHover(1.5),
      ),
    );
  }
}
1
likes
160
pub points
61%
popularity

Publisher

verified publishersivaprasadnk.dev

Add animation(s) to your widgets on web when hovered, using this package.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

flutter

More

Packages that depend on animate_on_hover