@@ -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
0 commit comments