opt: get theme color

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-28 21:32:30 +08:00
parent 451a84e696
commit ca993df0c6
149 changed files with 4415 additions and 4803 deletions

View File

@@ -30,7 +30,8 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
@override
Widget build(BuildContext context) {
Color colorTheme = Theme.of(context).colorScheme.primary;
final theme = Theme.of(context);
Color colorTheme = theme.colorScheme.primary;
//阅读器限制
Timer? accessibilityDebounce;
double lastAnnouncedValue = -1;
@@ -57,7 +58,7 @@ class BottomControl extends StatelessWidget implements PreferredSizeWidget {
children: [
if (controller.dmTrend.isNotEmpty &&
controller.showDmChart.value)
buildDmChart(context, controller, 4.5),
buildDmChart(theme, controller, 4.5),
if (controller.viewPointList.isNotEmpty &&
controller.showVP.value)
buildViewPointWidget(controller, 8.75),