update term

This commit is contained in:
tzw
2021-10-12 10:22:57 +06:30
parent 65bfdf4762
commit bdd3caa15c
5 changed files with 19 additions and 10 deletions

View File

@@ -90,7 +90,13 @@ class _TermEditState extends State<TermEdit> {
],
bottom: TabBar(
onTap: (index) {
// Tab index when user select it, it start from zero
if (index == 0) {
_focusNodeEng = new FocusNode();
FocusScope.of(context).requestFocus(_focusNodeEng);
} else {
_focusNodeMm = new FocusNode();
FocusScope.of(context).requestFocus(_focusNodeMm);
}
},
tabs: [
Tab(