0

First I have to say I'm new to the Flutter and related technologies. Resonantly I have started working with opensource Flutter project. I faced this problem during setup the project in my local environment. In the README section this step described as follows,

Configure the lib/config.dart using the format provided in lib/config_example.dart.

So as they said I have created new file inside the lib directory called config.dart and added the code snippet from the mentioned example folder.

const String API_BASE_URL = "";

Now what the problem is I don't know what should I add to the API_BASE_URL I have refereed internet and slimier stack overflow questions but still unable to find an answer. Any help will be greatly appreciated.

4
  • This variable is for url to your backend (rest api usually/firebase). If you dont have backend you dont need this variable. Commented Apr 14, 2020 at 7:30
  • @KirillMatrosov I do have firebase backend but how can I find this URL Commented Apr 14, 2020 at 7:36
  • 1
    read documentation for firebase Commented Apr 14, 2020 at 7:39
  • @KirillMatrosov I do but itis huge unable to find my solution Commented Apr 14, 2020 at 9:36

1 Answer 1

1

For implementing firebase in a flutter, you must require google-services.json file in the project.
Check out this for the implementation of a firebase and this for configuration in flutter for better understanding.

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

2 Comments

I have already downloaded google-services.json. Thanks for the answer plese can you specify where can I found my API_BASE_URL then I can accept the answer
simply while implementing network-based API in the application, there is a main base API URL through all data that comes to the app. firebase googleservice.json itself takes care of all this there is no need for API_BASE_URL required to set in the project. I guess You have gone through the improper reference, this below link will surely help to get a perfect idea of firebase implementation. medium.com/47billion/…

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.