update boxes

This commit is contained in:
Thinzar Win
2020-10-14 16:53:16 +06:30
parent 6c871ea066
commit 4862f1123d
11 changed files with 894 additions and 264 deletions

View File

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