o_popup 0.1.2 copy "o_popup: ^0.1.2" to clipboard
o_popup: ^0.1.2 copied to clipboard

outdated

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 demo app',
      routes: {
        '/': (BuildContext context) => 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,
            ),
          ),
        ),
      );
}
24
likes
0
pub points
74%
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.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on o_popup