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

A Flutter Package helping us to provide the hover effect to our images.

HoverX #

Hover - Image Hover Effect

Takes any child widget and gives color hover effect to it.

Demo #

Getting Started #

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

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

class MyApp extends StatelessWidget {
  // This widget is the root of your application.
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      theme: ThemeData(
        primarySwatch: Colors.blue,
      ),
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatefulWidget {
  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(),
      body: Center(
        child: HoverX(
          title: "Hello World",
          image: NetworkImage(
              "https://images.unsplash.com/32/Mc8kW4x9Q3aRR3RkP5Im_IMG_4417.jpg?ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80"),
          hoverColor: Colors.black,
        ),
      ),
    );
  }
}
5
likes
120
pub points
47%
popularity

Publisher

verified publisherbrewnbeer.com

A Flutter Package helping us to provide the hover effect to our images.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

Dependencies

flutter

More

Packages that depend on hoverx