fix(ci/cd): test-flight

This commit is contained in:
mso7nueh
2025-04-21 14:35:22 +03:00
parent 0ead4556b9
commit 740ccb7d30
3 changed files with 33 additions and 57 deletions

View File

@@ -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

View File

@@ -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,
);

View File

@@ -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),
],