title: Flutter - How manage TextStyle in one file 'text_style.dart' function to call in another view?
body: <p>I want to create a custom TextStyle with some constructors such as Color and fontWeight, so later in the screen view the style for the font and size is fixed, but only the color and fontweight can be customized,</p>
  
  <pre><code>    class TextStyles {
    final Color fontColor;
  
    const TextStyles({
      this.fontColor = Colors.black;
    });
  
    static const TextStyle buttonText = const TextStyle(
        fontFamily: 'Montserrat',
        color: fontColor,
        fontWeight: FontWeight.w700,
        fontSize: 14.0
    );
  }
  
  class CustomButton extends StatelessWidget {
    ....
    final Function onPressed;
  
    const CustomButton({
      Key key,
     ...
      @required this.onPressed,
      this.textSize = 14.0,
    }) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      final CreateBlueButton = FlatButton(
          color: background,
          child: Text(
            text,
            style: TextStyleCustom,
          )
      );
  
      return Container(
        constraints: BoxConstraints.expand(height: 53),
        ...
  </code></pre>