IssueRaiser

Bug with font weight when using GoogleFonts.xxxTextTheme?

I can use only 2 font weight if I set it as textTheme. ## Code ``` dart import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( textTheme: GoogleFonts.mitrTextTheme(), ), home: Scaffold( body: SafeArea( child: Container( constraints: BoxConstraints.expand(), child: Row( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Column( children: <Widget>[ Text('w100', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w100)), Text('w200', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w200)), Text('w300', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w300)), Text('w400', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w400)), Text('w500', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w500)), Text('w

Posted by aliceblock on Dec 24, 2019, 5:40 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments

github (Other)

Bug with font weight when using GoogleFonts.xxxTextTheme?

aliceblockDec 24, 2019, 5:40 PM

I can use only 2 font weight if I set it as textTheme. ## Code ``` dart import 'package:flutter/material.dart'; import 'package:google_fonts/google_fonts.dart'; main() => runApp(MyApp()); class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return MaterialApp( theme: ThemeData( textTheme: GoogleFonts.mitrTextTheme(), ), home: Scaffold( body: SafeArea( child: Container( constraints: BoxConstraints.expand(), child: Row( mainAxisAlignment: MainAxisAlignment.center, children: <Widget>[ Column( children: <Widget>[ Text('w100', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w100)), Text('w200', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w200)), Text('w300', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w300)), Text('w400', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w400)), Text('w500', style: GoogleFonts.mitr( fontSize: 18.0, fontWeight: FontWeight.w500)), Text('w

Comments (0)

No comments yet. Start the discussion.

Comment on this issue