fix image rendering

This commit is contained in:
Salvatore Giordano
2020-04-23 17:28:25 +02:00
parent 2737bf245c
commit 5df6c303ff
4 changed files with 12 additions and 6 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
## 0.2.0-alpha+8
## 0.2.0-alpha+9
- Add `attachmentBuilders` to `MessageWidget` and `MessageListView`
+5 -3
View File
@@ -65,15 +65,17 @@ void _initNotifications(Client client) {
void main() async {
final client = Client(
'b67pax5b2wdq',
's2dxdhpxd94g',
logLevel: Level.INFO,
persistenceEnabled: false,
showLocalNotification: Platform.isAndroid ? showLocalNotification : null,
);
await client.setUser(
User(id: 'falling-mountain-7'),
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoiZmFsbGluZy1tb3VudGFpbi03In0.AKgRXHMQQMz6vJAKszXdY8zMFfsAgkoUeZHlI-Szz9E',
User(id: 'super-band-9'),
'eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoic3VwZXItYmFuZC05In0.0L6lGoeLwkz0aZRUcpZKsvaXtNEDHBcezVTZ0oPq40A',
);
_initNotifications(client);
runApp(MyApp(client));
+5 -1
View File
@@ -40,7 +40,11 @@ class ImageAttachment extends StatelessWidget {
child: CachedNetworkImage(
imageBuilder: (context, provider) {
return GestureDetector(
child: Image(image: provider),
child: Image(
image: provider,
width: MediaQuery.of(context).size.width * 0.7,
fit: BoxFit.cover,
),
onTap: () {
Navigator.push(context, MaterialPageRoute(builder: (_) {
return FullScreenImage(
+1 -1
View File
@@ -1,7 +1,7 @@
name: stream_chat_flutter
homepage: https://github.com/GetStream/stream-chat-flutter
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
version: 0.2.0-alpha+8
version: 0.2.0-alpha+9
environment:
sdk: ">=2.3.0 <3.0.0"