How to downgrade flutter version when installed by snap
Submitted by stephenwenceslao on Fri, 08/11/2023 - 17:48cd $HOME/snap/flutter/common/flutter
git checkout v2.10.5
cd $HOME/snap/flutter/common/flutter
git checkout v2.10.5
Debian 11 Bullseye
1. After installing the OS, Update the /etc/apt/sources.list
deb http://deb.debian.org/debian bullseye main deb-src http://deb.debian.org/debian bullseye main deb http://deb.debian.org/debian-security/ bullseye-security main deb-src http://deb.debian.org/debian-security/ bullseye-security main deb http://deb.debian.org/debian bullseye-updates main deb-src http://deb.debian.org/debian bullseye-updates main deb http://ftp.hk.debian.org/debian sid main non-free-firmware
2.
Sudo apt update
to update the sources
3.
Fix using
installed telephony version 0.1.1
flutter version 2.10.3
Uploading flutter android sdk 31 version makes an error on google play store.
You uploaded an APK or Android App Bundle which has an activity, activity alias, service or broadcast receiver with intent filter, but without 'android:exported' property set. This file can't be installed on Android 12 or higher. See: developer.android.com/about/versions/12/behavior-changes-12#exported
memory leak error/warning
This error might indicate a memory leak if setState() is being called because another object is retaining a reference to this State object after it has been removed from the tree. To avoid memory leaks, consider breaking the reference to this object during dispose().
Just add this line of code before calling the setstate.
if (!mounted) { return; } // your setState here
I have spent so many hours just to figure this out. I use wss(secure) for my django websocket. Ive realized that using firebase and firecamp is working perfectly, but in my flutter app websocket connect it does not work. arggg, spending many hours working this error (I initially dont know why the heck is this).
Adding this piece of code in the main.dart file fix my issue. :)
It cause warning error because because of building the widget when the entire widget is not yet build. I added this certain code to wait, after it will rebuild the widget I created in initState.
Add this line of code inside your stream listen function, under initState.
Here is my 2nd flutter(version 2.2.1) app repo: https://github.com/boilinux/flutter-spending-tracker
Here is my flutter(version 2.2.1) first app repo: https://github.com/boilinux/flutter-my-first-app
Base on youtube tutorial.
source: https://www.youtube.com/watch?v=x0uinJvhNxI