start multiline strings with newline (#50825)
This commit is contained in:
committed by
GitHub
parent
af17860513
commit
7d7ac7c32b
@@ -66,21 +66,23 @@ class ShortAppBar extends StatelessWidget {
|
||||
}
|
||||
|
||||
class FruitPage extends StatelessWidget {
|
||||
static final String paragraph1 = '''Have you ever held a quince? It's strange;
|
||||
covered in a fuzz somewhere between peach skin and a spider web. And it's
|
||||
hard as soft lumber. You'd be forgiven for thinking it's veneered Larch-wood.
|
||||
But inhale the aroma and you'll instantly know you have something wonderful.
|
||||
Its scent can fill a room for days. And all this before you've even cooked it.
|
||||
'''.replaceAll('\n', '');
|
||||
static final String paragraph1 = '''
|
||||
Have you ever held a quince? It's strange;
|
||||
covered in a fuzz somewhere between peach skin and a spider web. And it's
|
||||
hard as soft lumber. You'd be forgiven for thinking it's veneered Larch-wood.
|
||||
But inhale the aroma and you'll instantly know you have something wonderful.
|
||||
Its scent can fill a room for days. And all this before you've even cooked it.
|
||||
'''.replaceAll('\n', ' ');
|
||||
|
||||
static final String paragraph2 = '''Pomegranates on the other hand have become
|
||||
almost ubiquitous. You can find its juice in any bodega, Walmart, and even some
|
||||
gas stations. But at what cost? The pomegranate juice craze of the aughts made
|
||||
"megafarmers" Lynda and Stewart Resnick billions. Unfortunately, it takes a lot
|
||||
of water to make that much pomegranate juice. Water the Resnicks get from their
|
||||
majority stake in the Kern Water Bank. How did one family come to hold control
|
||||
over water meant for the whole central valley of California? The story will shock you.
|
||||
'''.replaceAll('\n', '');
|
||||
static final String paragraph2 = '''
|
||||
Pomegranates on the other hand have become
|
||||
almost ubiquitous. You can find its juice in any bodega, Walmart, and even some
|
||||
gas stations. But at what cost? The pomegranate juice craze of the aughts made
|
||||
"megafarmers" Lynda and Stewart Resnick billions. Unfortunately, it takes a lot
|
||||
of water to make that much pomegranate juice. Water the Resnicks get from their
|
||||
majority stake in the Kern Water Bank. How did one family come to hold control
|
||||
over water meant for the whole central valley of California? The story will shock you.
|
||||
'''.replaceAll('\n', ' ');
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
|
||||
@@ -24,7 +24,8 @@ void main() {
|
||||
});
|
||||
}
|
||||
|
||||
const String testCodeFile = '''// A fake test file
|
||||
const String testCodeFile = '''
|
||||
// A fake test file
|
||||
// START test_0
|
||||
test 0 0
|
||||
test 0 1
|
||||
|
||||
Reference in New Issue
Block a user