Call a page using Custom Actions

Hello friends.

I'm making a personalized qrcode reader using Custom Actions for a client, so far so good, but I needed to add a button to call a page already created in FlutterFlow, but I've already tried the call codes and I'm not able to call the given page. Could you please help me with this part?

I have already used the following codes:

Code01

ElevatedButton(

onPressed: () async {

Navigator.of(context).pop();

// Replace 'ApiListView' with the correct name of the route you want to navigate

Navigator.of(context).pushNamed('ApiListView');

},

style: ElevatedButton.styleFrom(

primary: Colors.white,

onPrimary: Colors.black,

),

child: Text("My Code"),

),

Code02

ElevatedButton(

onPressed: () async {

FFNavigator.pushNamed(context, 'ApiListView');

},

style: ElevatedButton.styleFrom(

primary: Colors.white,

onPrimary: Colors.black,

),

child: Text("My Code"),

),

I thank everyone for your attention.

1
1 reply