Golo - App Flutter
  • Introductions
  • How to install Flutter?
    • Getting Started
  • Config Your App
    • Update app setting (pubspec.yaml )
    • Fetch the packages for the project (important)
    • Update the project name
    • Update the application display name
    • Update API Url
    • Setup Multi-Language
    • Copy Flutter Framework to iOS Folder
  • Support
  • FAQ
    • Can not run on device, but simulator can work well
    • Could not find the built application bundle at build/ios/iphoneos/Runner.app
Powered by GitBook
On this page
  • Laravel
  • WordPress

Was this helpful?

  1. Config Your App

Update API Url

Laravel

Open: lib/modules/services/platform/lara/lara.dart

class Lara extends PlatformBase {
  static const String baseUrlImage = "https://yourdomain/uploads/";

  Lara(): super(){
    baseUrl = "https://yourdomain/api/app";
    type =PlatformType.lara;
  }
}

baseUrlImage: base url to get image

baseUrl: base url to get data

WordPress

Open: lib/modules/services/platform/wp/wp.dart

class WP extends PlatformBase {
  WP() : super() {
    baseUrl = "https://yourdomain/wp-json/wp/v2/";
  }
}

baseUrl: base url to get data

For more REST API Handbook:

PreviousUpdate the application display nameNextSetup Multi-Language

Last updated 3 years ago

Was this helpful?

https://developer.wordpress.org/rest-api/reference/