Tag: flutter
Flutter Integrate OneSignale Push Notification
First step: Get iOS cert (mobileprovision + .p12) NOTE: iOS emulator can NOT get push notification Config on website Login to https://console.firebase.google.com/ Create new project At Project Overview -> Go to…
Flutter transparent iOS background keyboard when it open
About keyboard issues: Can scroll manually when keyboard opened Can scroll automatically by a focus on next input Avoid showing a background of the keyboard in a little second when it…
Flutter base model approach
For fetch data from the internet https://flutter.dev/docs/cookbook/networking/fetch-data In the official docs, they guide to use factory fromJson but when use in a large project, I realize that way is not…
[Newbie] Chapter 5. Basic tickets
[Newbie] Chapter 1. Flutter overview [Newbie] Chapter 2. Flutter getting started [Newbie] Chapter 3. Flutter initial setup [Newbie] Chapter 4. Widget’s state Content Work with asset files (image, font, files)…
Flutter detect memory pressure
Using https://api.flutter.dev/flutter/widgets/WidgetsBindingObserver/didHaveMemoryPressure.html We need to extend WidgetsBindingObserver and override didHaveMemoryPressure method Use dev tool to investigate OOM deeply: https://flutter.dev/docs/development/tools/devtools/memory Some case related OOM by Image, you can clear cache in…
Flutter singleton separate approach
Singleton Normal class Avoid use factory to override default constructor, the source can be not transparent. Here the approach singleton using Factory
Flutter OneSignal example snipcode
SDK: https://documentation.onesignal.com/docs/flutter-sdk Github: https://github.com/OneSignal/OneSignal-Flutter-SDK Sample code Get player id Remember user OneSignal.shared instead of OneSignal()
[Newbie] Chapter 4. Widget’s state
[Newbie] Chapter 1. Flutter overview [Newbie] Chapter 2. Flutter getting started [Newbie] Chapter 3. Flutter initial setup Content Widget lifecycle State management approach Widget’s lifecycle Flutter has two types of…
[Newbie] Chapter 3. Flutter initial setup
[Newbie] Chapter 1. Flutter overview [Newbie] Chapter 2. Flutter getting started Content Config to App Center CI config App splash screen App launcher App version and env Config to App…