use raw strings to avoid escaping (#50322)

This commit is contained in:
Alexandre Ardhuin
2020-02-07 16:35:55 +01:00
committed by GitHub
parent 8735ab1e35
commit b953c3e5a8
28 changed files with 171 additions and 157 deletions

View File

@@ -250,7 +250,7 @@ class TextFormFieldDemoState extends State<TextFormFieldDemo> {
decoration: const InputDecoration(
border: OutlineInputBorder(),
labelText: 'Salary',
prefixText: '\$',
prefixText: r'$',
suffixText: 'USD',
suffixStyle: TextStyle(color: Colors.green),
),