Skip to content

Commit 466cde7

Browse files
committed
chore: reverted changes to SBBMessage
1 parent eef03b5 commit 466cde7

18 files changed

+17
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ It is expected that you keep this format strictly, since we depend on it in our
2424
### Changed
2525

2626
- (auto): updated icon lib to version 1.8.11
27-
- BREAKING: removed default margin / padding on components `SBBMessage` and `SBBTextField` (#402)
27+
- BREAKING: removed default left margin on component `SBBTextField` (#402)
2828

2929
## [4.2.0] - 2025-10-03
3030

lib/src/message/sbb_message.dart

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -116,20 +116,23 @@ class SBBMessage extends StatelessWidget {
116116
@override
117117
Widget build(BuildContext context) {
118118
final textTheme = Theme.of(context).textTheme;
119-
return Column(
120-
mainAxisSize: MainAxisSize.min,
121-
children: [
122-
if (_showLeading) ...[
123-
if (isLoading) _loadingIndicator(context),
124-
if (!isLoading) customIllustration ?? _illustration(context),
125-
const SizedBox(height: _messageSpacing),
119+
return Padding(
120+
padding: const EdgeInsets.all(sbbDefaultSpacing),
121+
child: Column(
122+
mainAxisSize: MainAxisSize.min,
123+
children: [
124+
if (_showLeading) ...[
125+
if (isLoading) _loadingIndicator(context),
126+
if (!isLoading) customIllustration ?? _illustration(context),
127+
const SizedBox(height: _messageSpacing),
128+
],
129+
_title(textTheme),
130+
const SizedBox(height: sbbDefaultSpacing),
131+
_description(textTheme),
132+
if (messageCode != null) ...[const SizedBox(height: sbbDefaultSpacing), _errorCode(textTheme)],
133+
if (_showInteractionButton) ...[const SizedBox(height: _messageSpacing), _interactionButton()],
126134
],
127-
_title(textTheme),
128-
const SizedBox(height: sbbDefaultSpacing),
129-
_description(textTheme),
130-
if (messageCode != null) ...[const SizedBox(height: sbbDefaultSpacing), _errorCode(textTheme)],
131-
if (_showInteractionButton) ...[const SizedBox(height: _messageSpacing), _interactionButton()],
132-
],
135+
),
133136
);
134137
}
135138

-163 Bytes
Loading
-168 Bytes
Loading
-133 Bytes
Loading
-138 Bytes
Loading
-208 Bytes
Loading
-180 Bytes
Loading
-173 Bytes
Loading
-152 Bytes
Loading

0 commit comments

Comments
 (0)