add version text
This commit is contained in:
@@ -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,
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user