mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-07-21 05:38:42 -04:00
fix fitting
This commit is contained in:
parent
19a366dcab
commit
6102f32587
1 changed files with 29 additions and 22 deletions
|
@ -75,6 +75,9 @@ class _ContactsDialogState extends State<ContactsDialog> {
|
||||||
: null,
|
: null,
|
||||||
actions: [
|
actions: [
|
||||||
if (_selectedContact != null)
|
if (_selectedContact != null)
|
||||||
|
FittedBox(
|
||||||
|
fit: BoxFit.scaleDown,
|
||||||
|
child:
|
||||||
Column(mainAxisSize: MainAxisSize.min, children: [
|
Column(mainAxisSize: MainAxisSize.min, children: [
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.chat_bubble),
|
icon: const Icon(Icons.chat_bubble),
|
||||||
|
@ -83,21 +86,25 @@ class _ContactsDialogState extends State<ContactsDialog> {
|
||||||
await onChatStarted(_selectedContact!);
|
await onChatStarted(_selectedContact!);
|
||||||
}),
|
}),
|
||||||
Text(translate('contacts_dialog.new_chat'),
|
Text(translate('contacts_dialog.new_chat'),
|
||||||
style: theme.textTheme.labelSmall!
|
style: theme.textTheme.labelSmall!.copyWith(
|
||||||
.copyWith(color: scale.primaryScale.borderText)),
|
color: scale.primaryScale.borderText)),
|
||||||
]).paddingLTRB(8, 0, 8, 0),
|
])).paddingLTRB(8, 0, 8, 0),
|
||||||
if (enableSplit && _selectedContact != null)
|
if (enableSplit && _selectedContact != null)
|
||||||
|
FittedBox(
|
||||||
|
fit: BoxFit.scaleDown,
|
||||||
|
child:
|
||||||
Column(mainAxisSize: MainAxisSize.min, children: [
|
Column(mainAxisSize: MainAxisSize.min, children: [
|
||||||
IconButton(
|
IconButton(
|
||||||
icon: const Icon(Icons.close),
|
icon: const Icon(Icons.close),
|
||||||
tooltip: translate('contacts_dialog.close_contact'),
|
tooltip:
|
||||||
|
translate('contacts_dialog.close_contact'),
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
await onContactSelected(null);
|
await onContactSelected(null);
|
||||||
}),
|
}),
|
||||||
Text(translate('contacts_dialog.close_contact'),
|
Text(translate('contacts_dialog.close_contact'),
|
||||||
style: theme.textTheme.labelSmall!
|
style: theme.textTheme.labelSmall!.copyWith(
|
||||||
.copyWith(color: scale.primaryScale.borderText)),
|
color: scale.primaryScale.borderText)),
|
||||||
]).paddingLTRB(8, 0, 8, 0),
|
])).paddingLTRB(8, 0, 8, 0),
|
||||||
]),
|
]),
|
||||||
body: LayoutBuilder(builder: (context, constraint) {
|
body: LayoutBuilder(builder: (context, constraint) {
|
||||||
final maxWidth = constraint.maxWidth;
|
final maxWidth = constraint.maxWidth;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue