Skip to content Skip to sidebar Skip to footer

How to remove all previous routes - Flutter GetX



I have a simple Flutter app and I want to remove all previous routes but I want to do with GetX, How to do that?

Isue

Now it works with

Navigator.of(context).pushNamedAndRemoveUntil('/home', (Route route) => false);

Solution


Get.offAll(()=> Home());

of with namedRoutes:
 
Get.offAllNamed(()=>'/home');

Jaka Surya
Jaka Surya Mobile Developer Flutter

Post a Comment for "How to remove all previous routes - Flutter GetX"