mirror of
https://github.com/rustdesk/rustdesk.git
synced 2025-06-07 18:02:48 +08:00
mobile peers tab padding
This commit is contained in:
parent
5625a061a4
commit
285d415a5a
@ -80,6 +80,7 @@ class _PeerTabPageState extends State<PeerTabPage>
|
|||||||
SizedBox(
|
SizedBox(
|
||||||
height: 28,
|
height: 28,
|
||||||
child: Container(
|
child: Container(
|
||||||
|
padding: isDesktop ? null : EdgeInsets.symmetric(horizontal: 2),
|
||||||
constraints: isDesktop ? null : kMobilePageConstraints,
|
constraints: isDesktop ? null : kMobilePageConstraints,
|
||||||
child: Row(
|
child: Row(
|
||||||
crossAxisAlignment: CrossAxisAlignment.center,
|
crossAxisAlignment: CrossAxisAlignment.center,
|
||||||
|
@ -64,7 +64,7 @@ class _PeerCardState extends State<_PeerCard>
|
|||||||
Widget _buildMobile() {
|
Widget _buildMobile() {
|
||||||
final peer = super.widget.peer;
|
final peer = super.widget.peer;
|
||||||
return Card(
|
return Card(
|
||||||
margin: EdgeInsets.zero,
|
margin: EdgeInsets.symmetric(horizontal: 2),
|
||||||
child: GestureDetector(
|
child: GestureDetector(
|
||||||
onTap: !isWebDesktop ? () => connect(context, peer.id) : null,
|
onTap: !isWebDesktop ? () => connect(context, peer.id) : null,
|
||||||
onDoubleTap: isWebDesktop ? () => connect(context, peer.id) : null,
|
onDoubleTap: isWebDesktop ? () => connect(context, peer.id) : null,
|
||||||
|
@ -89,7 +89,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
|
|||||||
const AddressBook(),
|
const AddressBook(),
|
||||||
],
|
],
|
||||||
)),
|
)),
|
||||||
]).marginOnly(top: 2, left: 12, right: 12);
|
]).marginOnly(top: 2, left: 10, right: 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Callback for the connect button.
|
/// Callback for the connect button.
|
||||||
@ -158,7 +158,7 @@ class _ConnectionPageState extends State<ConnectionPage> {
|
|||||||
final w = SizedBox(
|
final w = SizedBox(
|
||||||
height: 84,
|
height: 84,
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.only(top: 8, bottom: 8),
|
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 2),
|
||||||
child: Ink(
|
child: Ink(
|
||||||
decoration: const BoxDecoration(
|
decoration: const BoxDecoration(
|
||||||
color: MyTheme.white,
|
color: MyTheme.white,
|
||||||
|
Loading…
Reference in New Issue
Block a user