Beispiel #1
0
        public static void showModalActionSheet(
            Widget child
            )
        {
            var route = new _ModalPopupRoute(
                cxt => child,
                "Dismiss"
                );

            Router.navigator.push(route: route);
        }
Beispiel #2
0
        public static void showModalActionSheet(
            Widget child,
            Widget overlay     = null,
            VoidCallback onPop = null
            )
        {
            var route = new _ModalPopupRoute(
                builder: cxt => child,
                overlayBuilder: overlay == null
                    ? (WidgetBuilder)null
                    : ctx => overlay,
                barrierLabel: "Dismiss"
                );

            Router.navigator.push(route: route).Then(_ => onPop?.Invoke());
        }