OpenFlutter / flutter_screenutil

Flutter screen adaptation, font adaptation, get screen information
https://pub.dartlang.org/packages/flutter_screenutil
Apache License 2.0
3.88k stars 497 forks source link

Font weight not updating properly #536

Closed miladkhalighi closed 10 months ago

miladkhalighi commented 10 months ago

The font weight is not updating properly; it seems to apply only two different weights. The weights from 100 to 500 appear the same, and weights from 600 to 900 also seem identical.

Text("hello world !", style: TextStyle(fontSize: 20.sp,fontWeight: FontWeight.w100))
Text("hello world !", style: TextStyle(fontSize: 20.sp,fontWeight: FontWeight.w500))
Text("hello world !", style: TextStyle(fontSize: 20.sp,fontWeight: FontWeight.w600))
Text("hello world !", style: TextStyle(fontSize: 20.sp,fontWeight: FontWeight.w900))
miladkhalighi commented 10 months ago

I noticed that is a bug from google fonts package https://github.com/material-foundation/flutter-packages/issues/141