chore: Follow up null safety fixes
This commit is contained in:
parent
6e84720f0f
commit
d87c4de5b0
3 changed files with 23 additions and 18 deletions
|
|
@ -63,14 +63,17 @@ class StickerPickerDialogState extends State<StickerPickerDialog> {
|
|||
physics: const NeverScrollableScrollPhysics(),
|
||||
itemBuilder: (BuildContext context, int imageIndex) {
|
||||
final image = pack.images[imageKeys[imageIndex]]!;
|
||||
final fakeEvent = Event.fromJson(<String, dynamic>{
|
||||
'type': EventTypes.Sticker,
|
||||
'content': <String, dynamic>{
|
||||
final fakeEvent = Event(
|
||||
type: EventTypes.Sticker,
|
||||
content: {
|
||||
'url': image.url.toString(),
|
||||
'info': image.info,
|
||||
},
|
||||
'event_id': 'fake_event',
|
||||
}, widget.room);
|
||||
originServerTs: DateTime.now(),
|
||||
room: widget.room,
|
||||
eventId: 'fake_event',
|
||||
senderId: widget.room.client.userID!,
|
||||
);
|
||||
return InkWell(
|
||||
key: ValueKey(image.url.toString()),
|
||||
onTap: () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue