Below you will find pages that utilize the taxonomy term “flutter”
Posts
Integrate device_preview, bot_toast and getx
void main() => runApp( DevicePreview( enabled: !kReleaseMode, builder: (context) => MyApp(), // Wrap your app ), ); class MyApp extends StatelessWidget { final botToastBuilder = BotToastInit(); @override Widget build(BuildContext context) { return GetMaterialApp.router( useInheritedMediaQuery: true, locale: DevicePreview.locale(context), builder: (context, child) { child = DevicePreview.appBuilder(context, child); child = botToastBuilder(context, child); return child; }, theme: ThemeData.light(), darkTheme: ThemeData.dark(), home: const HomePage(), ); } } Reference: https://pub.dev/packages/bot_toast
https://stackoverflow.
Posts
Unable to upload Crashlytics dSYM file during build phase of a flutter project due to script error
Recently I added Crashlytics into my project on Oct 25, 2022. I encountered this issue and spent a while to fix it. Today I had to figure out how to do it again, and spent a while. I hated to do that again, so here is this article.
The key message is the first one below. It is quite misleading and lead me to wrong direction to change DEBUG_INFORMATION_FORMAT.
Posts
Install release version of mobile application into iOS without testflight
Last three days, I found an issue can only be reproduced in realease mode.The beta testing cycle via testflight takes too long and it definitely is not the option. I debugged my application in iOS before. One thing popped up in my mind whether I can put release mode of my application into iOS using the debug tool of vs code.
I changed my launch.json as below in my project and debug my application.
Posts
debug flutter iOS application in MacOS
iPhone Enable developer mode:
Setting -→ PPrivacy & Security -→ Developer Mode
IDE Android Studio It is quite straight forward in Android Studio.
Install flutter plugin and restart Android studio
VSCode select the Run and Debug icon in the Activity Bar
Select "Dart & Flutter" in "RUN AND DEBUG" dropdown list Edit flutter iphone setting Change launch.
Posts
Unit test and widget test in flutter
It is quite easy to refactor code using IDEs, however it will be a different story considing to refactor to testable code.
Concerns The refactor functionality in IDE is based on rigor theories and algorithm to make sure the refactors don’t change the behaviours of programs and get it better organized. One of the theories, can be found here
Target Refactor code to testable codes following best practices.
Posts
How to resolve podfile dependency issues of google_mobile_ads in flutter
There are 27 issues with podfile dependency issues of google_mobile_ads in its repository googleads-mobile-flutter at github Here you can find those issues. My team encountered this issue in the past weeks. Today I had the issue again. To save my time in future, I kept my approach here this time.
Use the following search keywords in cs.github.com
path:pubspec.yaml google_mobile_ads firebase_analytics
locate a good candidate with appropriate version of combinations of the following components.
Posts
conditional compiling in flutter project
In the last week, I intermittently worked on how to compile a flutter project conditionally like the way c/c++ in busy daily work schedules. I knew that flavor is the way to go, however there are still serveral issues opened to explore to make it better or to understand the rationale behind the scene.
Dependency Injections using get_it and injectable: Tree Shaking Capability
Pack only neccessary components into the mobile app:
Posts
Run a flutter app on Windows Subsystem for Android
Keep WSA running WSA seems sometimes will exit after a while idle time. I need to run the following command to keep it running.
adb connect YOUR_IP_ADDRESS Run App According to How to use Windows Subsystem for Android as a development tool, there are several ways to run flutter apps in WSA.
Android studio When I try to run a project of my company in Android studio, I kept get the error "An unexpected packet was received before the handshake".