fix: reformat code / code improvements
This commit is contained in:
@@ -2,6 +2,7 @@ import 'package:flutter/material.dart';
|
||||
import 'package:intl/intl.dart';
|
||||
import 'package:kooltab2/models/closed_tab.dart';
|
||||
import 'package:kooltab2/models/closed_tab_item.dart';
|
||||
import 'package:kooltab2/models/payment_method.dart';
|
||||
|
||||
class ClosedTabCard extends StatefulWidget {
|
||||
final ClosedTab closedTab;
|
||||
@@ -15,10 +16,10 @@ class ClosedTabCard extends StatefulWidget {
|
||||
class _ClosedTabCardState extends State<ClosedTabCard> {
|
||||
bool _expanded = false;
|
||||
|
||||
IconData _paymentIcon(String method) {
|
||||
IconData _paymentIcon(PaymentMethod method) {
|
||||
return switch (method) {
|
||||
'payconiq' => Icons.qr_code_rounded,
|
||||
_ => Icons.money_rounded,
|
||||
PaymentMethod.payconiq => Icons.qr_code_rounded,
|
||||
PaymentMethod.cash => Icons.money_rounded,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user