Refactor dialog background color and button styles in document viewer and home page
This commit is contained in:
@@ -532,7 +532,7 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return Dialog(
|
return Dialog(
|
||||||
backgroundColor: AppTheme.primaryBackground.withValues(alpha: 0.65),
|
backgroundColor: Colors.transparent,
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: const BoxConstraints(maxWidth: 400),
|
constraints: const BoxConstraints(maxWidth: 400),
|
||||||
child: Container(
|
child: Container(
|
||||||
@@ -566,7 +566,7 @@ class _DocumentViewerModalState extends State<DocumentViewerModal> {
|
|||||||
onPressed: () => Navigator.of(context).pop(false),
|
onPressed: () => Navigator.of(context).pop(false),
|
||||||
child: const Text(
|
child: const Text(
|
||||||
'Cancel',
|
'Cancel',
|
||||||
style: TextStyle(color: Colors.red),
|
style: TextStyle(color: AppTheme.primaryText),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
TextButton(
|
TextButton(
|
||||||
@@ -974,7 +974,7 @@ class _DocumentViewerState extends State<DocumentViewer> {
|
|||||||
context: context,
|
context: context,
|
||||||
builder: (BuildContext context) {
|
builder: (BuildContext context) {
|
||||||
return Dialog(
|
return Dialog(
|
||||||
backgroundColor: AppTheme.primaryBackground.withValues(alpha: 0.65),
|
backgroundColor: Colors.transparent,
|
||||||
child: ConstrainedBox(
|
child: ConstrainedBox(
|
||||||
constraints: const BoxConstraints(maxWidth: 400),
|
constraints: const BoxConstraints(maxWidth: 400),
|
||||||
child: Container(
|
child: Container(
|
||||||
|
|||||||
@@ -144,7 +144,10 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||||||
children: [
|
children: [
|
||||||
ModernGlassButton(
|
ModernGlassButton(
|
||||||
onPressed: () => Navigator.of(dialogContext).pop(),
|
onPressed: () => Navigator.of(dialogContext).pop(),
|
||||||
child: const Text('Cancel'),
|
child: Text(
|
||||||
|
'Cancel',
|
||||||
|
style: TextStyle(color: Colors.red[400]),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 16),
|
const SizedBox(width: 16),
|
||||||
ModernGlassButton(
|
ModernGlassButton(
|
||||||
@@ -158,10 +161,7 @@ class _HomePageState extends State<HomePage> with TickerProviderStateMixin {
|
|||||||
Navigator.of(dialogContext).pop();
|
Navigator.of(dialogContext).pop();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Text(
|
child: const Text('Create'),
|
||||||
'Create',
|
|
||||||
style: TextStyle(color: Colors.red[400]),
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user