|
|
|
@ -27,8 +27,13 @@ class _PentryPMKitFormState extends State<PentryPMKitForm> {
|
|
|
|
|
final subtitle = AppLocalization.of(context).subtitle;
|
|
|
|
|
return ListView.builder(
|
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
|
top: 12 * AppStyle.getScaleFactor(context), left: 12 * AppStyle.getScaleFactor(context), right: 12 * AppStyle.getScaleFactor(context), bottom: 80 * AppStyle.getScaleFactor(context)),
|
|
|
|
|
top: 12 * AppStyle.getScaleFactor(context),
|
|
|
|
|
left: 12 * AppStyle.getScaleFactor(context),
|
|
|
|
|
right: 12 * AppStyle.getScaleFactor(context),
|
|
|
|
|
bottom: 100 * AppStyle.getScaleFactor(context) + MediaQuery.of(context).padding.bottom,
|
|
|
|
|
),
|
|
|
|
|
itemCount: widget.models.length + 1,
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
itemBuilder: (context, index) {
|
|
|
|
|
if (index == widget.models.length) {
|
|
|
|
|
return AButton(
|
|
|
|
@ -40,9 +45,8 @@ class _PentryPMKitFormState extends State<PentryPMKitForm> {
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
final model = widget.models[index];
|
|
|
|
|
return ListView(
|
|
|
|
|
shrinkWrap: true,
|
|
|
|
|
physics: const ClampingScrollPhysics(),
|
|
|
|
|
return Column(
|
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
|
children: [
|
|
|
|
|
Row(
|
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceBetween,
|
|
|
|
@ -76,83 +80,12 @@ class _PentryPMKitFormState extends State<PentryPMKitForm> {
|
|
|
|
|
const SizedBox(
|
|
|
|
|
height: 8,
|
|
|
|
|
),
|
|
|
|
|
// const ASubTitle("Item Name"),
|
|
|
|
|
// const SizedBox(height: 4,),
|
|
|
|
|
// ATextFormField(
|
|
|
|
|
// initialValue: (model.itemName ?? "").toString(),
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
// textInputType: TextInputType.text,
|
|
|
|
|
// onChange: (value){
|
|
|
|
|
// model.itemName = value;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(height: 8,),
|
|
|
|
|
// const ASubTitle("Preparation Time Frame"),
|
|
|
|
|
// const SizedBox(height: 4,),
|
|
|
|
|
// ATextFormField(
|
|
|
|
|
// initialValue: (model.preparationTimeFrame ?? "").toString(),
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
// textInputType: TextInputType.text,
|
|
|
|
|
// onChange: (value){
|
|
|
|
|
// model.preparationTimeFrame = value;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(height: 8,),
|
|
|
|
|
// const ASubTitle("kit Frequency Demand"),
|
|
|
|
|
// const SizedBox(height: 4,),
|
|
|
|
|
// ATextFormField(
|
|
|
|
|
// initialValue: (model.kitFrequencyDemand ?? "").toString(),
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
// textInputType: TextInputType.text,
|
|
|
|
|
// onChange: (value){
|
|
|
|
|
// model.kitFrequencyDemand = value;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(height: 8,),
|
|
|
|
|
// const ASubTitle("Availability"),
|
|
|
|
|
// const SizedBox(height: 4,),
|
|
|
|
|
// ATextFormField(
|
|
|
|
|
// initialValue: (model.availability ?? "").toString(),
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
// textInputType: TextInputType.text,
|
|
|
|
|
// onChange: (value){
|
|
|
|
|
// model.availability = value;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(height: 8,),
|
|
|
|
|
// const ASubTitle("Quantity Needed"),
|
|
|
|
|
// const SizedBox(height: 4,),
|
|
|
|
|
// ATextFormField(
|
|
|
|
|
// initialValue: (model.quantityNeeded ?? "").toString(),
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
// textInputType: TextInputType.number,
|
|
|
|
|
// onChange: (value){
|
|
|
|
|
// model.quantityNeeded = value;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(height: 8,),
|
|
|
|
|
// const ASubTitle("Quantity Reserved"),
|
|
|
|
|
// const SizedBox(height: 4,),
|
|
|
|
|
// ATextFormField(
|
|
|
|
|
// initialValue: (model.quantityReserved ?? "").toString(),
|
|
|
|
|
// textAlign: TextAlign.center,
|
|
|
|
|
// style: Theme.of(context).textTheme.subtitle1,
|
|
|
|
|
// textInputType: TextInputType.number,
|
|
|
|
|
// onChange: (value){
|
|
|
|
|
// model.quantityReserved = value;
|
|
|
|
|
// },
|
|
|
|
|
// ),
|
|
|
|
|
// const SizedBox(height: 8,),
|
|
|
|
|
Divider(
|
|
|
|
|
color: Theme.of(context).textTheme.titleMedium.color,
|
|
|
|
|
),
|
|
|
|
|
],
|
|
|
|
|
);
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|