Skip to content

Commit

Permalink
fix: change in quantity input at add basic details page (#1788)
Browse files Browse the repository at this point in the history
  • Loading branch information
bhattabhi013 authored May 8, 2022
1 parent d18bd37 commit 8f9b050
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions packages/smooth_app/lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -1170,8 +1170,8 @@
"add_basic_details_product_name_error": "Please enter the product name",
"brand_name": "Brand name",
"add_basic_details_brand_name_error": "Please enter the brand name",
"weight_gram": "Weight in gram",
"add_basic_details_weight_gram_error": "Please enter the weight",
"quantity": "Quantity and weight",
"add_basic_details_quantity_error": "Please enter the quantity and weight",
"barcode": "Barcode",
"basic_details_add_success": "Basic details added succesfully",
"basic_details_add_error": "Unable to add basic details. Please try again after some time",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,12 +97,11 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {
SmoothTextFormField(
controller: _weightController,
type: TextFieldTypes.PLAIN_TEXT,
hintText: appLocalizations.weight_gram,
textInputType: TextInputType.number,
hintText: appLocalizations.quantity,
validator: (String? value) {
if (value == null || value.isEmpty) {
return appLocalizations
.add_basic_details_weight_gram_error;
.add_basic_details_quantity_error;
}
return null;
},
Expand Down

0 comments on commit 8f9b050

Please sign in to comment.