Skip to content

Commit

Permalink
Fixed multiline texts overflowing
Browse files Browse the repository at this point in the history
  • Loading branch information
conrad-mo committed Aug 13, 2023
1 parent 9f10611 commit 0dd8488
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions lib/components/text_bubble.dart
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,12 @@ class _TextBubbleState extends State<TextBubble> {
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.end,
children: [
Text(
widget.message,
textAlign: TextAlign.center,
SizedBox(
width: widget.message.length > 26 ? 200 : null,
child: Text(
widget.message,
textAlign: TextAlign.left,
),
)
],
),
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
# In Windows, build-name is used as the major, minor, and patch parts
# of the product and file versions while build-number is used as the build suffix.
version: 1.0.0+1
version: 1.0.1+1

environment:
sdk: '>=3.0.6 <4.0.0'
Expand Down

0 comments on commit 0dd8488

Please sign in to comment.