From 73db23f5907e9aeb3bb726f6603cd620948f74e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Leon=20B=C3=B6sche?= Date: Sun, 25 Jan 2026 01:05:29 +0100 Subject: [PATCH] Enhance close button in PublicFileViewer: add custom button style to remove splash effect --- b0esche_cloud/lib/pages/public_file_viewer.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/b0esche_cloud/lib/pages/public_file_viewer.dart b/b0esche_cloud/lib/pages/public_file_viewer.dart index 6e0c70f..8726556 100644 --- a/b0esche_cloud/lib/pages/public_file_viewer.dart +++ b/b0esche_cloud/lib/pages/public_file_viewer.dart @@ -229,6 +229,17 @@ class _PublicFileViewerState extends State { actions: [ IconButton( icon: const Icon(Icons.close, color: AppTheme.primaryText), + style: ButtonStyle( + splashFactory: NoSplash.splashFactory, + overlayColor: WidgetStateProperty.resolveWith(( + Set states, + ) { + if (states.contains(WidgetState.pressed)) { + return Colors.transparent; + } + return null; + }), + ), onPressed: () => context.go('/'), ), ],