I use 20 MB of text as String data inside a flutter Text() widget, But it did not increase the release app size.
APK size before adding 20MB of text data = 5.4MB
APK size After adding 20MB of text data = 5.4MB
(Note:- text data is not an unused value, It's used inside a flutter Text() widget)
Can I know, how flutter source code compression works or any information about this?
My guess is that the Dart language, and by extension Flutter, use powerful data compression algorithms that are built into the language by default, but there are also additional plugins.
All I could find:
Maybe with the help of this information you will find what you are looking for. And by the way, compare the sizes of installed applications, for sure an application with 20 MB of text will weigh more in its installed form.
Example code of powerful compression:
Output:
Original 1300000 bytes
Compressed 2572 bytes
Decompressed 1300000 bytes