add carton from mix_box & from cargos

This commit is contained in:
Thinzar Win
2021-01-09 19:11:47 +06:30
parent 0bbd568adc
commit 9d2f9a671f
16 changed files with 583 additions and 322 deletions

View File

@@ -7,9 +7,8 @@ import 'local_text.dart';
class DialogInput extends StatefulWidget {
final String value;
final String label;
final bool isQty;
const DialogInput({Key key, this.label, this.value, this.isQty = false})
: super(key: key);
const DialogInput({Key key, this.label, this.value}) : super(key: key);
@override
_DialogInputState createState() => _DialogInputState();
}
@@ -50,7 +49,7 @@ class _DialogInputState extends State<DialogInput> {
key: _formKey,
child: TextField(
controller: _controller,
focusNode: widget.isQty ? _focusNode : FocusNode(),
focusNode: _focusNode,
autofocus: true,
keyboardType: TextInputType.number,
decoration: new InputDecoration(