본문 바로가기
개발/Flutter

In flutter, Making 2 page with 1 GetXController

by dev_caleb 2022. 9. 6.
728x90

If you make the App like instagram. sometimes you would like to 2 page with 1 GetXController.

 

For example,

A profilePage -> follower List page -> B profilePage

 

in this time A profilePage and B profilePage are made in same page (Profile page) and same controller .

 

the solution is here.

https://stackoverflow.com/questions/69018689/flutter-getx-how-navigate-to-different-views-with-same-controller-class-using

 

Flutter: GetX - How navigate to different Views with same Controller class using Get.toNamed()?

I am trying to implement GetX navigation within the below code: import 'package:flutter/material.dart'; import 'package:get/get.dart'; void main() => runApp(MyApp()); class MyApp extends

stackoverflow.com

 

728x90