In the attached image, all text elements share the same font family and size settings. However, the font weights vary. Notably, the phrase "Sunny, What's on your mind?" positioned in the middle of the screen appears significantly larger than its designated size of 14 compared to all the other fonts on screen which have also been defined a value of 14. I'm seeking advice on how to resolve this issue and an explanation for the observed size discrepancy. #FlutterQuery
Tried to assign size 14 which is looking bigger then all the other text which have also been defined a size of 14.
By default, Flutter itself gives some text styling to all elements that you use in UI. You can override them by just adding some more lines in your
ThemeData()
class in your main.dart.For example:
Now all texts in any scaffolds appbar title will get size 20, unless you change it directly in
Text("", style: TextStyle(fontSize: 15))
itself. Hope I got you correct and helped.