How to Access URL Parameters in FlutterFlow After Redirect from API Call

Hello FlutterFlow Community,

I'm working on integrating an external API with a ReactJS page in my FlutterFlow application. The scenario involves a login button that, when clicked, triggers a POST request to the API. The request body is structured as follows:

{
  "responseType": "CD",
  "clID": "rbxaBXzCcLzBhf6G5hvTA",
  "redirectURL": "http://localhost://home",
  "scope": "",
  "state": "uniqueValue"
}

After the API successfully processes the request, it redirects to a specified URL (in this case, "http://localhost://home") with additional parameters in the URL, such as a "CD" value that I need to capture and use within my FlutterFlow application.

My question is: How can I access these URL parameters within FlutterFlow after the redirect? Are there specific widgets or methods in FlutterFlow that allow for capturing URL parameters post-redirect, especially in a web app context?

Any guidance, tips, or references to documentation on handling URL parameters post-API redirect in FlutterFlow would be immensely helpful.

Thank you in advance for your assistance!

5
3 replies