temp build
This commit is contained in:
@@ -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>(
|
||||
|
||||
Reference in New Issue
Block a user