Enhance button styles by setting transparent overlay color in document viewer
This commit is contained in:
@@ -562,6 +562,9 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
|
|||||||
TextButton(
|
TextButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
splashFactory: NoSplash.splashFactory,
|
splashFactory: NoSplash.splashFactory,
|
||||||
|
overlayColor: WidgetStateProperty.all(
|
||||||
|
Colors.transparent,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
onPressed: () => Navigator.of(context).pop(false),
|
onPressed: () => Navigator.of(context).pop(false),
|
||||||
child: const Text(
|
child: const Text(
|
||||||
@@ -572,6 +575,9 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
|
|||||||
TextButton(
|
TextButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
splashFactory: NoSplash.splashFactory,
|
splashFactory: NoSplash.splashFactory,
|
||||||
|
overlayColor: WidgetStateProperty.all(
|
||||||
|
Colors.transparent,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
onPressed: () => Navigator.of(context).pop(true),
|
onPressed: () => Navigator.of(context).pop(true),
|
||||||
child: const Text(
|
child: const Text(
|
||||||
@@ -1004,6 +1010,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
|
|||||||
TextButton(
|
TextButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
splashFactory: NoSplash.splashFactory,
|
splashFactory: NoSplash.splashFactory,
|
||||||
|
overlayColor: WidgetStateProperty.all(
|
||||||
|
Colors.transparent,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
onPressed: () => Navigator.of(context).pop(false),
|
onPressed: () => Navigator.of(context).pop(false),
|
||||||
child: const Text(
|
child: const Text(
|
||||||
@@ -1014,6 +1023,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
|
|||||||
TextButton(
|
TextButton(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
splashFactory: NoSplash.splashFactory,
|
splashFactory: NoSplash.splashFactory,
|
||||||
|
overlayColor: WidgetStateProperty.all(
|
||||||
|
Colors.transparent,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
onPressed: () => Navigator.of(context).pop(true),
|
onPressed: () => Navigator.of(context).pop(true),
|
||||||
child: const Text(
|
child: const Text(
|
||||||
|
|||||||
Reference in New Issue
Block a user