chore: toggleOcr function

Co-authored-by: shenlong <139912620+shenlong-tanwen@users.noreply.github.com>
This commit is contained in:
Yaros
2026-04-13 17:22:28 +02:00
committed by GitHub
parent 9df7efcea5
commit 4de5837ff9
@@ -51,7 +51,7 @@ class ViewerTopAppBar extends ConsumerWidget implements PreferredSizeWidget {
if (hasOcr)
IconButton(
icon: Icon(showingOcr ? Icons.text_fields : Icons.text_fields_outlined),
onPressed: () => ref.read(assetViewerProvider.notifier).toggleOcr(),
onPressed: ref.read(assetViewerProvider.notifier).toggleOcr,
color: showingOcr ? context.primaryColor : null,
),
if (asset.isMotionPhoto) const MotionPhotoActionButton(iconOnly: true),