popup_window

Creator: coderz1093

Last updated:

0 purchases

popup_window Image
popup_window Images
Add to Cart

Description:

popup window

popup_window #

A library to display a view like window in android native.
Getting Started #
1.Install
dependencies:
popup_window: ^1.1.2
copied to clipboard
2.Import
import 'package:popup_window/popup_window.dart';
copied to clipboard
3.Usage

/// call directly
showWindow<T>(
context: context,
position: position, /// RelativeRect
duration: widget.duration,
windowBuilder: widget.windowBuilder,
onWindowShow: widget.onWindowShow,
onWindowDismiss: widget.onWindowDismiss);

or

/// windowHeigh = 200;
PopupWindowButton(
offset: Offset(0, windowHeight),
buttonBuilder: (BuildContext context) {
return PopupWindowBtn();
},
windowBuilder: (BuildContext context, 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');
},
)
copied to clipboard
More detail see example: main.dart

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.