Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/frencojobs/typeweight
- Owner: frencojobs
- License: mit
- Created: 2020-04-23T16:43:15.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2023-02-05T06:34:21.000Z (about 2 years ago)
- Last Synced: 2024-11-15T10:32:20.655Z (3 months ago)
- Topics: flutter
- Language: C++
- Homepage: https://pub.dev/packages/typeweight
- Size: 349 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
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,
),
),
),
),
);
}
}
```