o_popup 1.0.1 icon indicating copy to clipboard operation
o_popup: ^1.0.1 copied to clipboard

An overlaid content, which closes itself into opening place (on back button) or into the position where the pointer contacted the screen. It means, popup supports tap gesture.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:o_popup/o_popup.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'o_popup test app',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  @override
  Widget build(BuildContext context) => Scaffold(
        body: Center(
          child: OPopupTrigger(
            triggerWidget: Text('Click me'),
            popupHeader: OPopupContent.standardizedHeader('Click anywhere'),
            popupContent: Container(
              width: 50.0,
              height: 50.0,
              color: Colors.blue,
            ),
          ),
        ),
      );
}
21
likes
130
pub points
79%
popularity

Publisher

unverified uploader

An overlaid content, which closes itself into opening place (on back button) or into the position where the pointer contacted the screen. It means, popup supports tap gesture.

Homepage
View/report issues

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on o_popup