mirror of
https://git.meshkee.com/applications/cssd.git
synced 2026-10-12 17:58:55 +03:30
Other Changes
This commit is contained in:
@@ -117,20 +117,28 @@ class AddItemBox extends StatelessWidget {
|
||||
height: 70,
|
||||
padding:
|
||||
const EdgeInsets.symmetric(horizontal: 0),
|
||||
child: TextFormField(
|
||||
controller: values,
|
||||
decoration: InputDecoration(
|
||||
contentPadding: EdgeInsets.only(
|
||||
bottom: 12,
|
||||
child: Consumer<PackageProvider>(builder: (context, packageProvider, _) {
|
||||
return TextFormField(
|
||||
controller: values,
|
||||
validator: (val) {
|
||||
if (val!.isEmpty) {
|
||||
return 'Item required!';
|
||||
}
|
||||
return null;
|
||||
},
|
||||
decoration: InputDecoration(
|
||||
contentPadding: EdgeInsets.only(
|
||||
bottom: 12,
|
||||
),
|
||||
isDense: true,
|
||||
),
|
||||
isDense: true,
|
||||
),
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
color: Colors.black,
|
||||
fontSize: 4 * _deviceBlockSize,
|
||||
),
|
||||
),
|
||||
style: TextStyle(
|
||||
fontWeight: FontWeight.w700,
|
||||
color: Colors.black,
|
||||
fontSize: 4 * _deviceBlockSize,
|
||||
),
|
||||
);
|
||||
},),
|
||||
),
|
||||
isDense: true,
|
||||
items: vals.map((val) {
|
||||
|
||||
@@ -43,6 +43,7 @@ class PackageAddSaveButton extends StatelessWidget {
|
||||
for (TextEditingController item in itemValues) {
|
||||
items.add(item.text);
|
||||
}
|
||||
items = items.toSet().toList();
|
||||
await Provider.of<PackageProvider>(context, listen: false)
|
||||
.createPackageResult(
|
||||
nameCTRL.text,
|
||||
|
||||
Reference in New Issue
Block a user