hotfix message ui overflow
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
## 0.1.9
|
||||||
|
|
||||||
|
- Fix message ui overflow
|
||||||
|
|
||||||
## 0.1.8
|
## 0.1.8
|
||||||
|
|
||||||
- Bug fix
|
- Bug fix
|
||||||
|
|||||||
@@ -502,6 +502,7 @@ class _MessageInputState extends State<MessageInput> {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
context: context,
|
context: context,
|
||||||
|
isScrollControlled: true,
|
||||||
builder: (_) {
|
builder: (_) {
|
||||||
return Column(
|
return Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
|
|||||||
@@ -404,7 +404,8 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
borderRadius: boxDecoration.borderRadius,
|
borderRadius: boxDecoration.borderRadius,
|
||||||
child: Container(
|
child: Container(
|
||||||
decoration: boxDecoration,
|
decoration: boxDecoration,
|
||||||
constraints: BoxConstraints.loose(Size.fromWidth(300)),
|
constraints: BoxConstraints.loose(
|
||||||
|
Size.fromWidth(MediaQuery.of(context).size.width * 0.7)),
|
||||||
child: Stack(
|
child: Stack(
|
||||||
children: <Widget>[
|
children: <Widget>[
|
||||||
Column(
|
Column(
|
||||||
@@ -447,7 +448,8 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
decoration:
|
decoration:
|
||||||
_buildBoxDecoration(_isLastUser || nOfAttachmentWidgets > 0),
|
_buildBoxDecoration(_isLastUser || nOfAttachmentWidgets > 0),
|
||||||
padding: EdgeInsets.all(10),
|
padding: EdgeInsets.all(10),
|
||||||
constraints: BoxConstraints.loose(Size.fromWidth(300)),
|
constraints: BoxConstraints.loose(
|
||||||
|
Size.fromWidth(MediaQuery.of(context).size.width * 0.7)),
|
||||||
child: Column(
|
child: Column(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
crossAxisAlignment: CrossAxisAlignment.start,
|
crossAxisAlignment: CrossAxisAlignment.start,
|
||||||
@@ -571,7 +573,12 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
child: Container(
|
child: Container(
|
||||||
constraints: BoxConstraints.loose(Size(300, 500)),
|
constraints: BoxConstraints.loose(
|
||||||
|
Size(
|
||||||
|
MediaQuery.of(context).size.width * 0.7,
|
||||||
|
500,
|
||||||
|
),
|
||||||
|
),
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(8.0),
|
padding: const EdgeInsets.all(8.0),
|
||||||
child: Column(
|
child: Column(
|
||||||
@@ -582,7 +589,7 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
attachment.title,
|
attachment.title,
|
||||||
overflow: TextOverflow.ellipsis,
|
overflow: TextOverflow.ellipsis,
|
||||||
style: _messageTheme.messageText.copyWith(
|
style: _messageTheme.messageText.copyWith(
|
||||||
color: Colors.blue,
|
color: StreamChatTheme.of(context).accentColor,
|
||||||
fontWeight: FontWeight.bold,
|
fontWeight: FontWeight.bold,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
@@ -658,7 +665,7 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
_isMyMessage
|
_isMyMessage
|
||||||
? FlatButton(
|
? FlatButton(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(28.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Delete message',
|
'Delete message',
|
||||||
style: theme.textTheme.headline
|
style: theme.textTheme.headline
|
||||||
@@ -677,7 +684,7 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
_isMyMessage
|
_isMyMessage
|
||||||
? FlatButton(
|
? FlatButton(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(28.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Edit message',
|
'Edit message',
|
||||||
style: theme.textTheme.headline,
|
style: theme.textTheme.headline,
|
||||||
@@ -696,7 +703,7 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
!widget.isParent)
|
!widget.isParent)
|
||||||
? FlatButton(
|
? FlatButton(
|
||||||
child: Padding(
|
child: Padding(
|
||||||
padding: const EdgeInsets.all(28.0),
|
padding: const EdgeInsets.all(16.0),
|
||||||
child: Text(
|
child: Text(
|
||||||
'Start a thread',
|
'Start a thread',
|
||||||
style: theme.textTheme.headline,
|
style: theme.textTheme.headline,
|
||||||
@@ -719,6 +726,7 @@ class _MessageWidgetState extends State<MessageWidget>
|
|||||||
context: context,
|
context: context,
|
||||||
elevation: 2,
|
elevation: 2,
|
||||||
clipBehavior: Clip.hardEdge,
|
clipBehavior: Clip.hardEdge,
|
||||||
|
isScrollControlled: true,
|
||||||
shape: RoundedRectangleBorder(
|
shape: RoundedRectangleBorder(
|
||||||
borderRadius: BorderRadius.only(
|
borderRadius: BorderRadius.only(
|
||||||
topLeft: Radius.circular(32),
|
topLeft: Radius.circular(32),
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ class ReactionPicker extends StatelessWidget {
|
|||||||
@required this.reactionToEmoji,
|
@required this.reactionToEmoji,
|
||||||
@required this.message,
|
@required this.message,
|
||||||
@required this.channel,
|
@required this.channel,
|
||||||
this.size = 40,
|
this.size = 30,
|
||||||
}) : super(key: key);
|
}) : super(key: key);
|
||||||
|
|
||||||
final Map<String, String> reactionToEmoji;
|
final Map<String, String> reactionToEmoji;
|
||||||
|
|||||||
+3
-3
@@ -1,7 +1,7 @@
|
|||||||
name: stream_chat_flutter
|
name: stream_chat_flutter
|
||||||
homepage: https://github.com/GetStream/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.
|
description: Stream Chat official Flutter SDK. Build your own chat experience using Dart and Flutter.
|
||||||
version: 0.1.8
|
version: 0.1.9
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: ">=2.3.0 <3.0.0"
|
sdk: ">=2.3.0 <3.0.0"
|
||||||
@@ -11,7 +11,7 @@ dependencies:
|
|||||||
sdk: flutter
|
sdk: flutter
|
||||||
rxdart: ^0.23.1
|
rxdart: ^0.23.1
|
||||||
flutter_widgets: ^0.1.11
|
flutter_widgets: ^0.1.11
|
||||||
jiffy: ^3.0.0
|
jiffy: ^3.0.1
|
||||||
cached_network_image: ^2.0.0
|
cached_network_image: ^2.0.0
|
||||||
flutter_markdown: ^0.3.4
|
flutter_markdown: ^0.3.4
|
||||||
url_launcher: ^5.4.2
|
url_launcher: ^5.4.2
|
||||||
@@ -20,7 +20,7 @@ dependencies:
|
|||||||
file_picker: ^1.4.3+2
|
file_picker: ^1.4.3+2
|
||||||
image_picker: ^0.6.3+4
|
image_picker: ^0.6.3+4
|
||||||
keyboard_visibility: ^0.5.6
|
keyboard_visibility: ^0.5.6
|
||||||
stream_chat: ^0.1.18
|
stream_chat: ^0.1.19
|
||||||
|
|
||||||
dev_dependencies:
|
dev_dependencies:
|
||||||
pedantic: ^1.9.0
|
pedantic: ^1.9.0
|
||||||
|
|||||||
Reference in New Issue
Block a user