Mobile. Share Screen. Connection card button align right
This commit is contained in:
parent
772ce658cf
commit
90cc95b1d0
@ -361,7 +361,8 @@ class ConnectionManager extends StatelessWidget {
|
|||||||
? const SizedBox.shrink()
|
? const SizedBox.shrink()
|
||||||
: IconButton(
|
: IconButton(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
gFFI.chatModel.changeCurrentID(client.id);
|
gFFI.chatModel
|
||||||
|
.changeCurrentID(client.id);
|
||||||
final bar =
|
final bar =
|
||||||
navigationBarKey.currentWidget;
|
navigationBarKey.currentWidget;
|
||||||
if (bar != null) {
|
if (bar != null) {
|
||||||
@ -376,38 +377,44 @@ class ConnectionManager extends StatelessWidget {
|
|||||||
? const SizedBox.shrink()
|
? const SizedBox.shrink()
|
||||||
: Text(
|
: Text(
|
||||||
translate("android_new_connection_tip"),
|
translate("android_new_connection_tip"),
|
||||||
style: Theme.of(globalKey.currentContext!)
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
.textTheme
|
).marginOnly(bottom: 5),
|
||||||
.bodyMedium,
|
|
||||||
),
|
|
||||||
client.authorized
|
client.authorized
|
||||||
? ElevatedButton.icon(
|
? Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
children: [
|
||||||
|
ElevatedButton.icon(
|
||||||
style: ButtonStyle(
|
style: ButtonStyle(
|
||||||
backgroundColor:
|
backgroundColor:
|
||||||
MaterialStatePropertyAll(Colors.red)),
|
MaterialStatePropertyAll(
|
||||||
|
Colors.red)),
|
||||||
icon: const Icon(Icons.close),
|
icon: const Icon(Icons.close),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
bind.cmCloseConnection(connId: client.id);
|
bind.cmCloseConnection(
|
||||||
|
connId: client.id);
|
||||||
gFFI.invokeMethod(
|
gFFI.invokeMethod(
|
||||||
"cancel_notification", client.id);
|
"cancel_notification", client.id);
|
||||||
},
|
},
|
||||||
label: Text(translate("Disconnect")))
|
label: Text(translate("Disconnect")))
|
||||||
: Row(children: [
|
])
|
||||||
|
: Row(
|
||||||
|
mainAxisAlignment: MainAxisAlignment.end,
|
||||||
|
children: [
|
||||||
TextButton(
|
TextButton(
|
||||||
child: Text(translate("Dismiss")),
|
child: Text(translate("Dismiss")),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
serverModel.sendLoginResponse(client, false);
|
serverModel.sendLoginResponse(
|
||||||
}),
|
client, false);
|
||||||
const SizedBox(width: 20),
|
}).marginOnly(right: 15),
|
||||||
ElevatedButton.icon(
|
ElevatedButton.icon(
|
||||||
icon: const Icon(Icons.check),
|
icon: const Icon(Icons.check),
|
||||||
label: Text(translate("Accept")),
|
label: Text(translate("Accept")),
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
serverModel.sendLoginResponse(client, true);
|
serverModel.sendLoginResponse(
|
||||||
|
client, true);
|
||||||
}),
|
}),
|
||||||
]),
|
]),
|
||||||
],
|
])))
|
||||||
)))
|
|
||||||
.toList());
|
.toList());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user