flutter_overlay 0.0.2
flutter_overlay: ^0.0.2 copied to clipboard

Flutter Android iOS Linux macOS web Windows

A transparent floating layer for flutter which can programatically show and close the child. Works on iOS,Android and Web.

flutter_overlay #

pub package PRs Welcome flutter_overlay release

A transparent floating layer for flutter which can programmatically show and close the child. Works on iOS,Android and Web.

Content #

Examples #

flutter_overlay flutter_overlay2

Getting Started #

Step1:Write your overlay

  _dialog() {
    return GestureDetector(
      onTap: () {
        Navigator.pop(context, 'close');
      },
      child: Container(
        decoration: BoxDecoration(color: Colors.black38),
        child: Center(
          child: CircularProgressIndicator(valueColor: AlwaysStoppedAnimation(Colors.redAccent)),
        ),
      ),
    );
  }

Step2:Show your overlay

HiOverlay.show(
  context,
  child: _dialog(),
).then((value) {
  print('---received:$value');
});

Step3:Close your overlay

Navigator.pop(context, 'close');

Contribution #

Issues are welcome. Please add a screenshot of you bug and a code snippet. Quickest way to solve issue is to reproduce it in one of the examples.

Pull requests are welcome. If you want to change the API or do something big it is best to create an issue and discuss it first.


MIT Licensed

1
likes
110
pub points
0%
popularity

A transparent floating layer for flutter which can programatically show and close the child. Works on iOS,Android and Web.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

crazycodeboy@gmail.com

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_overlay