add mix carton

This commit is contained in:
Sai Naw Wun
2020-10-21 02:59:10 +06:30
parent b87703c693
commit 9aefc585ec
23 changed files with 393 additions and 519 deletions

View File

@@ -10,7 +10,8 @@ class LengthPicker extends StatefulWidget {
final String lableKey;
final bool isReadOnly;
const LengthPicker({Key key, this.controller, this.lableKey, this.isReadOnly})
const LengthPicker(
{Key key, this.controller, this.lableKey, this.isReadOnly = false})
: super(key: key);
@override
@@ -42,9 +43,7 @@ class _LengthPickerState extends State<LengthPicker> {
@override
Widget build(BuildContext context) {
return InkWell(
onTap: () => widget.isReadOnly == null
? _showDialog(context)
: widget.isReadOnly ? null : _showDialog(context),
onTap: widget.isReadOnly ? null : () => _showDialog(context),
child: Padding(
padding: EdgeInsets.only(left: 8, right: 8),
child: InputText(