Category: Mobile
Flutter iOS: by pass permission pop-up on emulator — integration testing
Install applesimutils (https://github.com/wix/AppleSimulatorUtils) Create new sh file called test_driver.sh and place in project root. Update “YOUR_APPS_BUNDLE_ID_HERE” to your bundle, update permission and iOS-13–6 version if needed. To get device list…
Flutter: run task after widget render
code output
Flutter web experiment
Install https://flutter.dev/docs/get-started/web Use Android Studio, create a new Flutter Application Put the source to lib/main.dart Run-on Chrome and Android Change width of the browser and the layout will change appropriately Try to…
Flutter ios build error diagnose
Error: https://github.com/flutter/flutter/issues/50568 [App.framework] Linked and embedded framework ‘App.framework’ was built for iOS/iOS Simulator Could not build the application for the simulator. Error launching application on iPhone 11 Pro Max. Solve…
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…