imaNNeo / imaNNeo/fl_chart

badgePositionPercentageOffset generates spacing problems on different devices

Open
#1,743 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Dart
Stars
7.6k
Forks
2k
Avg merge
9d 1h
Merged PRs (30d)
2

Description

Hola, actualmente me e encontrado que en el uso de los pie chart como solución a los gráficos que requiero, pero mi problema recae en la posición del badgePositionPercentageOffset, ya que al hacer pruebas en diferentes dispositivos el widget que ingreso badgeWidget se ve afectado en posicion dentro de la vista por el valor de la posicion, esto por el m omento no e encontrado la manera de centrar el compontente a lo que requiero.

lo ideal para mi solución seria quizas encapsular algun container dentro en el centro del pie chart a modo que el widget hijo se pueda centrar dentro y visualmente que se vea centrado en todos los dispositivos.

adjunto imagenes referenciales de lo que estoy generando:

- primer caso: con posicion igual a 0
![Captura de pantalla 2024-09-02 141044](https://github.com/user-attachments/assets/1d7288c9-04f3-4a85-888e-4ee7f64419b2)

- segundo caso: con posicion igual a -1 donde visualmente se visualiza al centro del texto
![Captura de pantalla 2](https://github.com/user-attachments/assets/c2fa2286-47b5-4eb0-8ff1-686e9b5bbf30)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the pie chart layout with badgePositionPercentageOffset and badgeWidget on multiple device sizes, using the two referenced offset cases (0 and -1). Investigate how the badge is positioned relative to the chart and verify that the widget remains visually centered across devices when the issue is resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
dart, flutter
Domain
mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.