Fl_chart: lineTouchData的问题

Created on 25 Dec 2019  ·  10Comments  ·  Source: imaNNeoFighT/fl_chart

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

Line Chart question

Most helpful comment

Please speak English,
Thanks!

All 10 comments

Please speak English,
Thanks!

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

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

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

I streamlined the code:

demo.dart.txt

dependence:

fl_chart: ^0.6.0
date_format: ^1.0.6

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

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

Sorry,This is code.

main.dart.txt

@jacky-yanglei put the padding outside of the component

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kw2019ltd picture kw2019ltd  ·  6Comments

mukhammad-akilov picture mukhammad-akilov  ·  4Comments

davidmarinangeli picture davidmarinangeli  ·  6Comments

Mohdx picture Mohdx  ·  4Comments

davidmarinangeli picture davidmarinangeli  ·  3Comments