mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-11 22:38:54 +03:30
1.7.0
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user