hover_zoom_image 0.0.1 copy "hover_zoom_image: ^0.0.1" to clipboard
hover_zoom_image: ^0.0.1 copied to clipboard

Platformweb

A Flutter widget that provides a hover-to-zoom effect on images.

hover_zoom_image #

pub package License: MIT

A Flutter package that enables smooth image zoom effects on hover. Ideal for showcasing high-resolution images with an interactive zoom feature, perfect for web applications and galleries.

Demo #

Hover Zoom Image Demo

Installation #

Add this to your pubspec.yaml file:

dependencies:
  hover_zoom_image: <latest-version>

or

flutter pub add hover_zoom_image

Implementation #

Import the package in your Dart file:

import 'package:hover_zoom_image/hover_zoom_image.dart';

Usage #

The HoverZoomImage widget allows you to add a smooth zoom effect on images when hovering. You can wrap this widget in MaterialApp or use it within a single Widget.

MaterialApp(
      debugShowCheckedModeBanner: false,
      title: 'Hover Zoom Image',
      theme: ThemeData(
        colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple),
      ),
      home: Center(
        child: HoverZoomImage(
          imageProvider: const AssetImage('assets/images/sample.jpg'),
          width: 550,
          height: 700,
          zoomScale: 2.5,
          animationDuration: Duration(milliseconds: 150),
        ),
      ),
    );

5
likes
150
points
140
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter widget that provides a hover-to-zoom effect on images.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter, flutter_web_plugins, plugin_platform_interface, provider

More

Packages that depend on hover_zoom_image