How to support text size accessibility in Flutter like Android sp size and iOS Dynamic Type

Posted by Andre Scott | Updated on

How to support text size accessibility in Flutter like Android sp size and iOS Dynamic Type. Flutter has accessibility support for larger fonts built in by default. You can override this behavior by specifying a textScaleFactor, which Flutter normally uses to apply the user selected text size.

You can test this by comparing two Text widgets, the second one with textScaleFactor set to 1.0. The default font size for both of them is 14.0 logical pixels.


If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.

Related Questions & Answers