Skip to content

Commit

Permalink
DONE
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielChang98 committed Jan 13, 2021
1 parent e56a50a commit 199e236
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/ui/farm/harvesting/form_storeHarvesting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ class _StoreHarvestingState extends State<StoreHarvesting> {
name: 'harvestQuantity',
validator: FormBuilderValidators.compose([
FormBuilderValidators.required(context),
FormBuilderValidators.integer(context, errorText: "Enter numbers only."),
]),
keyboardType: TextInputType.number,
decoration: InputDecoration(
Expand Down
1 change: 1 addition & 0 deletions lib/ui/farm/planting/form_storePlanting.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ class _formStorePlantingState extends State<formStorePlanting> {
name: 'plantNumber',
validator: FormBuilderValidators.compose([
FormBuilderValidators.required(context),
FormBuilderValidators.integer(context, errorText: "Enter numbers only."),
]),
keyboardType: TextInputType.number,
decoration: InputDecoration(
Expand Down

0 comments on commit 199e236

Please sign in to comment.