typeweight 2.0.2 copy "typeweight: ^2.0.2" to clipboard
typeweight: ^2.0.2 copied to clipboard

Library to help you to use more readable font weight definitions in Flutter.

TypeWeight #

Use more readable font weight definitions in Flutter.

Usage #

Install typeweight as a dependency into your project, then use it in replacement of FontWeight.

Example #

import 'package:flutter/material.dart';
import 'package:typeweight/typeweight.dart';

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'TypeWeight Demo',
      home: Scaffold(
        body: Center(
          child: Text(
            'TypeWeight',
            style: TextStyle(
              fontWeight: TypeWeight.black,
            ),
          ),
        ),
      ),
    );
  }
}
4
likes
160
pub points
46%
popularity

Publisher

verified publisherfrenco.dev

Library to help you to use more readable font weight definitions in Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on typeweight