flutter_overlay 1.0.0 copy "flutter_overlay: ^1.0.0" to clipboard
flutter_overlay: ^1.0.0 copied to clipboard

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

15
likes
140
pub points
76%
popularity

Publisher

unverified uploader

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

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_overlay