Skip to content

Commit c2eda0c

Browse files
Not discarding base widget anymore,using BoxDecoration instead
1 parent ea5ff37 commit c2eda0c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

lib/widgets/katex.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,10 +131,11 @@ class _KatexSpan extends StatelessWidget {
131131
: currentColor;
132132
final double borderWidth = borderStyle.widthEm * em;
133133

134-
return Container(
134+
widget = Container(
135135
constraints: const BoxConstraints(minWidth: double.infinity),
136-
height: borderWidth,
137-
color: borderColor,
136+
decoration: BoxDecoration(
137+
border: Border(bottom: BorderSide(color: borderColor, width: borderWidth))),
138+
child: widget,
138139
);
139140
}
140141

test/model/katex_test.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -926,4 +926,4 @@ void main() async {
926926
}, skip: Platform.isWindows, // [intended] purely analyzes source, so
927927
// any one platform is enough; avoid dealing with Windows file paths
928928
);
929-
}
929+
}

0 commit comments

Comments
 (0)