Last updated:
0 purchases
expandable overlay
This package fascilitates easy creation of expandable overlays that expand out of any widget wrapped by ExpandableOverlayLauncher.
Getting Started #
Install package via command line (or just add it in pubspec.yaml):
flutter pub add expandable_overlay
copied to clipboard
Usage #
1. Import the package: #
import 'package:expandable_overlay/expandable_overlay.dart';
copied to clipboard
2. Wrap an element with the ExpandableOverlayLauncher widget. #
ExpandableOverlayLauncher(
overlayParams: ExpandableOverlayParams(
contentBuilder: (
context,
dismissOverlay, // function that can be used to dismiss the modal through code
) => Text("I'm inside the modal"), // widget containing the contents of the modal
),
// widget that will be tapped to open the modal
// will appear at the top of the modal when it expands
child: Text('click me'),
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.