fix image rendering
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
||||
## 0.2.0-alpha+8
|
||||
## 0.2.0-alpha+9
|
||||
|
||||
- Add `attachmentBuilders` to `MessageWidget` and `MessageListView`
|
||||
|
||||
|
||||
@@ -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));
|
||||
|
||||
@@ -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
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user