Bravo Mart

View Categories

API Base URL Setup

< 1 min read

To communicate with your backend server, you need to configure the Base URL in your Flutter app. Here’s how to do it the right way:

Locate api_urls.dart #

Navigate to:

lib/config/api_urls.dart

Set the Base URL #

Update your api_urls.dart file with your actual API base URL:

class ApiUrls {
static const String baseUrl = "https://yourdomain.com/api/";
}

⚠️ Important: Always end your base URL with a trailing slash / to avoid request path issues.

#





Leave a Reply