Implement desktop client layout
This commit is contained in:
parent
1c573c6681
commit
a71eb9cd25
|
|
@ -218,7 +218,10 @@ class _ClientViewFullwidthState extends State<ClientViewFullwidth>
|
|||
(state.prefState.isPreviewVisible ? 1 : 3),
|
||||
bottom: kMobileDialogPadding,
|
||||
left: kMobileDialogPadding / 3),
|
||||
child: Scrollbar(
|
||||
controller: _scrollController,
|
||||
child: SingleChildScrollView(
|
||||
controller: _scrollController,
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
|
|
@ -236,7 +239,8 @@ class _ClientViewFullwidthState extends State<ClientViewFullwidth>
|
|||
),
|
||||
if (contact.email.isNotEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 4),
|
||||
child: CopyToClipboard(
|
||||
value: contact.email,
|
||||
child: IconText(
|
||||
|
|
@ -245,7 +249,8 @@ class _ClientViewFullwidthState extends State<ClientViewFullwidth>
|
|||
),
|
||||
if (contact.phone.isNotEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 4),
|
||||
child: CopyToClipboard(
|
||||
value: contact.phone,
|
||||
child: IconText(
|
||||
|
|
@ -272,7 +277,8 @@ class _ClientViewFullwidthState extends State<ClientViewFullwidth>
|
|||
onPressed: () {
|
||||
final url =
|
||||
'${contact.link}&client_hash=${client.clientHash}';
|
||||
Clipboard.setData(ClipboardData(text: url));
|
||||
Clipboard.setData(
|
||||
ClipboardData(text: url));
|
||||
showToast(localization.copiedToClipboard
|
||||
.replaceFirst(':value ', ''));
|
||||
},
|
||||
|
|
@ -291,6 +297,7 @@ class _ClientViewFullwidthState extends State<ClientViewFullwidth>
|
|||
}).toList()
|
||||
],
|
||||
)),
|
||||
),
|
||||
)),
|
||||
if (!state.prefState.isPreviewVisible && !state.uiState.isEditing)
|
||||
Expanded(
|
||||
|
|
|
|||
|
|
@ -175,7 +175,10 @@ class _VendorViewFullwidthState extends State<VendorViewFullwidth>
|
|||
(state.prefState.isPreviewVisible ? 1 : 3),
|
||||
bottom: kMobileDialogPadding,
|
||||
left: kMobileDialogPadding / 3),
|
||||
child: Scrollbar(
|
||||
controller: _scrollController,
|
||||
child: SingleChildScrollView(
|
||||
controller: _scrollController,
|
||||
child: Column(
|
||||
children: [
|
||||
Text(
|
||||
|
|
@ -193,7 +196,8 @@ class _VendorViewFullwidthState extends State<VendorViewFullwidth>
|
|||
),
|
||||
if (contact.email.isNotEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 4),
|
||||
child: CopyToClipboard(
|
||||
value: contact.email,
|
||||
child: IconText(
|
||||
|
|
@ -202,7 +206,8 @@ class _VendorViewFullwidthState extends State<VendorViewFullwidth>
|
|||
),
|
||||
if (contact.phone.isNotEmpty)
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(vertical: 4),
|
||||
padding:
|
||||
const EdgeInsets.symmetric(vertical: 4),
|
||||
child: CopyToClipboard(
|
||||
value: contact.phone,
|
||||
child: IconText(
|
||||
|
|
@ -215,6 +220,7 @@ class _VendorViewFullwidthState extends State<VendorViewFullwidth>
|
|||
}).toList()
|
||||
],
|
||||
)),
|
||||
),
|
||||
)),
|
||||
if (!state.prefState.isPreviewVisible && !state.uiState.isEditing)
|
||||
Expanded(
|
||||
|
|
|
|||
Loading…
Reference in New Issue