enable lint prefer_single_quotes (#12665)
This commit is contained in:
committed by
GitHub
parent
b07ea41954
commit
1fce14a31c
@@ -104,7 +104,7 @@ void main() {
|
||||
final RenderParagraph paragraph = new RenderParagraph(
|
||||
const TextSpan(
|
||||
style: const TextStyle(color: Colors.black87),
|
||||
text: "Touch me!",
|
||||
text: 'Touch me!',
|
||||
),
|
||||
textDirection: TextDirection.ltr,
|
||||
);
|
||||
|
||||
@@ -46,21 +46,21 @@ class Calculator {
|
||||
try {
|
||||
final List<dynamic> result = decoder.convert(_data);
|
||||
final int n = result.length;
|
||||
onResultListener("Decoded $n results");
|
||||
onResultListener('Decoded $n results');
|
||||
} catch (e, stack) {
|
||||
print("Invalid JSON file: $e");
|
||||
print('Invalid JSON file: $e');
|
||||
print(stack);
|
||||
}
|
||||
}
|
||||
|
||||
static String _replicateJson(String data, int count) {
|
||||
final StringBuffer buffer = new StringBuffer()..write("[");
|
||||
final StringBuffer buffer = new StringBuffer()..write('[');
|
||||
for (int i = 0; i < count; i++) {
|
||||
buffer.write(data);
|
||||
if (i < count - 1)
|
||||
buffer.write(',');
|
||||
}
|
||||
buffer.write("]");
|
||||
buffer.write(']');
|
||||
return buffer.toString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ final List<List<String>> _kNameLines = _kDialogText
|
||||
.toList();
|
||||
|
||||
final TextStyle _kDaveStyle = new TextStyle(color: Colors.indigo.shade400, height: 1.8);
|
||||
final TextStyle _kHalStyle = new TextStyle(color: Colors.red.shade400, fontFamily: "monospace");
|
||||
final TextStyle _kHalStyle = new TextStyle(color: Colors.red.shade400, fontFamily: 'monospace');
|
||||
final TextStyle _kBold = const TextStyle(fontWeight: FontWeight.bold);
|
||||
final TextStyle _kUnderline = const TextStyle(
|
||||
decoration: TextDecoration.underline,
|
||||
@@ -33,7 +33,7 @@ final TextStyle _kUnderline = const TextStyle(
|
||||
);
|
||||
|
||||
Widget toStyledText(String name, String text) {
|
||||
final TextStyle lineStyle = (name == "Dave") ? _kDaveStyle : _kHalStyle;
|
||||
final TextStyle lineStyle = (name == 'Dave') ? _kDaveStyle : _kHalStyle;
|
||||
return new RichText(
|
||||
key: new Key(text),
|
||||
text: new TextSpan(
|
||||
@@ -55,7 +55,7 @@ Widget toStyledText(String name, String text) {
|
||||
);
|
||||
}
|
||||
|
||||
Widget toPlainText(String name, String text) => new Text(name + ":" + text);
|
||||
Widget toPlainText(String name, String text) => new Text(name + ':' + text);
|
||||
|
||||
class SpeakerSeparator extends StatelessWidget {
|
||||
@override
|
||||
|
||||
Reference in New Issue
Block a user