Skip to content

Adds support for mirrored label text direction #1890

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

Open
wants to merge 53 commits into
base: main
Choose a base branch
from

Conversation

3ph
Copy link

@3ph 3ph commented Apr 8, 2025

Currently the HorizontalLineLabel and VerticalLineLabel support .horizontal and .vertical direction but there is no way (afaik) how to flip the text upside down along this direction. This is a problem mainly for vertical direction where the text is upside down (in relation to axis names).

This PR adds additional label direction options: .horizontalMirrored and .verticalMirrored which would flip the text upside down. This is not a breaking change.

@imaNNeo
Copy link
Owner

imaNNeo commented Apr 13, 2025

Perfect!
It looks good to me. Can you please write tests for it? This way, I can be able to merge it.
Also, please let me know if there's already an issue for this

@3ph
Copy link
Author

3ph commented Apr 14, 2025

@imaNNeo I fixed the tests

Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.47%. Comparing base (c427867) to head (fbda42e).
Report is 45 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1890      +/-   ##
==========================================
+ Coverage   92.43%   92.47%   +0.04%     
==========================================
  Files          46       46              
  Lines        3344     3364      +20     
==========================================
+ Hits         3091     3111      +20     
  Misses        253      253              
Flag Coverage Δ
flutter 92.47% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@imaNNeo
Copy link
Owner

imaNNeo commented Apr 15, 2025

I see you didn't write new tests. Please write some tests to resolve the tests pipeline here

@imaNNeo
Copy link
Owner

imaNNeo commented Apr 28, 2025

Can you please rebase your branch?

imaNNeo added 21 commits May 5, 2025 21:43
…s own touchData for example, lineTouchData, barTouchData, ...)
…e the basic information about our brand new CandlestickChart
…have the full structure of having candlesticks, let's implement a sample
…ur candle_stick_chart to draw the touched/hoverer point
imaNNeo and others added 28 commits May 5, 2025 21:43
…sponse objects (LineTouchResponse, BarTouchResponse, ...)
…dicator to allow user to customize the touch lines
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.

2 participants