mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2024-10-01 06:55:46 -04:00
fix fitting
This commit is contained in:
parent
19a366dcab
commit
6102f32587
@ -75,6 +75,9 @@ class _ContactsDialogState extends State<ContactsDialog> {
|
||||
: null,
|
||||
actions: [
|
||||
if (_selectedContact != null)
|
||||
FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
child:
|
||||
Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.chat_bubble),
|
||||
@ -83,21 +86,25 @@ class _ContactsDialogState extends State<ContactsDialog> {
|
||||
await onChatStarted(_selectedContact!);
|
||||
}),
|
||||
Text(translate('contacts_dialog.new_chat'),
|
||||
style: theme.textTheme.labelSmall!
|
||||
.copyWith(color: scale.primaryScale.borderText)),
|
||||
]).paddingLTRB(8, 0, 8, 0),
|
||||
style: theme.textTheme.labelSmall!.copyWith(
|
||||
color: scale.primaryScale.borderText)),
|
||||
])).paddingLTRB(8, 0, 8, 0),
|
||||
if (enableSplit && _selectedContact != null)
|
||||
FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
child:
|
||||
Column(mainAxisSize: MainAxisSize.min, children: [
|
||||
IconButton(
|
||||
icon: const Icon(Icons.close),
|
||||
tooltip: translate('contacts_dialog.close_contact'),
|
||||
tooltip:
|
||||
translate('contacts_dialog.close_contact'),
|
||||
onPressed: () async {
|
||||
await onContactSelected(null);
|
||||
}),
|
||||
Text(translate('contacts_dialog.close_contact'),
|
||||
style: theme.textTheme.labelSmall!
|
||||
.copyWith(color: scale.primaryScale.borderText)),
|
||||
]).paddingLTRB(8, 0, 8, 0),
|
||||
style: theme.textTheme.labelSmall!.copyWith(
|
||||
color: scale.primaryScale.borderText)),
|
||||
])).paddingLTRB(8, 0, 8, 0),
|
||||
]),
|
||||
body: LayoutBuilder(builder: (context, constraint) {
|
||||
final maxWidth = constraint.maxWidth;
|
||||
|
Loading…
Reference in New Issue
Block a user