forked from eatvio/eatvio_app
fix(ci/cd): test-flight
This commit is contained in:
2
Build-tf
2
Build-tf
@@ -31,7 +31,7 @@ EXPORT_OPTIONS_FILE="Support/ExportOptions.plist"
|
||||
# Clean and prepare the build
|
||||
flutter clean
|
||||
flutter pub get
|
||||
flutter upgrade
|
||||
dart run build_runner build --delete-conflicting-outputs
|
||||
|
||||
cd ios
|
||||
rm -rf Pods Podfile.lock
|
||||
|
||||
@@ -1,21 +1,18 @@
|
||||
enum ConsultationStatus {
|
||||
completed,
|
||||
canceled,
|
||||
canceledByInitiator,
|
||||
}
|
||||
|
||||
class ConsultantFinanceEntity {
|
||||
final int totalConsultationsCount;
|
||||
final int completedCount;
|
||||
final int canceledCount;
|
||||
final int canceledByInitiatorCount;
|
||||
final List<ConsultationFinanceCardEntity> consultationsList;
|
||||
|
||||
ConsultantFinanceEntity({
|
||||
required this.totalConsultationsCount,
|
||||
required this.completedCount,
|
||||
required this.canceledCount,
|
||||
required this.canceledByInitiatorCount,
|
||||
required this.consultationsList,
|
||||
});
|
||||
}
|
||||
@@ -67,7 +64,7 @@ final testConsultations = [
|
||||
clientName: 'Charlie',
|
||||
planDuration: 60,
|
||||
price: 200,
|
||||
status: ConsultationStatus.canceledByInitiator,
|
||||
status: ConsultationStatus.completed,
|
||||
),
|
||||
];
|
||||
|
||||
@@ -75,6 +72,5 @@ final testFinanceEntity = ConsultantFinanceEntity(
|
||||
totalConsultationsCount: testConsultations.length,
|
||||
completedCount: testConsultations.where((c) => c.status == ConsultationStatus.completed).length,
|
||||
canceledCount: testConsultations.where((c) => c.status == ConsultationStatus.canceled).length,
|
||||
canceledByInitiatorCount: testConsultations.where((c) => c.status == ConsultationStatus.canceledByInitiator).length,
|
||||
consultationsList: testConsultations,
|
||||
);
|
||||
|
||||
@@ -54,63 +54,43 @@ class _ConsultantFinanceScreenState extends State<ConsultantFinanceScreen> {
|
||||
),
|
||||
),
|
||||
const SizedBox(height: 12),
|
||||
SingleChildScrollView(
|
||||
scrollDirection: Axis.horizontal,
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||
child: Row(
|
||||
children: [
|
||||
Material(
|
||||
color: const Color(0xFF0BB450).withAlpha(11),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Text(
|
||||
'Завершено: ${testFinanceEntity.completedCount}',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Color(0xFF0BB450),
|
||||
height: 1,
|
||||
),
|
||||
Row(
|
||||
children: [
|
||||
const SizedBox(width: 16),
|
||||
Material(
|
||||
color: const Color(0xFF0BB450).withAlpha(11),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Text(
|
||||
'Завершено: ${testFinanceEntity.completedCount}',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Color(0xFF0BB450),
|
||||
height: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Material(
|
||||
color: const Color(0xFFD01717).withAlpha(11),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Text(
|
||||
'Отменено: ${testFinanceEntity.canceledCount}',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Color(0xFFD01717),
|
||||
height: 1,
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Material(
|
||||
color: const Color(0xFFD01717).withAlpha(11),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Text(
|
||||
'Отменено: ${testFinanceEntity.canceledCount}',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Color(0xFFD01717),
|
||||
height: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
const SizedBox(width: 8),
|
||||
Material(
|
||||
color: const Color(0xFFD07317).withAlpha(11),
|
||||
borderRadius: BorderRadius.circular(8),
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 4),
|
||||
child: Text(
|
||||
'Отменено инициатором: ${testFinanceEntity.canceledByInitiatorCount}',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontWeight: FontWeight.w400,
|
||||
color: Color(0xFFD07317),
|
||||
height: 1,
|
||||
),
|
||||
),
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 16),
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user