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

Libraries

flutter_overlay