feat: make underline dotted and add space between underline and vocab words (#1619)

pull/1593/head
ggurdin 10 months ago committed by GitHub
parent d408910fbb
commit 37253130f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -141,10 +141,17 @@ class LemmaListSection extends StatelessWidget {
child: Text( child: Text(
"${lemma.displayText ?? lemma.construct.lemma}${index < lemmas.length - 1 ? ', ' : ''}", "${lemma.displayText ?? lemma.construct.lemma}${index < lemmas.length - 1 ? ', ' : ''}",
style: TextStyle( style: TextStyle(
color: shadows: [
Theme.of(context).colorScheme.onPrimaryFixed, Shadow(
color: Theme.of(context)
.colorScheme
.onPrimaryFixed,
offset: const Offset(0, -2.5),
),
],
color: Colors.transparent,
decoration: TextDecoration.underline, decoration: TextDecoration.underline,
decorationStyle: TextDecorationStyle.dashed, decorationStyle: TextDecorationStyle.dotted,
decorationColor: decorationColor:
Theme.of(context).colorScheme.onPrimaryFixed, Theme.of(context).colorScheme.onPrimaryFixed,
decorationThickness: 1, decorationThickness: 1,

Loading…
Cancel
Save