add: change id on flutter
This commit is contained in:
parent
fc06762a94
commit
b1382c2d57
@ -356,15 +356,19 @@ class _DesktopHomePageState extends State<DesktopHomePage> with TrayListener {
|
|||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
children: [
|
children: [
|
||||||
Text(translate("id_change_tip")),
|
Text(translate("id_change_tip")),
|
||||||
Offstage(
|
SizedBox(height: 8.0,),
|
||||||
offstage: msg.isEmpty,
|
Row(
|
||||||
child: Text(msg, style: TextStyle(color: Colors.grey),)).marginOnly(bottom: 4.0),
|
children: [
|
||||||
TextField(
|
Text("ID:").marginOnly(bottom: 16.0),
|
||||||
|
SizedBox(width: 24.0,),
|
||||||
|
Expanded(
|
||||||
|
child: TextField(
|
||||||
onChanged: (s) {
|
onChanged: (s) {
|
||||||
newId = s;
|
newId = s;
|
||||||
},
|
},
|
||||||
decoration: InputDecoration(
|
decoration: InputDecoration(
|
||||||
border: OutlineInputBorder()
|
border: OutlineInputBorder(),
|
||||||
|
errorText: msg.isEmpty ? null : translate(msg)
|
||||||
),
|
),
|
||||||
inputFormatters: [
|
inputFormatters: [
|
||||||
LengthLimitingTextInputFormatter(16),
|
LengthLimitingTextInputFormatter(16),
|
||||||
@ -372,6 +376,9 @@ class _DesktopHomePageState extends State<DesktopHomePage> with TrayListener {
|
|||||||
],
|
],
|
||||||
maxLength: 16,
|
maxLength: 16,
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
],
|
||||||
|
),
|
||||||
SizedBox(height: 4.0,),
|
SizedBox(height: 4.0,),
|
||||||
Offstage(
|
Offstage(
|
||||||
offstage: !isInProgress,
|
offstage: !isInProgress,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user