diff --git a/packages/smooth_app/lib/l10n/app_en.arb b/packages/smooth_app/lib/l10n/app_en.arb index 32c3e32b94c..d9bc5342399 100644 --- a/packages/smooth_app/lib/l10n/app_en.arb +++ b/packages/smooth_app/lib/l10n/app_en.arb @@ -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", diff --git a/packages/smooth_app/lib/pages/product/add_basic_details_page.dart b/packages/smooth_app/lib/pages/product/add_basic_details_page.dart index baba9c3353c..9f272a24808 100644 --- a/packages/smooth_app/lib/pages/product/add_basic_details_page.dart +++ b/packages/smooth_app/lib/pages/product/add_basic_details_page.dart @@ -97,12 +97,11 @@ class _AddBasicDetailsPageState extends State { 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; },