sk_utils 0.0.2 sk_utils: ^0.0.2 copied to clipboard
sk_utils is a very usefull package that contains class like NavX thta makes it easy to navigate with transitions and biolerplate codes.
sk_utils contains NavX class that helps you to easily navigate to other pages without writing long boilerplate code.It also adds transitions including slide and fade and you can also add custom duration as per your need.
NavX(context).to(const Second(), NavXTransition.slideUp(), 1000); //slides up
NavX(context).to(const Second(), NavXTransition.slideAside(), 1000); //slides aside
NavX(context).to(const Second(), NavXTransition.fade(), 1000); //fades
NavX(context).toEnd(const Second(), NavXTransition.slideUp(), 1000); //slides up and remove all previous routes
NavX(context).toEnd(const Second(), NavXTransition.slideAside(), 1000);//slides aside and remove all previous routes
NavX(context).toEnd(const Second(), NavXTransition.fade(), 1000); //fades and remove all previous routes
NavX.back(context); //goes back