From 5b594b7c7c91e3a1e493228e0036452dc90af2db Mon Sep 17 00:00:00 2001 From: Hixie Date: Fri, 19 Jun 2015 16:11:18 -0700 Subject: [PATCH] Turn on wavy underlines. The waves aren't very pretty yet (they are too short somehow), I'll fix that in a subsequent CL. I abstracted out the wavy underline code so that it doesn't duplicate the code for horizontal and vertical lines. R=abarth@chromium.org Review URL: https://codereview.chromium.org/1201503003. --- examples/widgets/styled_text.dart | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/examples/widgets/styled_text.dart b/examples/widgets/styled_text.dart index f9c9804549..4ce79bd63a 100644 --- a/examples/widgets/styled_text.dart +++ b/examples/widgets/styled_text.dart @@ -44,7 +44,11 @@ HAL: This mission is too important for me to allow you to jeopardize it.'''; final TextStyle daveStyle = new TextStyle(color: Indigo[400]); final TextStyle halStyle = new TextStyle(color: Red[400], fontFamily: "monospace"); final TextStyle boldStyle = const TextStyle(fontWeight: bold); - final TextStyle underlineStyle = const TextStyle(decoration: underline); + final TextStyle underlineStyle = const TextStyle( + decoration: underline, + decorationColor: const Color(0xFF000000), + decorationStyle: TextDecorationStyle.wavy + ); Component toStyledText(String name, String text) { TextStyle lineStyle = (name == "Dave") ? daveStyle : halStyle;