change quote to avoid escapes (#50368)
This commit is contained in:
committed by
GitHub
parent
fd1062debd
commit
f15c887c63
@@ -141,7 +141,7 @@ class _CupertinoAlertDemoState extends State<CupertinoAlertDemo> {
|
||||
'for directions, nearby search results, and estimated travel times.'),
|
||||
actions: <Widget>[
|
||||
CupertinoDialogAction(
|
||||
child: const Text('Don\'t Allow'),
|
||||
child: const Text("Don't Allow"),
|
||||
onPressed: () => Navigator.pop(context, 'Disallow'),
|
||||
),
|
||||
CupertinoDialogAction(
|
||||
|
||||
@@ -25,7 +25,7 @@ const String _outlineText =
|
||||
const String _outlineCode = 'buttons_outline';
|
||||
|
||||
const String _dropdownText =
|
||||
'A dropdown button displays a menu that\'s used to select a value from a '
|
||||
"A dropdown button displays a menu that's used to select a value from a "
|
||||
'small set of values. The button displays the current value and a down '
|
||||
'arrow.';
|
||||
|
||||
@@ -33,7 +33,7 @@ const String _dropdownCode = 'buttons_dropdown';
|
||||
|
||||
const String _iconText =
|
||||
'IconButtons are appropriate for toggle buttons that allow a single choice '
|
||||
'to be selected or deselected, such as adding or removing an item\'s star.';
|
||||
"to be selected or deselected, such as adding or removing an item's star.";
|
||||
|
||||
const String _iconCode = 'buttons_icon';
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ class DialogDemoState extends State<DialogDemo> {
|
||||
showDemoDialog<DialogDemoAction>(
|
||||
context: context,
|
||||
child: AlertDialog(
|
||||
title: const Text('Use Google\'s location service?'),
|
||||
title: const Text("Use Google's location service?"),
|
||||
content: Text(
|
||||
_alertWithTitleText,
|
||||
style: dialogTextStyle,
|
||||
|
||||
@@ -8,7 +8,7 @@ import '../../gallery/demo.dart';
|
||||
|
||||
const String _checkboxText =
|
||||
'Checkboxes allow the user to select multiple options from a set. '
|
||||
'A normal checkbox\'s value is true or false and a tristate checkbox\'s '
|
||||
"A normal checkbox's value is true or false and a tristate checkbox's "
|
||||
'value can also be null.';
|
||||
|
||||
const String _checkboxCode = 'selectioncontrols_checkbox';
|
||||
|
||||
@@ -50,7 +50,7 @@ class _SnackBarDemoState extends State<SnackBarDemo> {
|
||||
label: 'ACTION',
|
||||
onPressed: () {
|
||||
Scaffold.of(context).showSnackBar(SnackBar(
|
||||
content: Text('You pressed snackbar $thisSnackBarIndex\'s action.'),
|
||||
content: Text("You pressed snackbar $thisSnackBarIndex's action."),
|
||||
));
|
||||
},
|
||||
),
|
||||
|
||||
@@ -108,7 +108,7 @@ class TextFormFieldDemoState extends State<TextFormFieldDemo> {
|
||||
showInSnackBar('Please fix the errors in red before submitting.');
|
||||
} else {
|
||||
form.save();
|
||||
showInSnackBar('${person.name}\'s phone number is ${person.phoneNumber}');
|
||||
showInSnackBar("${person.name}'s phone number is ${person.phoneNumber}");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -136,7 +136,7 @@ class TextFormFieldDemoState extends State<TextFormFieldDemo> {
|
||||
if (passwordField.value == null || passwordField.value.isEmpty)
|
||||
return 'Please enter a password.';
|
||||
if (passwordField.value != value)
|
||||
return 'The passwords don\'t match';
|
||||
return "The passwords don't match";
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
@@ -610,7 +610,7 @@ const List<Recipe> kPestoRecipes = <Recipe>[
|
||||
author: 'Ali Connors',
|
||||
ingredientsImagePath: 'food/icons/main.png',
|
||||
ingredientsImagePackage: _kGalleryAssetsPackage,
|
||||
description: 'With this pesto recipe, you can quickly whip up a meal to satisfy your savory needs. And if you\'re feeling festive, you can add bacon to taste.',
|
||||
description: "With this pesto recipe, you can quickly whip up a meal to satisfy your savory needs. And if you're feeling festive, you can add bacon to taste.",
|
||||
imagePath: 'food/pesto_pasta.png',
|
||||
imagePackage: _kGalleryAssetsPackage,
|
||||
ingredients: <RecipeIngredient>[
|
||||
@@ -634,7 +634,7 @@ const List<Recipe> kPestoRecipes = <Recipe>[
|
||||
author: 'Sandra Adams',
|
||||
ingredientsImagePath: 'food/icons/main.png',
|
||||
ingredientsImagePackage: _kGalleryAssetsPackage,
|
||||
description: 'Sometimes when you\'re craving some cheer in your life you can jumpstart your day with some cherry pie. Dessert for breakfast is perfectly acceptable.',
|
||||
description: "Sometimes when you're craving some cheer in your life you can jumpstart your day with some cherry pie. Dessert for breakfast is perfectly acceptable.",
|
||||
imagePath: 'food/cherry_pie.png',
|
||||
imagePackage: _kGalleryAssetsPackage,
|
||||
ingredients: <RecipeIngredient>[
|
||||
@@ -654,7 +654,7 @@ const List<Recipe> kPestoRecipes = <Recipe>[
|
||||
author: 'Peter Carlsson',
|
||||
ingredientsImagePath: 'food/icons/spicy.png',
|
||||
ingredientsImagePackage: _kGalleryAssetsPackage,
|
||||
description: 'Everyone\'s favorite leafy green is back. Paired with fresh sliced onion, it\'s ready to tackle any dish, whether it be a salad or an egg scramble.',
|
||||
description: "Everyone's favorite leafy green is back. Paired with fresh sliced onion, it's ready to tackle any dish, whether it be a salad or an egg scramble.",
|
||||
imagePath: 'food/spinach_onion_salad.png',
|
||||
imagePackage: _kGalleryAssetsPackage,
|
||||
ingredients: <RecipeIngredient>[
|
||||
@@ -694,7 +694,7 @@ const List<Recipe> kPestoRecipes = <Recipe>[
|
||||
author: 'Trevor Hansen',
|
||||
ingredientsImagePath: 'food/icons/quick.png',
|
||||
ingredientsImagePackage: _kGalleryAssetsPackage,
|
||||
description: 'You \'feta\' believe this is a crowd-pleaser! Flaky phyllo pastry surrounds a delicious mixture of spinach and cheeses to create the perfect appetizer.',
|
||||
description: "You 'feta' believe this is a crowd-pleaser! Flaky phyllo pastry surrounds a delicious mixture of spinach and cheeses to create the perfect appetizer.",
|
||||
imagePath: 'food/spanakopita.png',
|
||||
imagePackage: _kGalleryAssetsPackage,
|
||||
ingredients: <RecipeIngredient>[
|
||||
|
||||
@@ -77,7 +77,7 @@ class TabbedComponentDemoScaffold extends StatelessWidget {
|
||||
context: context,
|
||||
builder: (BuildContext context) {
|
||||
return SimpleDialog(
|
||||
title: const Text('Couldn\'t display URL:'),
|
||||
title: const Text("Couldn't display URL:"),
|
||||
children: <Widget>[
|
||||
Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16.0),
|
||||
|
||||
Reference in New Issue
Block a user