Enhance button styles by setting transparent overlay color in document viewer

This commit is contained in:
Leon Bösche
2026-01-16 14:14:36 +01:00
parent 46cf6531d9
commit c2db24133b

View File

@@ -562,6 +562,9 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
overlayColor: WidgetStateProperty.all(
Colors.transparent,
),
),
onPressed: () => Navigator.of(context).pop(false),
child: const Text(
@@ -572,6 +575,9 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
overlayColor: WidgetStateProperty.all(
Colors.transparent,
),
),
onPressed: () => Navigator.of(context).pop(true),
child: const Text(
@@ -1004,6 +1010,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
overlayColor: WidgetStateProperty.all(
Colors.transparent,
),
),
onPressed: () => Navigator.of(context).pop(false),
child: const Text(
@@ -1014,6 +1023,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
overlayColor: WidgetStateProperty.all(
Colors.transparent,
),
),
onPressed: () => Navigator.of(context).pop(true),
child: const Text(