Flutter Configuration

Estimated reading: 2 minutes 129 views

Change App Font

1. In the main directory go to the fonts folder and adding font ttf files.

2. After adding ttf file in fonts folder open pubspec.yaml file and adding your ttf file.

 

3. Click in to pub get.

4. Open main.dart file and change fontFamily value.

Manually Change App Colors

In Main directory goto the utils folder and open AppColors.dart file  and Change Color code.

Change your base URL

  • Open lib/utils/constants.dart file and change mBaseUrl variable value with your domain.

Setup Onesignal push notification

  1. Create a OneSignal Account

      Follow below steps

  • Click on to New App/Website button.
  • Enter the App/website name in AppName Field.
  • Select one platform configure, for Example(iOS,Android,Web push).
  • After Select Any One platform to configure. we can get Firebase Server Key and Firebase Sender Id. If you can select the iOS platform then you can require the production Push Certificate.(.p12 Certificate) and then get the Firebase server Key. Then Click on Save Button.
  • After getting the Firebase Server key and Sender ID. Goto the firebase app and on the left side you see Project overview and settings click on it and select Project Settings. and In Setting. select Cloud messaging. and Enter Server Key and Sender ID and at the end Click into Save Button.
  1. Configure OneSignal on App
  • We have already added code for SDK and other configurations for one signal push notification. Open lib/utils/constants.dart file and replace your OneSignal app ID with mOneSignalAPPKey.
  • For Android and iOS:-
    Follow instructions for OneSignal Configure Here.

Leave a Comment

Share this Doc

Flutter Configuration

Or copy link

CONTENTS