stylo 1.0.0 copy "stylo: ^1.0.0" to clipboard
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
  • style2:

    • Font size: 16.0
    • Font weight: FontWeight.normal
  • style3:

    • Font size: 18.0
    • Font weight: FontWeight.bold
  • style4:

    • Font size: 20.0
    • Font weight: FontWeight.w300
  • style5:

    • Font size: 22.0
    • Font weight: FontWeight.w900

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,
  ),
);
1
likes
130
points
40
downloads

Publisher

unverified uploader

Weekly Downloads

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, and color to suit your needs. Simplify text styling and create a cohesive design system with minimal effort. Perfect for building beautiful, consistent UIs faster!

Homepage

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on stylo