fix(ui): Fix contact info not being retrieved
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
import 'dart:io';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:flutter_bloc/flutter_bloc.dart';
|
||||
import 'package:flutter_speed_dial/flutter_speed_dial.dart';
|
||||
@@ -108,17 +107,6 @@ class ConversationsPageState extends State<ConversationsPage> with TickerProvide
|
||||
super.dispose();
|
||||
}
|
||||
|
||||
Future<void> _showAvatarFullsize(BuildContext context, String path) async {
|
||||
await showDialog<void>(
|
||||
context: context,
|
||||
builder: (context) {
|
||||
return IgnorePointer(
|
||||
child: Image.file(File(path)),
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
Widget _listWrapper(BuildContext context, ConversationsState state) {
|
||||
final maxTextWidth = MediaQuery.of(context).size.width * 0.6;
|
||||
|
||||
@@ -131,9 +119,7 @@ class ConversationsPageState extends State<ConversationsPage> with TickerProvide
|
||||
maxTextWidth,
|
||||
item,
|
||||
true,
|
||||
avatarOnTap: item.avatarUrl.isNotEmpty ?
|
||||
() => _showAvatarFullsize(context, item.avatarUrl) :
|
||||
null,
|
||||
enableAvatarOnTap: true,
|
||||
key: ValueKey('conversationRow;${item.jid}'),
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user