mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-01-13 16:49:30 -05:00
fix scrolling
This commit is contained in:
parent
44ba5fcbb8
commit
d2a7fdbe4d
@ -30,7 +30,6 @@ class ContactInvitationItemWidget extends ConsumerWidget {
|
|||||||
final scale = theme.extension<ScaleScheme>()!;
|
final scale = theme.extension<ScaleScheme>()!;
|
||||||
|
|
||||||
return Container(
|
return Container(
|
||||||
margin: const EdgeInsets.fromLTRB(4, 4, 4, 0),
|
|
||||||
clipBehavior: Clip.antiAlias,
|
clipBehavior: Clip.antiAlias,
|
||||||
decoration: ShapeDecoration(
|
decoration: ShapeDecoration(
|
||||||
color: scale.tertiaryScale.subtleBorder,
|
color: scale.tertiaryScale.subtleBorder,
|
||||||
|
@ -46,10 +46,7 @@ class ContactInvitationListWidgetState
|
|||||||
borderRadius: BorderRadius.circular(16),
|
borderRadius: BorderRadius.circular(16),
|
||||||
)),
|
)),
|
||||||
constraints: const BoxConstraints(maxHeight: 200),
|
constraints: const BoxConstraints(maxHeight: 200),
|
||||||
child: Column(
|
child: Container(
|
||||||
mainAxisSize: MainAxisSize.min,
|
|
||||||
children: [
|
|
||||||
Container(
|
|
||||||
width: double.infinity,
|
width: double.infinity,
|
||||||
decoration: ShapeDecoration(
|
decoration: ShapeDecoration(
|
||||||
color: scale.primaryScale.subtleBackground,
|
color: scale.primaryScale.subtleBackground,
|
||||||
@ -67,23 +64,18 @@ class ContactInvitationListWidgetState
|
|||||||
return ContactInvitationItemWidget(
|
return ContactInvitationItemWidget(
|
||||||
contactInvitationRecord:
|
contactInvitationRecord:
|
||||||
widget.contactInvitationRecordList[index],
|
widget.contactInvitationRecordList[index],
|
||||||
key: ObjectKey(
|
key: ObjectKey(widget.contactInvitationRecordList[index]))
|
||||||
widget.contactInvitationRecordList[index]))
|
.paddingLTRB(4, 2, 4, 2);
|
||||||
.paddingAll(2);
|
|
||||||
},
|
},
|
||||||
findChildIndexCallback: (key) {
|
findChildIndexCallback: (key) {
|
||||||
final index = widget.contactInvitationRecordList.indexOf(
|
final index = widget.contactInvitationRecordList.indexOf(
|
||||||
(key as ObjectKey).value!
|
(key as ObjectKey).value! as proto.ContactInvitationRecord);
|
||||||
as proto.ContactInvitationRecord);
|
|
||||||
if (index == -1) {
|
if (index == -1) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
return index;
|
return index;
|
||||||
},
|
},
|
||||||
shrinkWrap: true,
|
).paddingLTRB(4, 6, 4, 6)),
|
||||||
).paddingLTRB(0, 0, 0, 4))
|
|
||||||
],
|
|
||||||
),
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user