fix(android): isolate platform-specific shared ui code

This commit is contained in:
Daniel Arantes Loverde
2026-03-19 16:11:07 -03:00
parent c49725a5f7
commit cb7bfef356
16 changed files with 413 additions and 35 deletions

View File

@@ -119,7 +119,7 @@ struct CheckoutView: View {
}
.background(AppColors.backgroundLight)
.navigationTitle("Finalizar Pedido")
.navigationBarTitleDisplayMode(.inline)
.appInlineNavigationTitle()
.safeAreaInset(edge: .bottom) {
bottomBar
}
@@ -659,7 +659,7 @@ struct PaymentPixView: View {
}
.background(AppColors.backgroundLight)
.navigationTitle("Pagamento via PIX")
.navigationBarTitleDisplayMode(.inline)
.appInlineNavigationTitle()
.task {
tracker.onOrderUpdated = { updated in
latestOrder = updated
@@ -851,7 +851,7 @@ struct PaymentCardView: View {
}
.background(AppColors.backgroundLight)
.navigationTitle("Pagamento")
.navigationBarTitleDisplayMode(.inline)
.appInlineNavigationTitle()
.task {
tracker.onOrderUpdated = { updated in
latestOrder = updated
@@ -879,8 +879,7 @@ struct PaymentCardView: View {
.font(AppTypography.caption)
.foregroundStyle(AppColors.textMuted)
TextField(placeholder, text: text)
.textInputAutocapitalization(.never)
.disableAutocorrection(true)
.appNoAutoCap()
.padding(.horizontal, 12)
.frame(height: 46)
.background(AppColors.backgroundLight)