Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/frencojobs/typeweight

More readable font weights for Flutter.
https://github.com/frencojobs/typeweight

flutter

Last synced: about 1 month ago
JSON representation

More readable font weights for Flutter.

Awesome Lists containing this project

README

        

# 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

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