Changed the spelling of the word adress)

This commit is contained in:
Arseni
2025-12-12 19:39:36 +03:00
parent 28d74d058b
commit 82b2f88122
14 changed files with 31 additions and 31 deletions

View File

@@ -92,7 +92,7 @@ RouteBase payoutShellRoute() => ShellRoute(
pageBuilder: (context, _) { pageBuilder: (context, _) {
final recipient = context.read<RecipientsProvider>().currentObject; final recipient = context.read<RecipientsProvider>().currentObject;
return NoTransitionPage( return NoTransitionPage(
child: AdressBookRecipientForm( child: AddressBookRecipientForm(
recipient: recipient, recipient: recipient,
onSaved: (_) => context.goToPayout(PayoutDestination.recipients), onSaved: (_) => context.goToPayout(PayoutDestination.recipients),
), ),

View File

@@ -7,7 +7,7 @@ import 'package:pweb/pages/payment_methods/form.dart';
import 'package:pweb/pages/payment_methods/icon.dart'; import 'package:pweb/pages/payment_methods/icon.dart';
class AdressBookPaymentMethodTile extends StatefulWidget { class AddressBookPaymentMethodTile extends StatefulWidget {
final PaymentType type; final PaymentType type;
final String title; final String title;
final MethodMap methods; final MethodMap methods;
@@ -18,7 +18,7 @@ class AdressBookPaymentMethodTile extends StatefulWidget {
final double sizeM; final double sizeM;
final TextStyle? titleTextStyle; final TextStyle? titleTextStyle;
const AdressBookPaymentMethodTile({ const AddressBookPaymentMethodTile({
super.key, super.key,
required this.type, required this.type,
required this.title, required this.title,
@@ -31,10 +31,10 @@ class AdressBookPaymentMethodTile extends StatefulWidget {
}); });
@override @override
State<AdressBookPaymentMethodTile> createState() => _AdressBookPaymentMethodTileState(); State<AddressBookPaymentMethodTile> createState() => _AddressBookPaymentMethodTileState();
} }
class _AdressBookPaymentMethodTileState extends State<AdressBookPaymentMethodTile> { class _AddressBookPaymentMethodTileState extends State<AddressBookPaymentMethodTile> {
@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
final theme = Theme.of(context); final theme = Theme.of(context);

View File

@@ -21,17 +21,17 @@ import 'package:pweb/utils/snackbar.dart';
import 'package:pweb/generated/i18n/app_localizations.dart'; import 'package:pweb/generated/i18n/app_localizations.dart';
class AdressBookRecipientForm extends StatefulWidget { class AddressBookRecipientForm extends StatefulWidget {
final Recipient? recipient; final Recipient? recipient;
final ValueChanged<Recipient?>? onSaved; final ValueChanged<Recipient?>? onSaved;
const AdressBookRecipientForm({super.key, this.recipient, this.onSaved}); const AddressBookRecipientForm({super.key, this.recipient, this.onSaved});
@override @override
State<AdressBookRecipientForm> createState() => _AdressBookRecipientFormState(); State<AddressBookRecipientForm> createState() => _AddressBookRecipientFormState();
} }
class _AdressBookRecipientFormState extends State<AdressBookRecipientForm> { class _AddressBookRecipientFormState extends State<AddressBookRecipientForm> {
final _formKey = GlobalKey<FormState>(); final _formKey = GlobalKey<FormState>();
late TextEditingController _nameCtrl; late TextEditingController _nameCtrl;
late TextEditingController _emailCtrl; late TextEditingController _emailCtrl;

View File

@@ -103,7 +103,7 @@ class FormView extends StatelessWidget {
), ),
SizedBox(height: spacingFields), SizedBox(height: spacingFields),
...PaymentType.values.map( ...PaymentType.values.map(
(p) => AdressBookPaymentMethodTile( (p) => AddressBookPaymentMethodTile(
type: p, type: p,
title: getPaymentTypeLabel(context, p), title: getPaymentTypeLabel(context, p),
methods: methods, methods: methods,

View File

@@ -6,7 +6,7 @@ import 'package:pweb/pages/address_book/page/recipient/actions.dart';
import 'package:pweb/pages/address_book/page/recipient/info_column.dart'; import 'package:pweb/pages/address_book/page/recipient/info_column.dart';
import 'package:pweb/pages/address_book/page/recipient/payment_row.dart'; import 'package:pweb/pages/address_book/page/recipient/payment_row.dart';
import 'package:pweb/pages/address_book/page/recipient/status.dart'; import 'package:pweb/pages/address_book/page/recipient/status.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/avatar.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/avatar.dart';
class RecipientAddressBookItem extends StatefulWidget { class RecipientAddressBookItem extends StatefulWidget {

View File

@@ -6,8 +6,8 @@ import 'package:pshared/models/recipient/recipient.dart';
import 'package:pshared/provider/organizations.dart'; import 'package:pshared/provider/organizations.dart';
import 'package:pshared/provider/recipient/pmethods.dart'; import 'package:pshared/provider/recipient/pmethods.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/avatar.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/avatar.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/long_list/info_row.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/long_list/info_row.dart';
import 'package:pweb/utils/payment/label.dart'; import 'package:pweb/utils/payment/label.dart';

View File

@@ -2,14 +2,14 @@ import 'package:flutter/material.dart';
import 'package:pshared/models/recipient/recipient.dart'; import 'package:pshared/models/recipient/recipient.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/long_list/item.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/long_list/item.dart';
class LongListAdressBookPayout extends StatelessWidget { class LongListAddressBookPayout extends StatelessWidget {
final List<Recipient> filteredRecipients; final List<Recipient> filteredRecipients;
final ValueChanged<Recipient>? onSelected; final ValueChanged<Recipient>? onSelected;
const LongListAdressBookPayout({ const LongListAddressBookPayout({
super.key, super.key,
required this.filteredRecipients, required this.filteredRecipients,
this.onSelected, this.onSelected,

View File

@@ -1,14 +1,14 @@
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:pshared/models/recipient/recipient.dart'; import 'package:pshared/models/recipient/recipient.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/avatar.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/avatar.dart';
class ShortListAdressBookPayout extends StatelessWidget { class ShortListAddressBookPayout extends StatelessWidget {
final List<Recipient> recipients; final List<Recipient> recipients;
final ValueChanged<Recipient> onSelected; final ValueChanged<Recipient> onSelected;
const ShortListAdressBookPayout({ const ShortListAddressBookPayout({
super.key, super.key,
required this.recipients, required this.recipients,
required this.onSelected, required this.onSelected,

View File

@@ -6,26 +6,26 @@ import 'package:pshared/models/recipient/recipient.dart';
import 'package:pshared/provider/recipient/provider.dart'; import 'package:pshared/provider/recipient/provider.dart';
import 'package:pweb/pages/address_book/page/search.dart'; import 'package:pweb/pages/address_book/page/search.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/long_list/widget.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/long_list/widget.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/placeholder.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/placeholder.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/short_list.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/short_list.dart';
import 'package:pweb/generated/i18n/app_localizations.dart'; import 'package:pweb/generated/i18n/app_localizations.dart';
class AdressBookPayout extends StatefulWidget { class AddressBookPayout extends StatefulWidget {
final ValueChanged<Recipient> onSelected; final ValueChanged<Recipient> onSelected;
const AdressBookPayout({ const AddressBookPayout({
super.key, super.key,
required this.onSelected, required this.onSelected,
}); });
@override @override
State<AdressBookPayout> createState() => _AdressBookPayoutState(); State<AddressBookPayout> createState() => _AddressBookPayoutState();
} }
class _AdressBookPayoutState extends State<AdressBookPayout> { class _AddressBookPayoutState extends State<AddressBookPayout> {
static const double _expandedHeight = 400; static const double _expandedHeight = 400;
static const double _collapsedHeight = 200; static const double _collapsedHeight = 200;
static const double _cardMargin = 1; static const double _cardMargin = 1;
@@ -95,11 +95,11 @@ class _AdressBookPayoutState extends State<AdressBookPayout> {
: _isExpanded && filteredRecipients.isEmpty : _isExpanded && filteredRecipients.isEmpty
? AddressBookPlaceholder(text: loc.noRecipientsFound) ? AddressBookPlaceholder(text: loc.noRecipientsFound)
: _isExpanded : _isExpanded
? LongListAdressBookPayout( ? LongListAddressBookPayout(
filteredRecipients: filteredRecipients, filteredRecipients: filteredRecipients,
onSelected: widget.onSelected, onSelected: widget.onSelected,
) )
: ShortListAdressBookPayout( : ShortListAddressBookPayout(
recipients: recipients, recipients: recipients,
onSelected: widget.onSelected, onSelected: widget.onSelected,
), ),

View File

@@ -2,7 +2,7 @@ import 'package:flutter/material.dart';
import 'package:pshared/models/recipient/recipient.dart'; import 'package:pshared/models/recipient/recipient.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/avatar.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/avatar.dart';
class RecipientHeader extends StatelessWidget{ class RecipientHeader extends StatelessWidget{

View File

@@ -3,7 +3,7 @@ import 'package:flutter/material.dart';
import 'package:pshared/models/payment/type.dart'; import 'package:pshared/models/payment/type.dart';
import 'package:pshared/models/recipient/recipient.dart'; import 'package:pshared/models/recipient/recipient.dart';
import 'package:pweb/pages/dashboard/payouts/single/adress_book/widget.dart'; import 'package:pweb/pages/dashboard/payouts/single/address_book/widget.dart';
import 'package:pweb/pages/dashboard/payouts/single/new_recipient/payout.dart'; import 'package:pweb/pages/dashboard/payouts/single/new_recipient/payout.dart';
@@ -25,7 +25,7 @@ class SinglePayoutForm extends StatelessWidget {
return Column( return Column(
crossAxisAlignment: CrossAxisAlignment.stretch, crossAxisAlignment: CrossAxisAlignment.stretch,
children: [ children: [
AdressBookPayout(onSelected: onRecipientSelected), AddressBookPayout(onSelected: onRecipientSelected),
const SizedBox(height: _spacingBetweenAddressAndForm), const SizedBox(height: _spacingBetweenAddressAndForm),
SinglePayout(onGoToPayment: onGoToPayment), SinglePayout(onGoToPayment: onGoToPayment),
const SizedBox(height: _bottomSpacing), const SizedBox(height: _bottomSpacing),