2

I'm having a weird issue changing page titles when using getx routing and navigation.

Screenshot of the page title issue:

enter image description here

im using this code to change page title :

void setPageTitle(String title, BuildContext context) {
      SystemChrome.setApplicationSwitcherDescription(ApplicationSwitcherDescription(
      label: title,
      primaryColor: Theme.of(context).primaryColor.value, // This line is required
    ));
}

and it only happens when im using :

Get.toNamed(pageRoute);

this issue doesn't appear when im using :

Get.OffAllNamed(pageRoute);
Pawara Siriwardhane
  • 1,873
  • 10
  • 26
  • 38
Dev Medo
  • 21
  • 3
  • I am unsure how to solve this but it likely only appears when using `Get.toNamed()` rather than `Get.offAllNamed()` because `offAllNamed()` pops the back stack, assuming that LogIn/Register was the previous page in the gif you shared. – Amxela Nov 04 '21 at 17:42
  • you are right, either login or register is the previous page but i still cant figure out a solution – Dev Medo Nov 07 '21 at 12:09

0 Answers0