0

I am in new Flutter development, what I want to implement is : To post data to the server from A screen, and wait for the response in B screen

example: When a user types the words/keywords in the Search Page, I want to make a POST request and wait for the response of that request in the Result Page

I am using library: https://pub.dev/packages/http

3
  • could you add some more information on what you are trying to do and what you already tried? Commented Aug 29, 2020 at 13:02
  • @McSlinPlay, So far, I am making a post request from the Search Page, waiting for the response and then starting the Result Page along with passing the data to it as well and it's working fine. But what I want is, to make a request then go the Result Page and then wait there for the response. Commented Aug 29, 2020 at 13:25
  • Edit your post to include 1) What you have tried, 2) your Code for what you have tried so far, 3) Add more detail and show code where you are trying to post from and receive from. Commented Aug 29, 2020 at 14:17

1 Answer 1

0

Check my answer on how to use http for API calls here. how to fix it Data not showing in list in flutter To get the results on the second add the parameters you enter to the Route in navigation and execute the API call function in the second screen

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.