Elevator

A Flutter package that provides a widget for elevating a widget.

Features

  • Elevate a widget
  • Clean elevation removal on mouse exit

Installation

Add the following to your pubspec.yaml:

dependencies:
  elevator: ^1.0.0

Usage

Here's a simple example of how to use the Elevator widget:

Elevator(
  builder: (elevated) {
    return Card(
      elevation: elevated ? 4 : 1,
      child: Text(
        'Item $index',
      ),
    );
  },
)

Libraries

elevator