This commit is contained in:
2026-07-13 01:38:13 +03:00
parent 9eda119527
commit 98c5a7a1d1
54 changed files with 860 additions and 454 deletions

View File

@@ -5,6 +5,7 @@ import '../../core/app_colors.dart';
import '../../di/service_locator.dart';
import '../../domain/entities/payment_card.dart';
import '../../domain/usecase/get_payment_cards_usecase.dart';
import '../../domain/usecase/get_profile_usecase.dart';
import '../../domain/usecase/set_main_payment_card_usecase.dart';
import '../components/custom_app_bar.dart';
import '../components/gradient_button.dart';
@@ -134,11 +135,6 @@ class _PaymentConfirmScreenContent extends StatelessWidget {
const SizedBox(height: 24),
_buildInfoLabel('Начислено баллов:'),
_buildValueRow('points_icon.png', '2 балла'),
const SizedBox(height: 24),
Row(
children: [
Expanded(
@@ -149,7 +145,7 @@ class _PaymentConfirmScreenContent extends StatelessWidget {
_buildInfoLabel('Стоимость поездки:'),
_buildValueRow(
'money_icon.png',
'17,17 BYN',
order?.totalOrderPricePrint ?? '- BYN',
),
],
),
@@ -162,7 +158,7 @@ class _PaymentConfirmScreenContent extends StatelessWidget {
_buildInfoLabel('Оплачено:'),
_buildValueRow(
'money_icon.png',
'10,00 BYN',
order?.payTotalPricePrint ?? '0,00 BYN',
),
],
),
@@ -193,9 +189,9 @@ class _PaymentConfirmScreenContent extends StatelessWidget {
width: 40,
),
const SizedBox(width: 12),
const Text(
'7,17 BYN',
style: TextStyle(
Text(
order?.unpayTotalPricePrint ?? '0,00 BYN',
style: const TextStyle(
color: Colors.white,
fontSize: 32,
fontWeight: FontWeight.bold,
@@ -227,6 +223,7 @@ class _PaymentConfirmScreenContent extends StatelessWidget {
create: (context) => PaymentMethodSheetBloc(
getIt<GetPaymentCardsUsecase>(),
getIt<SetMainPaymentCardUsecase>(),
getIt<GetProfileUseCase>(),
)..add(PaymentMethodSheetStarted()),
child: PaymentMethodSheet(
initialSelectedCard: state.useBalance ? null : state.selectedCard,