Skip to content

Commit

Permalink
Update server_page.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Wooge123 authored Sep 3, 2024
1 parent 63f39bb commit 8c7b2fb
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 deletions flutter/lib/mobile/pages/server_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -514,35 +514,35 @@ class ServerInfo extends StatelessWidget {
})
]).marginOnly(left: 39, bottom: 10),
// Password
Row(children: [
const Icon(Icons.lock_outline, color: Colors.grey, size: iconSize)
.marginOnly(right: iconMarginRight),
Text(
translate('One-time Password'),
style: textStyleHeading,
)
]),
Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
Text(
isPermanent ? '-' : model.serverPasswd.value.text,
style: textStyleValue,
),
isPermanent
? SizedBox.shrink()
: Row(children: [
IconButton(
visualDensity: VisualDensity.compact,
icon: const Icon(Icons.refresh),
onPressed: () => bind.mainUpdateTemporaryPassword()),
IconButton(
visualDensity: VisualDensity.compact,
icon: Icon(Icons.copy_outlined),
onPressed: () {
copyToClipboard(
model.serverPasswd.value.text.trim());
})
])
]).marginOnly(left: 40, bottom: 15),
// Row(children: [
// const Icon(Icons.lock_outline, color: Colors.grey, size: iconSize)
// .marginOnly(right: iconMarginRight),
// Text(
// translate('One-time Password'),
// style: textStyleHeading,
// )
// ]),
// Row(mainAxisAlignment: MainAxisAlignment.spaceBetween, children: [
// Text(
// isPermanent ? '-' : model.serverPasswd.value.text,
// style: textStyleValue,
// ),
// isPermanent
// ? SizedBox.shrink()
// : Row(children: [
// IconButton(
// visualDensity: VisualDensity.compact,
// icon: const Icon(Icons.refresh),
// onPressed: () => bind.mainUpdateTemporaryPassword()),
// IconButton(
// visualDensity: VisualDensity.compact,
// icon: Icon(Icons.copy_outlined),
// onPressed: () {
// copyToClipboard(
// model.serverPasswd.value.text.trim());
// })
// ])
// ]).marginOnly(left: 40, bottom: 15),
ConnectionStateNotification()
],
));
Expand Down

0 comments on commit 8c7b2fb

Please sign in to comment.