This commit is contained in:
erfan
2021-01-06 11:57:21 +03:30
parent 20cc775bc1
commit 2c045f43f1
12 changed files with 302 additions and 119 deletions
@@ -167,7 +167,7 @@ class _FormCreatorState extends State<FormCreator> {
}
if (item['type'] == "Text") {
print(item['name']);
// print(item['require_scanner'].toString());
TextEditingController idCTRL = new TextEditingController();
final _media = MediaQuery.of(context);
// final double _pixelRatio = (_media.size.height / _media.size.width * 7 / 5);
@@ -176,7 +176,7 @@ class _FormCreatorState extends State<FormCreator> {
listWidgets.add(
Padding(
padding: const EdgeInsets.all(8.0),
child: item['name'] != 'Autoclave ID'
child: item['require_scanner'].toString() != '1'
? TextFormField(
controller: idCTRL,
decoration: InputDecoration(
@@ -184,7 +184,7 @@ class _FormCreatorState extends State<FormCreator> {
border: UnderlineInputBorder(),
contentPadding: EdgeInsets.all(0),
),
initialValue: item['value'] ?? '',
// initialValue: item['value'] ?? '',
onChanged: (String value) {
formItems[count]['value'] = value;
_handleChanged();
@@ -202,7 +202,7 @@ class _FormCreatorState extends State<FormCreator> {
border: UnderlineInputBorder(),
contentPadding: EdgeInsets.all(0),
),
initialValue: item['value'] ?? '',
// initialValue: item['value'] ?? '',
onChanged: (String value) {
formItems[count]['value'] = value;
_handleChanged();
@@ -340,7 +340,7 @@ class _FormCreatorState extends State<FormCreator> {
border: UnderlineInputBorder(),
contentPadding: EdgeInsets.all(0),
),
initialValue: item['value'] ?? '',
// initialValue: item['value'] ?? '',
onChanged: (String value) {
formItems[count]['value'] = value;
_handleChanged();