Skip to content

Commit 8f9b050

Browse files
authored
fix: change in quantity input at add basic details page (#1788)
1 parent d18bd37 commit 8f9b050

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

packages/smooth_app/lib/l10n/app_en.arb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1170,8 +1170,8 @@
11701170
"add_basic_details_product_name_error": "Please enter the product name",
11711171
"brand_name": "Brand name",
11721172
"add_basic_details_brand_name_error": "Please enter the brand name",
1173-
"weight_gram": "Weight in gram",
1174-
"add_basic_details_weight_gram_error": "Please enter the weight",
1173+
"quantity": "Quantity and weight",
1174+
"add_basic_details_quantity_error": "Please enter the quantity and weight",
11751175
"barcode": "Barcode",
11761176
"basic_details_add_success": "Basic details added succesfully",
11771177
"basic_details_add_error": "Unable to add basic details. Please try again after some time",

packages/smooth_app/lib/pages/product/add_basic_details_page.dart

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,11 @@ class _AddBasicDetailsPageState extends State<AddBasicDetailsPage> {
9797
SmoothTextFormField(
9898
controller: _weightController,
9999
type: TextFieldTypes.PLAIN_TEXT,
100-
hintText: appLocalizations.weight_gram,
101-
textInputType: TextInputType.number,
100+
hintText: appLocalizations.quantity,
102101
validator: (String? value) {
103102
if (value == null || value.isEmpty) {
104103
return appLocalizations
105-
.add_basic_details_weight_gram_error;
104+
.add_basic_details_quantity_error;
106105
}
107106
return null;
108107
},

0 commit comments

Comments
 (0)