add mix carton
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user