mirror of
https://github.com/koloideal/Casha.git
synced 2026-06-10 18:35:28 +03:00
update
This commit is contained in:
@@ -368,6 +368,16 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(widget.context).colorScheme.surface,
|
||||
shape: BoxShape.circle,
|
||||
border:
|
||||
Theme.of(widget.context).brightness ==
|
||||
Brightness.dark
|
||||
? Border.all(
|
||||
color: Theme.of(
|
||||
widget.context,
|
||||
).colorScheme.onSurface.withOpacity(0.3),
|
||||
width: 1,
|
||||
)
|
||||
: null,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.red.withOpacity(0.2),
|
||||
@@ -393,6 +403,16 @@ class _AccountEditorOverlayState extends State<AccountEditorOverlay> {
|
||||
decoration: BoxDecoration(
|
||||
color: Theme.of(widget.context).colorScheme.surface,
|
||||
shape: BoxShape.circle,
|
||||
border:
|
||||
Theme.of(widget.context).brightness ==
|
||||
Brightness.dark
|
||||
? Border.all(
|
||||
color: Theme.of(
|
||||
widget.context,
|
||||
).colorScheme.onSurface.withOpacity(0.3),
|
||||
width: 1,
|
||||
)
|
||||
: null,
|
||||
boxShadow: [
|
||||
BoxShadow(
|
||||
color: Colors.black.withOpacity(0.3),
|
||||
|
||||
@@ -34,7 +34,20 @@ class AccountDeleteDialog extends ConsumerWidget {
|
||||
'Are you sure you want to delete this account? All associated transactions will also be permanently deleted.',
|
||||
),
|
||||
actions: [
|
||||
TextButton(onPressed: onCancel, child: const Text('Cancel')),
|
||||
TextButton(
|
||||
onPressed: onCancel,
|
||||
style: Theme.of(context).brightness == Brightness.dark
|
||||
? TextButton.styleFrom(
|
||||
side: BorderSide(
|
||||
color: Theme.of(
|
||||
context,
|
||||
).colorScheme.onSurface.withOpacity(0.3),
|
||||
width: 1,
|
||||
),
|
||||
)
|
||||
: null,
|
||||
child: const Text('Cancel'),
|
||||
),
|
||||
TextButton(
|
||||
onPressed: () async {
|
||||
if (editingAccount == null) return;
|
||||
@@ -57,6 +70,16 @@ class AccountDeleteDialog extends ConsumerWidget {
|
||||
HapticService.medium();
|
||||
}
|
||||
},
|
||||
style: Theme.of(context).brightness == Brightness.dark
|
||||
? TextButton.styleFrom(
|
||||
side: BorderSide(
|
||||
color: Theme.of(
|
||||
context,
|
||||
).colorScheme.onSurface.withOpacity(0.3),
|
||||
width: 1,
|
||||
),
|
||||
)
|
||||
: null,
|
||||
child: const Text(
|
||||
'Delete',
|
||||
style: TextStyle(color: Colors.red),
|
||||
|
||||
Reference in New Issue
Block a user