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,29 +75,36 @@ class _ContactsDialogState extends State<ContactsDialog> {
|
|||||||
: null,
|
: null,
|
||||||
actions: [
|
actions: [
|
||||||
if (_selectedContact != null)
|
if (_selectedContact != null)
|
||||||
Column(mainAxisSize: MainAxisSize.min, children: [
|
FittedBox(
|
||||||
IconButton(
|
fit: BoxFit.scaleDown,
|
||||||
icon: const Icon(Icons.chat_bubble),
|
child:
|
||||||
tooltip: translate('contacts_dialog.new_chat'),
|
Column(mainAxisSize: MainAxisSize.min, children: [
|
||||||
onPressed: () async {
|
IconButton(
|
||||||
await onChatStarted(_selectedContact!);
|
icon: const Icon(Icons.chat_bubble),
|
||||||
}),
|
tooltip: translate('contacts_dialog.new_chat'),
|
||||||
Text(translate('contacts_dialog.new_chat'),
|
onPressed: () async {
|
||||||
style: theme.textTheme.labelSmall!
|
await onChatStarted(_selectedContact!);
|
||||||
.copyWith(color: scale.primaryScale.borderText)),
|
}),
|
||||||
]).paddingLTRB(8, 0, 8, 0),
|
Text(translate('contacts_dialog.new_chat'),
|
||||||
|
style: theme.textTheme.labelSmall!.copyWith(
|
||||||
|
color: scale.primaryScale.borderText)),
|
||||||
|
])).paddingLTRB(8, 0, 8, 0),
|
||||||
if (enableSplit && _selectedContact != null)
|
if (enableSplit && _selectedContact != null)
|
||||||
Column(mainAxisSize: MainAxisSize.min, children: [
|
FittedBox(
|
||||||
IconButton(
|
fit: BoxFit.scaleDown,
|
||||||
icon: const Icon(Icons.close),
|
child:
|
||||||
tooltip: translate('contacts_dialog.close_contact'),
|
Column(mainAxisSize: MainAxisSize.min, children: [
|
||||||
onPressed: () async {
|
IconButton(
|
||||||
await onContactSelected(null);
|
icon: const Icon(Icons.close),
|
||||||
}),
|
tooltip:
|
||||||
Text(translate('contacts_dialog.close_contact'),
|
translate('contacts_dialog.close_contact'),
|
||||||
style: theme.textTheme.labelSmall!
|
onPressed: () async {
|
||||||
.copyWith(color: scale.primaryScale.borderText)),
|
await onContactSelected(null);
|
||||||
]).paddingLTRB(8, 0, 8, 0),
|
}),
|
||||||
|
Text(translate('contacts_dialog.close_contact'),
|
||||||
|
style: theme.textTheme.labelSmall!.copyWith(
|
||||||
|
color: scale.primaryScale.borderText)),
|
||||||
|
])).paddingLTRB(8, 0, 8, 0),
|
||||||
]),
|
]),
|
||||||
body: LayoutBuilder(builder: (context, constraint) {
|
body: LayoutBuilder(builder: (context, constraint) {
|
||||||
final maxWidth = constraint.maxWidth;
|
final maxWidth = constraint.maxWidth;
|
||||||
|
Loading…
Reference in New Issue
Block a user