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
- struct's lifetime requirements can be bypassed via covariant field assignment
- Proposal to Reorganize the Moderation Team and Review Moderation Policies
- Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
- proposal: container/...: generic collection types
- Better Custom Endpoint BYOK
- A concrete policy for backward compatibility until Godot 5.0
Raise real-world problems, find people facing the same issue, and discuss solutions.3,500 issues0 comments
github (Other)
struct's lifetime requirements can be bypassed via covariant field assignment
Proposal to Reorganize the Moderation Team and Review Moderation Policies
Progressive FPS degradation appears to be related to dota2.com — blocking the domain prevents the performance loss
proposal: container/...: generic collection types
Better Custom Endpoint BYOK
A concrete policy for backward compatibility until Godot 5.0
New MTP models not supported
Tracking: 429 / Capacity Issues
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
Comments (0)
No comments yet. Start the discussion.