Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

maxY value title color is not apply true with opacity color. #1680

Open
doanngoctu95 opened this issue Jun 11, 2024 · 2 comments
Open

maxY value title color is not apply true with opacity color. #1680

doanngoctu95 opened this issue Jun 11, 2024 · 2 comments

Comments

@doanngoctu95
Copy link

doanngoctu95 commented Jun 11, 2024

Describe the bug
Hi, I'm using fl_chart for my app, I faced with color of maxY issue. When I defined leftTitles with text color has opacity, it display maxY wrong color ( still right text style).

To Reproduce
This is my code for left side title:

leftTitles: AxisTitles(
          sideTitles: SideTitles(
            showTitles: true,
            interval: intervalY == 0 ? 1 : intervalY,
            getTitlesWidget: leftTitleWidgets,
            reservedSize: 51,
          ),
        ),
Widget leftTitleWidgets(double value, TitleMeta meta) {
    return SideTitleWidget(
      axisSide: meta.axisSide,
      child: Container(
        alignment: Alignment.centerRight,
        child: Text(
          ((value - 10)  / 1000000000).toStringAsFixed(1),
          textAlign: TextAlign.right,
          style: ThemeUtils.textStyle.subText
              .copyColor(ThemeUtils.color.primary10),
        ),
      ),
    );
  }

Screenshots
Screenshot 2024-06-11 at 13 50 24
Screenshot 2024-06-11 at 13 53 29
Screenshot 2024-06-11 at 13 53 39

Versions

  • Flutter version: 3.7.12 stable
  • FlChart version: 0.62.0

Please help or notice me if this bug is fixed on new version or whether it is new bug. Thank for advanced! @imaNNeo

@ksw2000
Copy link

ksw2000 commented Jun 17, 2024

I tested on FlChart version 0.68.0 and did not encounter the issue you mentioned.
Would you be able to try to upgrade FlChart?

@imaNNeo
Copy link
Owner

imaNNeo commented Jun 21, 2024

@doanngoctu95 Can you please answer @ksw2000's question and check it with the latest version?

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