This commit is contained in:
Leon Bösche
2026-01-16 02:45:44 +01:00
parent 4285baecbf
commit f94f36350f
2 changed files with 40 additions and 3 deletions

View File

@@ -532,7 +532,7 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
context: context, context: context,
builder: (BuildContext context) { builder: (BuildContext context) {
return Dialog( return Dialog(
backgroundColor: Colors.transparent, backgroundColor: AppTheme.primaryBackground.withValues(alpha: 0.65),
child: ConstrainedBox( child: ConstrainedBox(
constraints: const BoxConstraints(maxWidth: 400), constraints: const BoxConstraints(maxWidth: 400),
child: Container( child: Container(
@@ -551,7 +551,7 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
), ),
const SizedBox(height: 16), const SizedBox(height: 16),
Text( Text(
'Do you want to open this link in your browser?\n\n$url', 'Open this link in your browser?\n\n$url',
style: const TextStyle(color: AppTheme.primaryText), style: const TextStyle(color: AppTheme.primaryText),
textAlign: TextAlign.center, textAlign: TextAlign.center,
), ),
@@ -560,13 +560,19 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(false), onPressed: () => Navigator.of(context).pop(false),
child: const Text( child: const Text(
'Cancel', 'Cancel',
style: TextStyle(color: AppTheme.primaryText), style: TextStyle(color: Colors.red),
), ),
), ),
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(true), onPressed: () => Navigator.of(context).pop(true),
child: const Text( child: const Text(
'Open', 'Open',
@@ -996,6 +1002,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(false), onPressed: () => Navigator.of(context).pop(false),
child: const Text( child: const Text(
'Cancel', 'Cancel',
@@ -1003,6 +1012,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
), ),
), ),
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(true), onPressed: () => Navigator.of(context).pop(true),
child: const Text( child: const Text(
'Open', 'Open',

View File

@@ -222,6 +222,9 @@ class _FileExplorerState extends State<FileExplorer> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(), onPressed: () => Navigator.of(context).pop(),
child: const Text( child: const Text(
'Cancel', 'Cancel',
@@ -229,6 +232,9 @@ class _FileExplorerState extends State<FileExplorer> {
), ),
), ),
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () { onPressed: () {
final folderName = controller.text.trim(); final folderName = controller.text.trim();
if (folderName.isNotEmpty) { if (folderName.isNotEmpty) {
@@ -329,6 +335,9 @@ class _FileExplorerState extends State<FileExplorer> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(), onPressed: () => Navigator.of(context).pop(),
child: const Text( child: const Text(
'Cancel', 'Cancel',
@@ -336,6 +345,9 @@ class _FileExplorerState extends State<FileExplorer> {
), ),
), ),
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () { onPressed: () {
final docName = controller.text.trim(); final docName = controller.text.trim();
if (docName.isNotEmpty) { if (docName.isNotEmpty) {
@@ -521,6 +533,9 @@ class _FileExplorerState extends State<FileExplorer> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(), onPressed: () => Navigator.of(context).pop(),
child: const Text( child: const Text(
'Cancel', 'Cancel',
@@ -528,6 +543,9 @@ class _FileExplorerState extends State<FileExplorer> {
), ),
), ),
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () { onPressed: () {
final newName = controller.text.trim(); final newName = controller.text.trim();
if (newName.isNotEmpty && newName != file.name) { if (newName.isNotEmpty && newName != file.name) {
@@ -739,6 +757,9 @@ class _FileExplorerState extends State<FileExplorer> {
mainAxisAlignment: MainAxisAlignment.end, mainAxisAlignment: MainAxisAlignment.end,
children: [ children: [
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(false), onPressed: () => Navigator.of(context).pop(false),
child: const Text( child: const Text(
'Cancel', 'Cancel',
@@ -746,6 +767,9 @@ class _FileExplorerState extends State<FileExplorer> {
), ),
), ),
TextButton( TextButton(
style: ButtonStyle(
splashFactory: NoSplash.splashFactory,
),
onPressed: () => Navigator.of(context).pop(true), onPressed: () => Navigator.of(context).pop(true),
child: const Text( child: const Text(
'Delete', 'Delete',
@@ -1405,6 +1429,7 @@ class _FileExplorerState extends State<FileExplorer> {
children: state.breadcrumbs.map((breadcrumb) { children: state.breadcrumbs.map((breadcrumb) {
return TextButton( return TextButton(
style: TextButton.styleFrom( style: TextButton.styleFrom(
splashFactory: NoSplash.splashFactory,
padding: EdgeInsets.zero, padding: EdgeInsets.zero,
minimumSize: Size.zero, minimumSize: Size.zero,
tapTargetSize: tapTargetSize: