stylo 1.0.0
stylo: ^1.0.0 copied to clipboard
Stylo is a Flutter package that provides predefined text styles for quick and consistent text formatting in your app. With five customizable themes, you can easily adjust font size, weight, family, an [...]
Stylo - A Flutter Text Style Package #
Stylo is a Flutter package that simplifies text styling by providing a set of predefined, customizable text styles. These styles are designed to reduce boilerplate code and offer consistent, reusable themes for text widgets in your Flutter apps.
Features #
Predefined Text Styles: Offers five predefined text styles (style1, style2, etc.). Customization Options: Easily customize properties like font size, font weight, font family, and color. System Font Support: Uses the default system font unless a custom fontFamily is specified. Consistency: Helps maintain a cohesive look across your app with minimal effort.
How It Works #
Stylo provides five text styles that you can use in your Text widgets. These styles have default values for font size, weight, and color, but you can override these values to suit your design needs. The package uses Flutter’s built-in system fonts by default, so there's no need to download or import any external fonts unless you choose to.
Available Styles #
-
style1:
- Font size:
14.0
- Font weight:
FontWeight.w600
- Font size:
-
style2:
- Font size:
16.0
- Font weight:
FontWeight.normal
- Font size:
-
style3:
- Font size:
18.0
- Font weight:
FontWeight.bold
- Font size:
-
style4:
- Font size:
20.0
- Font weight:
FontWeight.w300
- Font size:
-
style5:
- Font size:
22.0
- Font weight:
FontWeight.w900
- Font size:
How Use #
Text(
'Styled Text',
style: Stylo.style1(
),
);
with customizing #
Text(
'Styled Text',
style: Stylo.style1(
fontSize: 16.0,
color: Colors.red,
fontWeight: FontWeight.w700,
),
);