jonataslaw / getx

Open screens/snackbars/dialogs/bottomSheets without context, manage states and inject dependencies easily with Get.
MIT License
10.42k stars 1.63k forks source link

How do I use Get.toNamed('/nextpage'); in conjunction with animations for OpenContainer use? #3257

Open BrotherPeng opened 1 week ago

BrotherPeng commented 1 week ago

OpenContainer( openBuilder: (context, closedContainer) { return MyPage(); // }, openColor: Theme.of(context).cardColor, onClosed: (success) {}, closedShape: const RoundedRectangleBorder( borderRadius: BorderRadius.all(Radius.circular(4)), ), closedColor: Theme.of(context).colorScheme.primary, closedElevation: 2, closedBuilder: (context, openContainer) { return InkWell(

                      onTap: () {
                        openContainer();
                         // Get.toNamed('nextpage?a=1&b=2');
                      },

GetPage( name: _Paths.MYPAGE, page: () => const MyPage(), binding: MyPageBinding(), ),

OpenContainer in openBuilder returned MyPage, openContainer(); open this page, I need to use Get to manage page routing jumps as well as url parameters, please help me, bind get