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,
  ),
);

Libraries

stylo