feat: add remote pull and push
This commit is contained in:
@@ -83,7 +83,11 @@ class _PaymentPicker extends StatelessWidget {
|
||||
|
||||
const _PaymentPicker({required this.selected, required this.onChanged});
|
||||
|
||||
static const _options = [PaymentMethod.cash, PaymentMethod.payconiq];
|
||||
static const _options = [
|
||||
PaymentMethod.cash,
|
||||
PaymentMethod.payconiq,
|
||||
PaymentMethod.paymentPending,
|
||||
];
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -93,7 +97,11 @@ class _PaymentPicker extends StatelessWidget {
|
||||
mainAxisAlignment: MainAxisAlignment.center,
|
||||
children: _options.map((option) {
|
||||
final value = option;
|
||||
final label = value == PaymentMethod.cash ? l10n.cash : l10n.payconiq;
|
||||
final label = switch (value) {
|
||||
PaymentMethod.cash => l10n.cash,
|
||||
PaymentMethod.payconiq => l10n.payconiq,
|
||||
PaymentMethod.paymentPending => l10n.paymentPending,
|
||||
};
|
||||
final isSelected = selected == value;
|
||||
|
||||
return Padding(
|
||||
@@ -111,7 +119,7 @@ class _PaymentPicker extends StatelessWidget {
|
||||
size: 16,
|
||||
color: Colors.lightGreen,
|
||||
)
|
||||
else
|
||||
else if (value == PaymentMethod.payconiq)
|
||||
SvgPicture.asset(
|
||||
'assets/icons/payconic.svg',
|
||||
width: 16,
|
||||
@@ -120,6 +128,12 @@ class _PaymentPicker extends StatelessWidget {
|
||||
Colors.pinkAccent,
|
||||
BlendMode.srcIn,
|
||||
),
|
||||
)
|
||||
else
|
||||
const Icon(
|
||||
Icons.hourglass_empty,
|
||||
size: 16,
|
||||
color: Colors.orange,
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
Text(label),
|
||||
|
||||
Reference in New Issue
Block a user