temp build

This commit is contained in:
Stephan D
2025-12-05 01:32:41 +01:00
parent 082d782a80
commit f71cc76f64
50 changed files with 853 additions and 707 deletions

View File

@@ -31,7 +31,7 @@ class PaymentMethodTile extends StatelessWidget {
final theme = Theme.of(context);
return Opacity(
opacity: method.isEnabled ? 1 : 0.5,
opacity: method.isArchived ? 1 : 0.5,
child: Card(
margin: const EdgeInsets.symmetric(vertical: 4),
elevation: 0,
@@ -41,11 +41,12 @@ class PaymentMethodTile extends StatelessWidget {
onTap: makeMain,
title: Row(
children: [
Expanded(child: Text(method.label)),
Text(
method.details,
style: theme.textTheme.bodySmall,
),
Expanded(child: Text(method.name)),
if (method.description != null)
Text(
method.description!,
style: theme.textTheme.bodySmall,
),
],
),
trailing: Row(
@@ -73,12 +74,10 @@ class PaymentMethodTile extends StatelessWidget {
);
}
Widget _buildEnabledSwitch() {
return Switch.adaptive(
value: method.isEnabled,
onChanged: toggleEnabled,
);
}
Widget _buildEnabledSwitch() => Switch.adaptive(
value: method.isArchived,
onChanged: toggleEnabled,
);
Widget _buildPopupMenu(AppLocalizations l10n) {
return PopupMenuButton<String>(