Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 15 additions & 12 deletions lib/src/css_box_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,22 @@ class CssBoxWidget extends StatelessWidget {
textDirection: direction,
shrinkWrap: shrinkWrap,
children: [
Container(
decoration: BoxDecoration(
border: style.border,
color: style.backgroundColor, //Colors the padding and content boxes
ClipRRect(
borderRadius: style.borderRadius ?? BorderRadius.zero,
child: Container(
decoration: BoxDecoration(
border: style.border,
color: style.backgroundColor, //Colors the padding and content boxes
),
width: _shouldExpandToFillBlock() ? double.infinity : null,
padding: padding,
child: top
? child
: MediaQuery(
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
child: child,
),
),
width: _shouldExpandToFillBlock() ? double.infinity : null,
padding: padding,
child: top
? child
: MediaQuery(
data: MediaQuery.of(context).copyWith(textScaleFactor: 1.0),
child: child,
),
),
if (markerBox != null) Text.rich(markerBox),
],
Expand Down
Loading