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

Replased containerRenderBox.size to containerRenderBox.constraints.biggest #110

Merged
merged 2 commits into from
Nov 20, 2019

Conversation

jamesblasco
Copy link
Contributor

Fix issue 100.

RenderBox.size should not be used when building the layout.

@@ -86,7 +86,7 @@ class BarChartState extends AnimatedWidgetBaseState<BarChart> {
},
child: CustomPaint(
key: _chartKey,
size: getDefaultSize(context),
size: chartSize,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the delay.
Please do not change this line, we set the default size it means if it has not any size constrains, it uses this default size (It will be ignored if we provide a size for it) then let it be like before, it is working properly.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okey i will remove that. I cant do it in the following days. After monday

@@ -91,7 +91,7 @@ class LineChartState extends AnimatedWidgetBaseState<LineChart> {
},
child: CustomPaint(
key: _chartKey,
size: getDefaultSize(context),
size: chartSize,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here.

@@ -87,7 +87,7 @@ class PieChartState extends AnimatedWidgetBaseState<PieChart> {
},
child: CustomPaint(
key: _chartKey,
size: getDefaultSize(context),
size: chartSize,
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And here.

@imaNNeo imaNNeo changed the title Replazed containerRenderBox.size to containerRenderBox.constraints.biggest Replased containerRenderBox.size to containerRenderBox.constraints.biggest Nov 14, 2019
@imaNNeo
Copy link
Owner

imaNNeo commented Nov 16, 2019

Helooo?

@daniel-mf
Copy link

Could we have this merged please?
Thanks guys for the good work!

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.

Updating from 0.3.3 to 0.4.1, it breaks my charts (LineChart and PieChart)
3 participants