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

Pie Chart Center Text fontFamily and fontWeight bug fix and new options centerTextColor and centerTextSize #148

Merged
merged 3 commits into from Aug 27, 2021

Conversation

absar
Copy link
Contributor

@absar absar commented Nov 12, 2020

  • Pie Chart Center Text fontFamily and fontWeight were not working, fixed the bug, now below code should set the font
    PieChartController(centerTextTypeface: TypeFace(fontFamily: 'Roboto', fontWeight: FontWeight.bold));

  • Pie Chart Center Text added new options to customize centerTextColor and centerTextSize, current version was always painting text in Black with 12 font size. After this change if values are provided using PieChartController these will be used, if these are null then current implementation will work with backward compatibility
    PieChartController(centerText: '2020',centerTextColor: AppColors.blue, centerTextSize: 20);
    Change details

@SunPointed If you like the changes, feel free to pull

…ing. Add centerTextColor and centerTextSize to customize Pie Chart
@absar
Copy link
Contributor Author

absar commented Nov 17, 2020

@SunPointed @terrylucas can you guys look into it

@absar
Copy link
Contributor Author

absar commented Feb 17, 2021

Is anyone still maintaining this library or it is dead? @SunPointed @terrylucas

Fix painter_utils.dart Error: The getter 'text' isn't defined for the class 'InlineSpan'
@SunPointed SunPointed merged commit b5514c0 into SunPointed:master Aug 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants