Skip to content

Commit b60ba28

Browse files
committed
content [nfc]: Use Divider instead of DecoratedBox.
This should offer the same appearence for the spoiler divider despite being shorter. Signed-off-by: Zixuan James Li <[email protected]>
1 parent dbb2dcf commit b60ba28

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

lib/widgets/content.dart

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -522,12 +522,8 @@ class _SpoilerState extends State<Spoiler> with TickerProviderStateMixin {
522522
]))),
523523
FadeTransition(
524524
opacity: _animation,
525-
child: const SizedBox(height: 0, width: double.infinity,
526-
child: DecoratedBox(
527-
decoration: BoxDecoration(
528-
border: Border(
529-
// Web has the same color in light and dark mode.
530-
bottom: BorderSide(width: 1, color: Color(0xff808080))))))),
525+
// Web has the same color in light and dark mode.
526+
child: const Divider(color: Color(0xff808080), height: 1)),
531527
SizeTransition(
532528
sizeFactor: _animation,
533529
axis: Axis.vertical,

0 commit comments

Comments
 (0)