Flutter google_fonts package doesn't match for roboto flex font

Viewed 24

Flutter doesn't render robotoFlex fonts Font weights Example Bold, W600, W700, W800, W900,

I'm using google_fonts for my project, I don't know what's wrong. Its working fine with other fonts like GoogleFont.lato and other

font comparison

                                  child: Text(
                                    'GoogleFonts.lato',
                                    style: GoogleFonts.lato(
                                        textStyle: const TextStyle(
                                      fontSize: 17,
                                    )),
                                  ).pV(5).pH(20),
                                ),
                                Center(
                                  child: Text(
                                    'This is GoogleF.lato',
                                    style: GoogleFonts.lato(
                                        textStyle: const TextStyle(
                                            fontSize: 26,
                                            fontWeight: FontWeight.w900)),
                                  ).pV(5).pH(20),
                                ),
                                Center(
                                  child: Text(
                                    'This is GoogleF.lato',
                                    style: GoogleFonts.lato(
                                        textStyle: const TextStyle(
                                            fontSize: 26,
                                            fontWeight: FontWeight.bold)),
                                  ).pV(1).pH(20),
                                ),
                                const SizedBox(
                                  height: 35,
                                ),
                                Center(
                                  child: Text(
                                    'GoogleFonts.robotoflex',
                                    style: GoogleFonts.robotoFlex(
                                        textStyle: const TextStyle(
                                      fontSize: 17,
                                    )),
                                  ).pV(5).pH(20),
                                ),
                                Center(
                                  child: Text(
                                    'This is GoogleF.RobotoFlex',
                                    style: GoogleFonts.robotoFlex(
                                        textStyle: const TextStyle(
                                            fontSize: 26,
                                            fontWeight: FontWeight.w900)),
                                  ).pV(1).pH(20),
                                ),
                                Center(
                                  child: Text(
                                    'This is GoogleF.RobotoFlex',
                                    style: GoogleFonts.robotoFlex(
                                        textStyle: const TextStyle(
                                            fontSize: 26,
                                            fontWeight: FontWeight.bold)),
                                  ).pV(1).pH(20),
                                ),

outPut Here you can see the difference google.lato font renders the font weight but roboto doesn't

0 Answers
Related