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

Paint not aligning with Row/Column #74

Closed
SaadArdati opened this issue Sep 28, 2019 · 3 comments
Closed

Paint not aligning with Row/Column #74

SaadArdati opened this issue Sep 28, 2019 · 3 comments
Labels
bug Something isn't working

Comments

@SaadArdati
Copy link

2019-09-28_23-01-37

 if (data.isNotEmpty)
              Padding(
                padding: const EdgeInsets.only(left: 8, right: 8, bottom: 20),
                child: Container(
                  width: double.infinity,
                  height: 300,
                  decoration: BoxDecoration(
                      borderRadius: BorderRadius.circular(10),
                      border: Border.all(
                          color: validateAddedDates && _calendarro.selectedDates.isEmpty
                              ? Colors.red
                              : Theme.of(context).primaryColor,
                          width: 2)),
                  child: AbsorbPointer(
                    absorbing: lock,
                    child: Padding(
                        padding: const EdgeInsets.all(8.0),
                        child: FlChart(
                          chart: PieChart(
                            PieChartData(
                              pieTouchData: PieTouchData(
                                  enableNormalTouch: false, touchResponseStreamSink: pieTouchedResultStreamController.sink),
                              centerSpaceRadius: 40,
                              sections: showingSections,
                            ),
                          ),
                        )),
                  ),
                ),
              )```
@SaadArdati SaadArdati changed the title Paint not aligning with Row Paint not aligning with Row/Column Sep 28, 2019
@SaadArdati
Copy link
Author

Adding a Container around the chart seems to fix it...
image

@imaNNeo
Copy link
Owner

imaNNeo commented Sep 28, 2019

Hi, I got the problem, but please handle it with container just now,
I will fix it later, I'm so busy these days :)
and also I really appreciate your Pull Requests.
try to fix it, it helps me and the open-source community.
Thanks!

@imaNNeo imaNNeo added the bug Something isn't working label Sep 28, 2019
imaNNeo added a commit that referenced this issue Oct 3, 2019
@imaNNeo
Copy link
Owner

imaNNeo commented Oct 3, 2019

Hi, I set a default size for the FL Chart, btw as you know, you need to provide your needed size by a Container.
fixed in 0.3.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants