Skip to content

Commit 8768e51

Browse files
Not discarding base widget anymore,using BoxDecoration instead
1 parent a49323a commit 8768e51

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
@@ -130,10 +130,11 @@ class _KatexSpan extends StatelessWidget {
130130
: currentColor;
131131
final double borderWidth = borderStyle.widthEm * em;
132132

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

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)