Skip to content

Commit

Permalink
Limit size of Message component so it only takes the size it needs.
Browse files Browse the repository at this point in the history
  • Loading branch information
rawi-coding committed Mar 11, 2024
1 parent 23485ae commit c070451
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/src/message/sbb_message.dart
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ class SBBMessage extends StatelessWidget {
return Padding(
padding: const EdgeInsets.all(sbbDefaultSpacing),
child: Column(
mainAxisSize: MainAxisSize.min,
children: [
if (isLoading) _loadingIndicator(context),
if (!isLoading) customIllustration ?? _defaultIllustration(context),
Expand Down
Binary file modified test/goldens/message_test_4.dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/goldens/message_test_4.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/goldens/slider_1.dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified test/goldens/slider_1.light.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c070451

Please sign in to comment.