popup_window 1.0.0+7 copy "popup_window: ^1.0.0+7" to clipboard
popup_window: ^1.0.0+7 copied to clipboard

outdated

Display A Dialog like Android Native Window, which can display by position in screen.

popup_window #

Screenshot

A library to display a view like window in android native.

Getting Started #

1.Install

dependencies:
  popup_window: ^1.0.0+7

2.Import

import 'package:popup_window/popup_window.dart';

3.Usage

/// windowHeigh = 200;
PopupWindowButton(
  offset: Offset(0, windowHeight),
  /// recommend, use buttonBuilder instead.
  buttonBuilder: (BuildContext context) {
    return PopupWindowBtn();
  },
  /// recommend, use windowBuilder instead.
  windowBuilder: (Widget child, Animation<double> animation,
     Animation<double> secondaryAnimation) {
    return FadeTransition(
      opacity: animation,
      child: SizeTransition(
        sizeFactor: animation,
        child: Container(
          color: Colors.greenAccent,
          height: windowHeight,
        ),
      ),
    );
  },
  onWindowShow: () {
    print('PopupWindowButton window show');
  },
  onWindowDismiss: () {
     print('PopupWindowButton window dismiss');
  },
)

More detail see example: main.dart

16
likes
0
pub points
62%
popularity

Publisher

verified publisherwilin.me

Display A Dialog like Android Native Window, which can display by position in screen.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

cupertino_icons, flutter

More

Packages that depend on popup_window