mirror of
https://github.com/weyne85/rustdesk.git
synced 2025-10-29 17:00:05 +00:00
decode json with utf8 from names and show account info
Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
@@ -1369,7 +1369,7 @@ class _AccountState extends State<_Account> {
|
||||
physics: DraggableNeverScrollableScrollPhysics(),
|
||||
controller: scrollController,
|
||||
children: [
|
||||
_Card(title: 'Account', children: [accountAction()]),
|
||||
_Card(title: 'Account', children: [accountAction(), useInfo()]),
|
||||
],
|
||||
).marginOnly(bottom: _kListViewBottomMargin));
|
||||
}
|
||||
@@ -1383,6 +1383,26 @@ class _AccountState extends State<_Account> {
|
||||
: gFFI.userModel.logOut()
|
||||
}));
|
||||
}
|
||||
|
||||
Widget useInfo() {
|
||||
text(String key, String value) {
|
||||
return Align(
|
||||
alignment: Alignment.centerLeft,
|
||||
child: SelectionArea(child: Text('${translate(key)}: $value'))
|
||||
.marginSymmetric(vertical: 4),
|
||||
);
|
||||
}
|
||||
|
||||
return Obx(() => Offstage(
|
||||
offstage: gFFI.userModel.userName.value.isEmpty,
|
||||
child: Column(
|
||||
children: [
|
||||
text('Username', gFFI.userModel.userName.value),
|
||||
text('Group', gFFI.groupModel.groupName.value),
|
||||
],
|
||||
),
|
||||
)).marginOnly(left: 18, top: 16);
|
||||
}
|
||||
}
|
||||
|
||||
class _Checkbox extends StatefulWidget {
|
||||
|
||||
Reference in New Issue
Block a user