ExtraWeightTextStyle is a Flutter TextStyle extension that allows you to apply customizable extra thickness to any text. It enhances the visual weight and emphasis of your text without requiring heavier fonts or altering the layout.
Perfect for headings, banners, or any display text where you want a bolder, more impactful appearance—without relying on custom fonts or additional styling layers.
✨ Features
- 📏 Add extra thickness to any text using the
extraBoldproperty (range:0.0to1.0) - 🎨 Works with all other
TextStyleproperties like color, shadows, and font size - 🔧 Lightweight, plug-and-play customization
Getting started
Installation
Add the package to your pubspec.yaml:
dependencies:
extra_weight_text_style: ^1.0.0
Usage
To use this package, simply replace TextStyle with ExtraWeightTextStyle.
It supports all the default TextStyle properties, along with an additional extraBold property to increase the visual thickness of the text.
import 'package:flutter/material.dart';
import 'package:extra_weight_text_style/extra_weight_text_style.dart';
class DemoText extends StatelessWidget {
@override
Widget build(BuildContext context) {
return const Center(
child: Text(
'Extra Bold!',
style: ExtraWeightTextStyle(
fontSize: 36,
fontWeight: FontWeight.bold,
color: Colors.deepPurple,
extraBold: 0.8, // Range from 0.0 to 1.0
),
),
);
}
}
Additional information
You can feel the difference
