Skip to content

update text style on line 127 function _convertTextStyle #10

Description

@Tadix
  TextStyle _convertTextStyle(
      bool isHidden, BuildContext context, common.TextStyleSpec? textStyle) {
    Color? color = textStyle?.color != null
        ? ColorUtil.toDartColor(textStyle!.color!)
        : null;
    if (isHidden) {
      // Use a default color for hidden legend entries if none is provided.
      color ??=  Theme.of(context).textTheme.bodyLarge!.color; // here replace "body1" by bodyLarge on somme new parameters
      color = color!.withOpacity(0.26);
    }

    return new TextStyle(
        inherit: true,
        fontFamily: textStyle?.fontFamily,
        fontSize: textStyle?.fontSize != null
            ? textStyle!.fontSize!.toDouble()
            : null,
        color: color);
   }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions