Fix tooltip charts

This commit is contained in:
Juan Gilsanz Polo 2023-09-04 23:34:10 +02:00
parent a57a65f12a
commit 551273b528
2 changed files with 2 additions and 0 deletions

View file

@ -85,6 +85,7 @@ class CustomCombinedLineChart extends StatelessWidget {
lineTouchData: LineTouchData(
enabled: true,
touchTooltipData: LineTouchTooltipData(
fitInsideHorizontally: true,
tooltipBgColor: selectedTheme == ThemeMode.light
? const Color.fromRGBO(220, 220, 220, 0.9)
: const Color.fromRGBO(35, 35, 35, 0.9),

View file

@ -90,6 +90,7 @@ class CustomLineChart extends StatelessWidget {
lineTouchData: LineTouchData(
enabled: true,
touchTooltipData: LineTouchTooltipData(
fitInsideHorizontally: true,
tooltipBgColor: selectedTheme == ThemeMode.light
? const Color.fromRGBO(220, 220, 220, 0.9)
: const Color.fromRGBO(35, 35, 35, 0.9),