Flutter Configuration

Estimated reading: 1 minute 174 views

Change App Name

  • Go to lib -> utils ->  constants.dart
  • Change YOUR_APP_NAME to your app name
const appName = "YOUR_APP_NAME";

Change Base URL ,Consumer Key, Cusumer Secret Key

  • Go to lib -> utils ->  constants.dart
  • Change YOUR_BASE_URL, CONSUMER_KEY, CONSUMER_SECRET_KEY
const baseUrl = "YOUR_BASE_URL"
const ConsumerKey = "CONSUMER_KEY"; const ConsumerSecret = "CONSUMER_SECRET_KEY";

Change Payment key

  • Go to lib -> utils ->  constants.dart
  • Change RAZOR_PAY_KEY, PAY_STACK_PUBLIC_KEY, RAZOR_PAY_DESCRIPTION
class PaymentKeys {
final String razorKey = "RAZOR_PAY_KEY";
final String payStackPublicKey = "PAY_STACK_PUBLIC_KEY";
final String razorPayDescription = "RAZOR_PAY_DESCRIPTION";
}

Change default language

  • Go to lib -> utils ->  constants.dart
  • Change RAZOR_PAY_KEY, PAY_STACK_PUBLIC_KEY, RAZOR_PAY_DESCRIPTION
class DefaultValues {
final String defaultLanguage = "YOUR_DEFAULT_LANGUAGE_CODE";
}

Change App color

  • Go to lib -> utils ->  colors.dart
  • change COLOR_CODE
const primaryColor = Color(COLOR_CODE);

Leave a Comment

Share this Doc

Flutter Configuration

Or copy link

CONTENTS