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

outdated

Flutter plugin to help you to use more readable/clear font weight definitions.

TypeWeight #

Since I am not really good remembering font weights by the numbers, and to be honest, even though it wasn't the problem, humane names are better in my opinion. Also, humane names are better when in communication.

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,
            ),
          ),
        ),
      ),
    );
  }
}

License #

MIT © Frenco Jobs

4
likes
0
pub points
39%
popularity

Publisher

verified publisherfrenco.dev

Flutter plugin to help you to use more readable/clear font weight definitions.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on typeweight