show_overlay 0.0.6 copy "show_overlay: ^0.0.6" to clipboard
show_overlay: ^0.0.6 copied to clipboard

outdated

Quickly and easily create an OverlayEntry with animate.

flutter_show_overlay #

show_overlay plugin for Flutter. Supports iOS, Web, Android and MacOS.

Getting Started #

In your flutter project add the dependency:

dependencies:
  ...
 show_overlay: ^0.0.4

For help getting started with Flutter, view the online documentation.

Usage example #

Import show_overlay.dart

import 'package:show_overlay/show_overlay.dart';

Create and display some widgets #

More can view the folder example

    // default
    showOverlay(
      context: context,
      builder: (_, __, close) {
        return RaisedButton(
          onPressed: close,
          child: Text('Close'),
        );
      },
    );
  }

  // with animation
  showOverlay(
  context: context,
  animationDuration: Duration(milliseconds: 300),
  barrierDismissible: false,
  builder: (_, animation, close) {
    return ScaleTransition (
      scale: animation,
      child: RaisedButton(
        onPressed: close,
        child: Text('关闭'),
      ),
    );
  },
);

More #

6
likes
0
pub points
29%
popularity

Publisher

verified publisheryinxulai.com

Quickly and easily create an OverlayEntry with animate.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on show_overlay