From 6ee40e5f35eb66a1a4db3b3242107d04bdfb23f1 Mon Sep 17 00:00:00 2001 From: pyrossh Date: Tue, 15 Aug 2023 18:33:43 +0530 Subject: [PATCH] fix dark color icons --- lib/widgets/actions_sheet.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widgets/actions_sheet.dart b/lib/widgets/actions_sheet.dart index 459d3be7..d3e5021e 100644 --- a/lib/widgets/actions_sheet.dart +++ b/lib/widgets/actions_sheet.dart @@ -8,7 +8,7 @@ class ActionsSheet extends StatelessWidget { @override Widget build(BuildContext context) { - final iconColor = Colors.black.withOpacity(0.9); //Theme.of(context).secondaryHeaderColor; + final iconColor = AppModel.of(context).darkMode ? Colors.white.withOpacity(0.9) : Colors.black.withOpacity(0.9); final bodySmall = Theme.of(context).textTheme.bodySmall; final model = ChapterViewModel.of(context); final audioIcon = model.isPlaying ? Icons.pause_circle_outline : Icons.play_circle_outline;