idle6000
This commit is contained in:
@@ -532,7 +532,7 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return Dialog(
|
||||
backgroundColor: Colors.transparent,
|
||||
backgroundColor: AppTheme.primaryBackground.withValues(alpha: 0.65),
|
||||
child: ConstrainedBox(
|
||||
constraints: const BoxConstraints(maxWidth: 400),
|
||||
child: Container(
|
||||
@@ -551,7 +551,7 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
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),
|
||||
textAlign: TextAlign.center,
|
||||
),
|
||||
@@ -560,13 +560,19 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: const Text(
|
||||
'Cancel',
|
||||
style: TextStyle(color: AppTheme.primaryText),
|
||||
style: TextStyle(color: Colors.red),
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: const Text(
|
||||
'Open',
|
||||
@@ -996,6 +1002,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: const Text(
|
||||
'Cancel',
|
||||
@@ -1003,6 +1012,9 @@ class _DocumentViewerState extends State<DocumentViewer> {
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: const Text(
|
||||
'Open',
|
||||
|
||||
@@ -222,6 +222,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
child: const Text(
|
||||
'Cancel',
|
||||
@@ -229,6 +232,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () {
|
||||
final folderName = controller.text.trim();
|
||||
if (folderName.isNotEmpty) {
|
||||
@@ -329,6 +335,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
child: const Text(
|
||||
'Cancel',
|
||||
@@ -336,6 +345,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () {
|
||||
final docName = controller.text.trim();
|
||||
if (docName.isNotEmpty) {
|
||||
@@ -521,6 +533,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(),
|
||||
child: const Text(
|
||||
'Cancel',
|
||||
@@ -528,6 +543,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () {
|
||||
final newName = controller.text.trim();
|
||||
if (newName.isNotEmpty && newName != file.name) {
|
||||
@@ -739,6 +757,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(false),
|
||||
child: const Text(
|
||||
'Cancel',
|
||||
@@ -746,6 +767,9 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
),
|
||||
),
|
||||
TextButton(
|
||||
style: ButtonStyle(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
),
|
||||
onPressed: () => Navigator.of(context).pop(true),
|
||||
child: const Text(
|
||||
'Delete',
|
||||
@@ -1405,6 +1429,7 @@ class _FileExplorerState extends State<FileExplorer> {
|
||||
children: state.breadcrumbs.map((breadcrumb) {
|
||||
return TextButton(
|
||||
style: TextButton.styleFrom(
|
||||
splashFactory: NoSplash.splashFactory,
|
||||
padding: EdgeInsets.zero,
|
||||
minimumSize: Size.zero,
|
||||
tapTargetSize:
|
||||
|
||||
Reference in New Issue
Block a user