Closed simplenotezy closed 1 year ago
CustomRoute(
page: SomeScreen,
customRouteBuilder: dismissablePageRouteBuilder,
);
import 'package:dismissible_page/dismissible_page.dart';
Route<T> dismissablePageRouteBuilder<T>(
BuildContext context,
Widget child,
CustomPage<T> page,
) {
return TransparentRoute<T>(
builder: (_) => child,
backgroundColor: Colors.transparent,
transitionDuration: Duration(milliseconds: 250),
reverseTransitionDuration: Duration(milliseconds: 250),
settings: page,
);
}
Thanks for a super sweet package - well done!
I was wondering if you could provide an example of how it would be possible to push using AutoRoute?
It works, partly, without using AutoRoute, however, I have a listener on
AppRouter
in my application, and that is not getting triggered when usingNavigator