Specify keyboard types
This commit is contained in:
parent
4d76ae59ab
commit
6dc62a676e
|
|
@ -242,6 +242,7 @@ class ItemEditDetailsState extends State<ItemEditDetails> {
|
||||||
label: localization.product,
|
label: localization.product,
|
||||||
controller: _productKeyController,
|
controller: _productKeyController,
|
||||||
onSavePressed: widget.entityViewModel.onSavePressed,
|
onSavePressed: widget.entityViewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
|
|
|
||||||
|
|
@ -241,6 +241,7 @@ class _PaymentEditState extends State<PaymentEdit> {
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
validator: (value) =>
|
validator: (value) =>
|
||||||
value.isEmpty ? localization.pleaseEnterAValue : null,
|
value.isEmpty ? localization.pleaseEnterAValue : null,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
if (payment.isNew || payment.isApplying == true)
|
if (payment.isNew || payment.isApplying == true)
|
||||||
for (var index = 0; index < invoicePaymentables.length; index++)
|
for (var index = 0; index < invoicePaymentables.length; index++)
|
||||||
|
|
@ -297,6 +298,7 @@ class _PaymentEditState extends State<PaymentEdit> {
|
||||||
controller: _transactionReferenceController,
|
controller: _transactionReferenceController,
|
||||||
label: localization.transactionReference,
|
label: localization.transactionReference,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
CustomField(
|
CustomField(
|
||||||
controller: _custom1Controller,
|
controller: _custom1Controller,
|
||||||
|
|
@ -382,6 +384,7 @@ class _PaymentEditState extends State<PaymentEdit> {
|
||||||
controller: _exchangeRateController,
|
controller: _exchangeRateController,
|
||||||
label: localization.exchangeRate,
|
label: localization.exchangeRate,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
),
|
),
|
||||||
Focus(
|
Focus(
|
||||||
onFocusChange: (hasFocus) {
|
onFocusChange: (hasFocus) {
|
||||||
|
|
@ -421,6 +424,8 @@ class _PaymentEditState extends State<PaymentEdit> {
|
||||||
_convertedAmount = parseDouble(value);
|
_convertedAmount = parseDouble(value);
|
||||||
},
|
},
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(
|
||||||
|
decimal: true, signed: false),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|
|
||||||
|
|
@ -158,6 +158,7 @@ class _ProductEditState extends State<ProductEdit> {
|
||||||
: null,
|
: null,
|
||||||
autovalidate: _autoValidate,
|
autovalidate: _autoValidate,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
keyboardType: TextInputType.multiline,
|
keyboardType: TextInputType.multiline,
|
||||||
|
|
|
||||||
|
|
@ -233,6 +233,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit>
|
||||||
controller: _nameController,
|
controller: _nameController,
|
||||||
label: localization.name,
|
label: localization.name,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
),
|
),
|
||||||
DynamicSelector(
|
DynamicSelector(
|
||||||
entityType: EntityType.group,
|
entityType: EntityType.group,
|
||||||
|
|
@ -372,6 +373,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit>
|
||||||
label: localization.promoCode,
|
label: localization.promoCode,
|
||||||
controller: _promoCodeController,
|
controller: _promoCodeController,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DiscountField(
|
DiscountField(
|
||||||
label: localization.promoDiscount,
|
label: localization.promoDiscount,
|
||||||
|
|
@ -488,6 +490,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit>
|
||||||
controller: _postPurchaseHeaderKeyController,
|
controller: _postPurchaseHeaderKeyController,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
onChanged: (value) => setState(() {}),
|
onChanged: (value) => setState(() {}),
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|
@ -499,6 +502,7 @@ class _SubscriptionEditState extends State<SubscriptionEdit>
|
||||||
controller: _postPurchaseHeaderValueController,
|
controller: _postPurchaseHeaderValueController,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
onChanged: (value) => setState(() {}),
|
onChanged: (value) => setState(() {}),
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|
|
||||||
|
|
@ -229,7 +229,7 @@ class _TaskEditDesktopState extends State<TaskEditDesktop> {
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _numberController,
|
controller: _numberController,
|
||||||
label: localization.taskNumber,
|
label: localization.taskNumber,
|
||||||
isMoney: false,
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
key: ValueKey('__rate__'),
|
key: ValueKey('__rate__'),
|
||||||
|
|
|
||||||
|
|
@ -173,6 +173,7 @@ class _TaskEditDetailsState extends State<TaskEditDetails> {
|
||||||
controller: _numberController,
|
controller: _numberController,
|
||||||
label: localization.taskNumber,
|
label: localization.taskNumber,
|
||||||
autocorrect: false,
|
autocorrect: false,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
key: ValueKey('__rate__'),
|
key: ValueKey('__rate__'),
|
||||||
|
|
|
||||||
|
|
@ -90,6 +90,7 @@ class _KanbanTaskCardState extends State<KanbanTaskCard> {
|
||||||
minLines: 2,
|
minLines: 2,
|
||||||
maxLines: 10,
|
maxLines: 10,
|
||||||
onChanged: (value) => _description = value,
|
onChanged: (value) => _description = value,
|
||||||
|
keyboardType: TextInputType.multiline,
|
||||||
),
|
),
|
||||||
SizedBox(height: 12),
|
SizedBox(height: 12),
|
||||||
Row(
|
Row(
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,7 @@ class _KanbanStatusCardState extends State<KanbanStatusCard> {
|
||||||
maxLines: 1,
|
maxLines: 1,
|
||||||
onChanged: (value) => _name = value,
|
onChanged: (value) => _name = value,
|
||||||
onSavePressed: (context) => _onSavePressed(),
|
onSavePressed: (context) => _onSavePressed(),
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
SizedBox(height: 8),
|
SizedBox(height: 8),
|
||||||
Row(
|
Row(
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,7 @@ class _TaskStatusEditState extends State<TaskStatusEdit> {
|
||||||
controller: _nameController,
|
controller: _nameController,
|
||||||
autovalidate: _autoValidate,
|
autovalidate: _autoValidate,
|
||||||
label: localization.name,
|
label: localization.name,
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
validator: (val) => val.isEmpty || val.trim().isEmpty
|
validator: (val) => val.isEmpty || val.trim().isEmpty
|
||||||
? localization.pleaseEnterAName
|
? localization.pleaseEnterAName
|
||||||
: null,
|
: null,
|
||||||
|
|
|
||||||
|
|
@ -104,12 +104,14 @@ class _TaxRateEditState extends State<TaxRateEdit> {
|
||||||
: null,
|
: null,
|
||||||
autovalidate: autoValidate,
|
autovalidate: autoValidate,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.rate,
|
label: localization.rate,
|
||||||
controller: _rateController,
|
controller: _rateController,
|
||||||
isPercent: true,
|
isPercent: true,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.numberWithOptions(decimal: true),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -109,6 +109,7 @@ class _TokenEditState extends State<TokenEdit> {
|
||||||
? localization.pleaseEnterAName
|
? localization.pleaseEnterAName
|
||||||
: null,
|
: null,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
|
|
||||||
|
|
@ -199,6 +199,7 @@ class _UserEditState extends State<UserEdit>
|
||||||
: null,
|
: null,
|
||||||
autovalidate: autoValidate,
|
autovalidate: autoValidate,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.lastName,
|
label: localization.lastName,
|
||||||
|
|
@ -208,6 +209,7 @@ class _UserEditState extends State<UserEdit>
|
||||||
: null,
|
: null,
|
||||||
autovalidate: autoValidate,
|
autovalidate: autoValidate,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.email,
|
label: localization.email,
|
||||||
|
|
@ -217,11 +219,13 @@ class _UserEditState extends State<UserEdit>
|
||||||
: null,
|
: null,
|
||||||
autovalidate: autoValidate,
|
autovalidate: autoValidate,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.emailAddress,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
label: localization.phone,
|
label: localization.phone,
|
||||||
controller: _phoneController,
|
controller: _phoneController,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.phone,
|
||||||
),
|
),
|
||||||
/*
|
/*
|
||||||
PasswordFormField(
|
PasswordFormField(
|
||||||
|
|
|
||||||
|
|
@ -106,26 +106,31 @@ class VendorEditAddressState extends State<VendorEditAddress> {
|
||||||
controller: _address1Controller,
|
controller: _address1Controller,
|
||||||
label: localization.address1,
|
label: localization.address1,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.streetAddress,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _address2Controller,
|
controller: _address2Controller,
|
||||||
label: localization.address2,
|
label: localization.address2,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _cityController,
|
controller: _cityController,
|
||||||
label: localization.city,
|
label: localization.city,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _stateController,
|
controller: _stateController,
|
||||||
label: localization.state,
|
label: localization.state,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _postalCodeController,
|
controller: _postalCodeController,
|
||||||
label: localization.postalCode,
|
label: localization.postalCode,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
EntityDropdown(
|
EntityDropdown(
|
||||||
entityType: EntityType.country,
|
entityType: EntityType.country,
|
||||||
|
|
|
||||||
|
|
@ -264,11 +264,13 @@ class VendorContactEditDetailsState extends State<VendorContactEditDetails> {
|
||||||
controller: _firstNameController,
|
controller: _firstNameController,
|
||||||
onSavePressed: (_) => _onDoneContactPressed(),
|
onSavePressed: (_) => _onDoneContactPressed(),
|
||||||
label: localization.firstName,
|
label: localization.firstName,
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _lastNameController,
|
controller: _lastNameController,
|
||||||
onSavePressed: (_) => _onDoneContactPressed(),
|
onSavePressed: (_) => _onDoneContactPressed(),
|
||||||
label: localization.lastName,
|
label: localization.lastName,
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _emailController,
|
controller: _emailController,
|
||||||
|
|
|
||||||
|
|
@ -177,6 +177,7 @@ class VendorEditDetailsState extends State<VendorEditDetails> {
|
||||||
: null,
|
: null,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
label: localization.name,
|
label: localization.name,
|
||||||
|
keyboardType: TextInputType.name,
|
||||||
decoration: !kIsWeb && (Platform.isIOS || Platform.isAndroid)
|
decoration: !kIsWeb && (Platform.isIOS || Platform.isAndroid)
|
||||||
? InputDecoration(
|
? InputDecoration(
|
||||||
labelText: localization.name,
|
labelText: localization.name,
|
||||||
|
|
@ -203,6 +204,7 @@ class VendorEditDetailsState extends State<VendorEditDetails> {
|
||||||
label: localization.number,
|
label: localization.number,
|
||||||
controller: _numberController,
|
controller: _numberController,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
UserPicker(
|
UserPicker(
|
||||||
userId: vendor.assignedUserId,
|
userId: vendor.assignedUserId,
|
||||||
|
|
@ -213,11 +215,13 @@ class VendorEditDetailsState extends State<VendorEditDetails> {
|
||||||
controller: _idNumberController,
|
controller: _idNumberController,
|
||||||
label: localization.idNumber,
|
label: localization.idNumber,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _vatNumberController,
|
controller: _vatNumberController,
|
||||||
label: localization.vatNumber,
|
label: localization.vatNumber,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
DecoratedFormField(
|
DecoratedFormField(
|
||||||
controller: _websiteController,
|
controller: _websiteController,
|
||||||
|
|
|
||||||
|
|
@ -159,6 +159,7 @@ class _WebhookEditState extends State<WebhookEdit> {
|
||||||
controller: _headerKeyController,
|
controller: _headerKeyController,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
onChanged: (value) => setState(() {}),
|
onChanged: (value) => setState(() {}),
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|
@ -170,6 +171,7 @@ class _WebhookEditState extends State<WebhookEdit> {
|
||||||
controller: _headerValueController,
|
controller: _headerValueController,
|
||||||
onSavePressed: viewModel.onSavePressed,
|
onSavePressed: viewModel.onSavePressed,
|
||||||
onChanged: (value) => setState(() {}),
|
onChanged: (value) => setState(() {}),
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
SizedBox(
|
SizedBox(
|
||||||
|
|
|
||||||
|
|
@ -130,6 +130,7 @@ void confirmCallback({
|
||||||
onChanged: (value) => _typed = value,
|
onChanged: (value) => _typed = value,
|
||||||
hint: typeToConfirm,
|
hint: typeToConfirm,
|
||||||
onSavePressed: (context) => _onPressed(),
|
onSavePressed: (context) => _onPressed(),
|
||||||
|
keyboardType: TextInputType.text,
|
||||||
),
|
),
|
||||||
if (askForReason) ...[
|
if (askForReason) ...[
|
||||||
SizedBox(height: 30),
|
SizedBox(height: 30),
|
||||||
|
|
@ -138,6 +139,7 @@ void confirmCallback({
|
||||||
onChanged: (value) => _reason = value,
|
onChanged: (value) => _reason = value,
|
||||||
minLines: 4,
|
minLines: 4,
|
||||||
maxLines: 4,
|
maxLines: 4,
|
||||||
|
keyboardType: TextInputType.multiline,
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
SizedBox(height: 30),
|
SizedBox(height: 30),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue