add version text

This commit is contained in:
Sai Naw Wun
2020-11-09 05:53:25 +06:30
parent 84e8053040
commit 08c90fce74
12 changed files with 258 additions and 138 deletions

View File

@@ -52,6 +52,17 @@ class _ReceivingEditorState extends State<ReceivingEditor> {
} else {
package = new Package();
}
_trackingIDCtl.addListener(() {
var text = _trackingIDCtl.text;
if (text.contains(RegExp(r'[a-z ]'))) {
text = text.toUpperCase().replaceAll(" ", "");
_trackingIDCtl.value = _trackingIDCtl.value.copyWith(
text: text,
selection:
TextSelection(baseOffset: text.length, extentOffset: text.length),
);
}
});
}
@override
@@ -158,7 +169,9 @@ class _ReceivingEditorState extends State<ReceivingEditor> {
height: 10,
),
remarkBox,
Divider(),
img,
Divider(),
SizedBox(
height: 10,
),