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

lineTouchData的问题 #145

Closed
jacky-yanglei opened this issue Dec 25, 2019 · 10 comments
Closed

lineTouchData的问题 #145

jacky-yanglei opened this issue Dec 25, 2019 · 10 comments
Labels
Line Chart question Further information is requested

Comments

@jacky-yanglei
Copy link

在触摸出现提示这个问题时会有bug,如果外层有元素包裹切设置了padding 这个触摸会有向右偏移的问题。这个问题怎么避免?
image

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 25, 2019

Please speak English,
Thanks!

@jacky-yanglei
Copy link
Author

There will be a bug when the touch prompts this problem. If the outer layer has element wrapping and cutting setting padding, the touch will have a right offset problem. How to avoid this problem?
image

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 25, 2019

Can you please provide me a sample code to reproduce it?
and which version are you using?

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 25, 2019

Please use the latest version (now is 0.6.0), and put the code in a file or shrink it.

@jacky-yanglei
Copy link
Author

I streamlined the code:

demo.dart.txt

dependence:

fl_chart: ^0.6.0
date_format: ^1.0.6

@imaNNeo
Copy link
Owner

imaNNeo commented Jan 4, 2020

The file doesn't have the main function, and it's not working.
please provide me an error-free code.
Thanks!

@imaNNeo
Copy link
Owner

imaNNeo commented Jan 7, 2020

It will be closed tomorrow if you don't provide the code.

@jacky-yanglei
Copy link
Author

Sorry,This is code.

main.dart.txt

@shamilovtim
Copy link

@jacky-yanglei put the padding outside of the component

@shamilovtim
Copy link

Ancestor( ← padding here
Parent( ← not here
FLChart
)
);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Line Chart question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants