2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-13 10:45:29 +00:00

Add ability to edit Part object

This commit is contained in:
Oliver Walters
2020-04-18 23:18:53 +10:00
parent 8374691d8c
commit 16cdae42ed
4 changed files with 125 additions and 5 deletions

View File

@ -3,12 +3,13 @@ import 'package:flutter/material.dart';
class QuantityField extends TextFormField {
QuantityField({String label = "", String hint = "", double max = null, TextEditingController controller}) :
QuantityField({String label = "", String hint = "", String initial = "", double max = null, TextEditingController controller}) :
super(
decoration: InputDecoration(
labelText: label,
hintText: hint,
),
initialValue: initial,
controller: controller,
keyboardType: TextInputType.numberWithOptions(signed: false, decimal: true),
validator: (value) {