enable lint prefer_single_quotes (#12665)
This commit is contained in:
committed by
GitHub
parent
b07ea41954
commit
1fce14a31c
@@ -5,7 +5,7 @@
|
||||
import 'dart:ui';
|
||||
|
||||
/// Whether we've been built in release mode.
|
||||
const bool _kReleaseMode = const bool.fromEnvironment("dart.vm.product");
|
||||
const bool _kReleaseMode = const bool.fromEnvironment('dart.vm.product');
|
||||
|
||||
/// When running in profile mode (or debug mode), invoke the given function.
|
||||
///
|
||||
|
||||
@@ -170,7 +170,7 @@ class HSVColor {
|
||||
int get hashCode => hashValues(alpha, hue, saturation, value);
|
||||
|
||||
@override
|
||||
String toString() => "HSVColor($alpha, $hue, $saturation, $value)";
|
||||
String toString() => 'HSVColor($alpha, $hue, $saturation, $value)';
|
||||
}
|
||||
|
||||
/// A color that has a small table of related colors called a "swatch".
|
||||
|
||||
@@ -578,7 +578,7 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver
|
||||
RenderBox child = firstChild;
|
||||
while (true) {
|
||||
final SliverMultiBoxAdaptorParentData childParentData = child.parentData;
|
||||
children.add(child.toDiagnosticsNode(name: "child with index ${childParentData.index}"));
|
||||
children.add(child.toDiagnosticsNode(name: 'child with index ${childParentData.index}'));
|
||||
if (child == lastChild)
|
||||
break;
|
||||
child = childParentData.nextSibling;
|
||||
@@ -588,7 +588,7 @@ abstract class RenderSliverMultiBoxAdaptor extends RenderSliver
|
||||
final List<int> indices = _keepAliveBucket.keys.toList()..sort();
|
||||
for (int index in indices) {
|
||||
children.add(_keepAliveBucket[index].toDiagnosticsNode(
|
||||
name: "child with index $index (kept alive offstage)",
|
||||
name: 'child with index $index (kept alive offstage)',
|
||||
style: DiagnosticsTreeStyle.offstage,
|
||||
));
|
||||
}
|
||||
|
||||
@@ -134,7 +134,7 @@ class RelativeRect {
|
||||
int get hashCode => hashValues(left, top, right, bottom);
|
||||
|
||||
@override
|
||||
String toString() => "RelativeRect.fromLTRB(${left?.toStringAsFixed(1)}, ${top?.toStringAsFixed(1)}, ${right?.toStringAsFixed(1)}, ${bottom?.toStringAsFixed(1)})";
|
||||
String toString() => 'RelativeRect.fromLTRB(${left?.toStringAsFixed(1)}, ${top?.toStringAsFixed(1)}, ${right?.toStringAsFixed(1)}, ${bottom?.toStringAsFixed(1)})';
|
||||
}
|
||||
|
||||
/// Parent data for use with [RenderStack].
|
||||
|
||||
@@ -1167,7 +1167,7 @@ class RenderTable extends RenderBox {
|
||||
description.add(new DiagnosticsProperty<TableColumnWidth>('default column width', defaultColumnWidth));
|
||||
description.add(new MessageProperty('table size', '$columns\u00D7$rows'));
|
||||
description.add(new IterableProperty<double>('column offsets', _columnLefts, ifNull: 'unknown'));
|
||||
description.add(new IterableProperty<double>('row offsets', _rowTops, ifNull: "unknown"));
|
||||
description.add(new IterableProperty<double>('row offsets', _rowTops, ifNull: 'unknown'));
|
||||
}
|
||||
|
||||
@override
|
||||
|
||||
@@ -246,7 +246,7 @@ class AssetImage extends AssetBundleImageProvider {
|
||||
return candidates[lower];
|
||||
}
|
||||
|
||||
static final RegExp _extractRatioRegExp = new RegExp(r"/?(\d+(\.\d*)?)x/");
|
||||
static final RegExp _extractRatioRegExp = new RegExp(r'/?(\d+(\.\d*)?)x/');
|
||||
|
||||
double _parseScale(String key) {
|
||||
final Match match = _extractRatioRegExp.firstMatch(key);
|
||||
|
||||
@@ -150,7 +150,7 @@ class MethodChannel {
|
||||
codec.encodeMethodCall(new MethodCall(method, arguments)),
|
||||
);
|
||||
if (result == null)
|
||||
throw new MissingPluginException("No implementation found for method $method on channel $name");
|
||||
throw new MissingPluginException('No implementation found for method $method on channel $name');
|
||||
return codec.decodeEnvelope(result);
|
||||
}
|
||||
|
||||
|
||||
@@ -367,7 +367,7 @@ class FocusScopeNode extends Object with DiagnosticableTreeMixin {
|
||||
FocusScopeNode child = _firstChild;
|
||||
int count = 1;
|
||||
while (true) {
|
||||
children.add(child.toDiagnosticsNode(name: "child $count"));
|
||||
children.add(child.toDiagnosticsNode(name: 'child $count'));
|
||||
if (child == _lastChild)
|
||||
break;
|
||||
child = child._nextSibling;
|
||||
|
||||
@@ -3833,7 +3833,7 @@ class ParentDataElement<T extends RenderObjectWidget> extends ProxyElement {
|
||||
throw new FlutterError(
|
||||
'Incorrect use of ParentDataWidget.\n' +
|
||||
widget.debugDescribeInvalidAncestorChain(
|
||||
description: "$this",
|
||||
description: '$this',
|
||||
ownershipChain: parent.debugGetCreatorChain(10),
|
||||
foundValidAncestor: ancestor != null,
|
||||
badAncestors: badAncestors
|
||||
|
||||
@@ -71,7 +71,7 @@ void main() {
|
||||
box = tester.renderObject(find.byType(ExpansionPanelList));
|
||||
expect(box.size.height - oldHeight, greaterThanOrEqualTo(100.0)); // 100 + some margin
|
||||
});
|
||||
testWidgets("Multiple Panel List test", (WidgetTester tester) async {
|
||||
testWidgets('Multiple Panel List test', (WidgetTester tester) async {
|
||||
await tester.pumpWidget(
|
||||
new MaterialApp(
|
||||
home: new ListView(
|
||||
|
||||
@@ -16,8 +16,8 @@ void main() {
|
||||
final RenderPositionedBox positioner = new RenderPositionedBox(child: sizer);
|
||||
layout(positioner, constraints: new BoxConstraints.loose(const Size(200.0, 200.0)));
|
||||
|
||||
expect(positioner.size.width, equals(200.0), reason: "positioner width");
|
||||
expect(positioner.size.height, equals(200.0), reason: "positioner height");
|
||||
expect(positioner.size.width, equals(200.0), reason: 'positioner width');
|
||||
expect(positioner.size.height, equals(200.0), reason: 'positioner height');
|
||||
});
|
||||
|
||||
test('RenderPositionedBox shrink wraps', () {
|
||||
@@ -28,21 +28,21 @@ void main() {
|
||||
final RenderPositionedBox positioner = new RenderPositionedBox(child: sizer, widthFactor: 1.0);
|
||||
layout(positioner, constraints: new BoxConstraints.loose(const Size(200.0, 200.0)));
|
||||
|
||||
expect(positioner.size.width, equals(100.0), reason: "positioner width");
|
||||
expect(positioner.size.height, equals(200.0), reason: "positioner height");
|
||||
expect(positioner.size.width, equals(100.0), reason: 'positioner width');
|
||||
expect(positioner.size.height, equals(200.0), reason: 'positioner height');
|
||||
|
||||
positioner.widthFactor = null;
|
||||
positioner.heightFactor = 1.0;
|
||||
pumpFrame();
|
||||
|
||||
expect(positioner.size.width, equals(200.0), reason: "positioner width");
|
||||
expect(positioner.size.height, equals(100.0), reason: "positioner height");
|
||||
expect(positioner.size.width, equals(200.0), reason: 'positioner width');
|
||||
expect(positioner.size.height, equals(100.0), reason: 'positioner height');
|
||||
|
||||
positioner.widthFactor = 1.0;
|
||||
pumpFrame();
|
||||
|
||||
expect(positioner.size.width, equals(100.0), reason: "positioner width");
|
||||
expect(positioner.size.height, equals(100.0), reason: "positioner height");
|
||||
expect(positioner.size.width, equals(100.0), reason: 'positioner width');
|
||||
expect(positioner.size.height, equals(100.0), reason: 'positioner height');
|
||||
});
|
||||
|
||||
test('RenderPositionedBox width and height factors', () {
|
||||
|
||||
@@ -208,7 +208,7 @@ void main() {
|
||||
..addAction(SemanticsAction.showOnScreen, () { })
|
||||
..isChecked = false
|
||||
..isSelected = true
|
||||
..label = "Use all the properties"
|
||||
..label = 'Use all the properties'
|
||||
..textDirection = TextDirection.rtl;
|
||||
final SemanticsNode allProperties = new SemanticsNode()
|
||||
..rect = new Rect.fromLTWH(50.0, 10.0, 20.0, 30.0)
|
||||
|
||||
@@ -13,11 +13,11 @@ class TestSchedulerBinding extends BindingBase with SchedulerBinding { }
|
||||
void main() {
|
||||
final SchedulerBinding scheduler = new TestSchedulerBinding();
|
||||
|
||||
test("Check for a time dilation being in effect", () {
|
||||
test('Check for a time dilation being in effect', () {
|
||||
expect(timeDilation, equals(1.0));
|
||||
});
|
||||
|
||||
test("Can cancel queued callback", () {
|
||||
test('Can cancel queued callback', () {
|
||||
int secondId;
|
||||
|
||||
bool firstCallbackRan = false;
|
||||
|
||||
@@ -96,7 +96,7 @@ class LogRecord {
|
||||
///
|
||||
/// It is meant to be read by humans. There's no guarantee that this value is
|
||||
/// stable enough to be parsed by machines.
|
||||
String get levelDescription => level.toString().split(".").last;
|
||||
String get levelDescription => level.toString().split('.').last;
|
||||
|
||||
@override
|
||||
String toString() => '[${levelDescription.padRight(5)}] $loggerName: $message';
|
||||
|
||||
@@ -11,445 +11,445 @@
|
||||
///
|
||||
/// This variable is used by [MaterialLocalizations].
|
||||
const Map<String, Map<String, String>> localizations = const <String, Map<String, String>> {
|
||||
"ar": const <String, String>{
|
||||
"scriptCategory": r"tall",
|
||||
"timeOfDayFormat": r"h:mm a",
|
||||
"openAppDrawerTooltip": r"افتح قائمة التنقل",
|
||||
"backButtonTooltip": r"الى الخلف",
|
||||
"closeButtonTooltip": r"إغلا",
|
||||
"nextMonthTooltip": r"الشهر القادم",
|
||||
"previousMonthTooltip": r"الشهر الماضى",
|
||||
"nextPageTooltip": r"الصفحة التالية",
|
||||
"previousPageTooltip": r"الصفحة السابقة",
|
||||
"showMenuTooltip": r"قائمة العرض",
|
||||
"aboutListTileTitle": r"حول $applicationName",
|
||||
"licensesPageTitle": r"التّراخيص",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow أو $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow من حوالي $rowCount",
|
||||
"rowsPerPageTitle": r"الصفوف في الصفحة:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount العناصر المحددة",
|
||||
"cancelButtonLabel": r"إلغاء",
|
||||
"closeButtonLabel": r"أغلاق",
|
||||
"continueButtonLabel": r"استمر",
|
||||
"copyButtonLabel": r"نسخ",
|
||||
"cutButtonLabel": r"كِم جارح",
|
||||
"okButtonLabel": r"حسنا",
|
||||
"pasteButtonLabel": r"عجين",
|
||||
"selectAllButtonLabel": r"اختر الكل",
|
||||
"viewLicensesButtonLabel": r"عرض التراخيص",
|
||||
"anteMeridiemAbbreviation": r"ص",
|
||||
"postMeridiemAbbreviation": r"م",
|
||||
'ar': const <String, String>{
|
||||
'scriptCategory': r'tall',
|
||||
'timeOfDayFormat': r'h:mm a',
|
||||
'openAppDrawerTooltip': r'افتح قائمة التنقل',
|
||||
'backButtonTooltip': r'الى الخلف',
|
||||
'closeButtonTooltip': r'إغلا',
|
||||
'nextMonthTooltip': r'الشهر القادم',
|
||||
'previousMonthTooltip': r'الشهر الماضى',
|
||||
'nextPageTooltip': r'الصفحة التالية',
|
||||
'previousPageTooltip': r'الصفحة السابقة',
|
||||
'showMenuTooltip': r'قائمة العرض',
|
||||
'aboutListTileTitle': r'حول $applicationName',
|
||||
'licensesPageTitle': r'التّراخيص',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow أو $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow من حوالي $rowCount',
|
||||
'rowsPerPageTitle': r'الصفوف في الصفحة:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount العناصر المحددة',
|
||||
'cancelButtonLabel': r'إلغاء',
|
||||
'closeButtonLabel': r'أغلاق',
|
||||
'continueButtonLabel': r'استمر',
|
||||
'copyButtonLabel': r'نسخ',
|
||||
'cutButtonLabel': r'كِم جارح',
|
||||
'okButtonLabel': r'حسنا',
|
||||
'pasteButtonLabel': r'عجين',
|
||||
'selectAllButtonLabel': r'اختر الكل',
|
||||
'viewLicensesButtonLabel': r'عرض التراخيص',
|
||||
'anteMeridiemAbbreviation': r'ص',
|
||||
'postMeridiemAbbreviation': r'م',
|
||||
},
|
||||
"de": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
"openAppDrawerTooltip": r"Navigationsmenü öffnen",
|
||||
"backButtonTooltip": r"Zurück",
|
||||
"closeButtonTooltip": r"Schließen",
|
||||
"nextMonthTooltip": r"Nächster Monat",
|
||||
"previousMonthTooltip": r"Vorheriger Monat",
|
||||
"nextPageTooltip": r"Nächste Seite",
|
||||
"previousPageTooltip": r"Vorherige Seite",
|
||||
"showMenuTooltip": r"Menü anzeigen",
|
||||
"aboutListTileTitle": r"Über $applicationName",
|
||||
"licensesPageTitle": r"Lizenzen",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow von $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow von etwa $rowCount",
|
||||
"rowsPerPageTitle": r"Zeilen pro Seite:",
|
||||
"selectedRowCountTitleZero": r"Keine Objekte ausgewählt",
|
||||
"selectedRowCountTitleOne": r"1 Objekt ausgewählt",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount Objekte ausgewählt",
|
||||
"cancelButtonLabel": r"ABBRECHEN",
|
||||
"closeButtonLabel": r"SCHLIESSEN",
|
||||
"continueButtonLabel": r"FORTSETZEN",
|
||||
"copyButtonLabel": r"KOPIEREN",
|
||||
"cutButtonLabel": r"AUSSCHNEIDEN",
|
||||
"okButtonLabel": r"OK",
|
||||
"pasteButtonLabel": r"EINFÜGEN",
|
||||
"selectAllButtonLabel": r"ALLES AUSWÄHLEN",
|
||||
"viewLicensesButtonLabel": r"LIZENZEN ANZEIGEN",
|
||||
'de': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
'openAppDrawerTooltip': r'Navigationsmenü öffnen',
|
||||
'backButtonTooltip': r'Zurück',
|
||||
'closeButtonTooltip': r'Schließen',
|
||||
'nextMonthTooltip': r'Nächster Monat',
|
||||
'previousMonthTooltip': r'Vorheriger Monat',
|
||||
'nextPageTooltip': r'Nächste Seite',
|
||||
'previousPageTooltip': r'Vorherige Seite',
|
||||
'showMenuTooltip': r'Menü anzeigen',
|
||||
'aboutListTileTitle': r'Über $applicationName',
|
||||
'licensesPageTitle': r'Lizenzen',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow von $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow von etwa $rowCount',
|
||||
'rowsPerPageTitle': r'Zeilen pro Seite:',
|
||||
'selectedRowCountTitleZero': r'Keine Objekte ausgewählt',
|
||||
'selectedRowCountTitleOne': r'1 Objekt ausgewählt',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount Objekte ausgewählt',
|
||||
'cancelButtonLabel': r'ABBRECHEN',
|
||||
'closeButtonLabel': r'SCHLIESSEN',
|
||||
'continueButtonLabel': r'FORTSETZEN',
|
||||
'copyButtonLabel': r'KOPIEREN',
|
||||
'cutButtonLabel': r'AUSSCHNEIDEN',
|
||||
'okButtonLabel': r'OK',
|
||||
'pasteButtonLabel': r'EINFÜGEN',
|
||||
'selectAllButtonLabel': r'ALLES AUSWÄHLEN',
|
||||
'viewLicensesButtonLabel': r'LIZENZEN ANZEIGEN',
|
||||
},
|
||||
"en": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"h:mm a",
|
||||
"openAppDrawerTooltip": r"Open navigation menu",
|
||||
"backButtonTooltip": r"Back",
|
||||
"closeButtonTooltip": r"Close",
|
||||
"nextMonthTooltip": r"Next month",
|
||||
"previousMonthTooltip": r"Previous month",
|
||||
"nextPageTooltip": r"Next page",
|
||||
"previousPageTooltip": r"Previous page",
|
||||
"showMenuTooltip": r"Show menu",
|
||||
"aboutListTileTitle": r"About $applicationName",
|
||||
"licensesPageTitle": r"Licenses",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow of $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow of about $rowCount",
|
||||
"rowsPerPageTitle": r"Rows per page:",
|
||||
"selectedRowCountTitleZero": r"No items selected",
|
||||
"selectedRowCountTitleOne": r"1 item selected",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount items selected",
|
||||
"cancelButtonLabel": r"CANCEL",
|
||||
"closeButtonLabel": r"CLOSE",
|
||||
"continueButtonLabel": r"CONTINUE",
|
||||
"copyButtonLabel": r"COPY",
|
||||
"cutButtonLabel": r"CUT",
|
||||
"okButtonLabel": r"OK",
|
||||
"pasteButtonLabel": r"PASTE",
|
||||
"selectAllButtonLabel": r"SELECT ALL",
|
||||
"viewLicensesButtonLabel": r"VIEW LICENSES",
|
||||
"anteMeridiemAbbreviation": r"AM",
|
||||
"postMeridiemAbbreviation": r"PM",
|
||||
'en': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'h:mm a',
|
||||
'openAppDrawerTooltip': r'Open navigation menu',
|
||||
'backButtonTooltip': r'Back',
|
||||
'closeButtonTooltip': r'Close',
|
||||
'nextMonthTooltip': r'Next month',
|
||||
'previousMonthTooltip': r'Previous month',
|
||||
'nextPageTooltip': r'Next page',
|
||||
'previousPageTooltip': r'Previous page',
|
||||
'showMenuTooltip': r'Show menu',
|
||||
'aboutListTileTitle': r'About $applicationName',
|
||||
'licensesPageTitle': r'Licenses',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow of $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow of about $rowCount',
|
||||
'rowsPerPageTitle': r'Rows per page:',
|
||||
'selectedRowCountTitleZero': r'No items selected',
|
||||
'selectedRowCountTitleOne': r'1 item selected',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount items selected',
|
||||
'cancelButtonLabel': r'CANCEL',
|
||||
'closeButtonLabel': r'CLOSE',
|
||||
'continueButtonLabel': r'CONTINUE',
|
||||
'copyButtonLabel': r'COPY',
|
||||
'cutButtonLabel': r'CUT',
|
||||
'okButtonLabel': r'OK',
|
||||
'pasteButtonLabel': r'PASTE',
|
||||
'selectAllButtonLabel': r'SELECT ALL',
|
||||
'viewLicensesButtonLabel': r'VIEW LICENSES',
|
||||
'anteMeridiemAbbreviation': r'AM',
|
||||
'postMeridiemAbbreviation': r'PM',
|
||||
},
|
||||
"en_GB": const <String, String>{
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
'en_GB': const <String, String>{
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
},
|
||||
"en_IE": const <String, String>{
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
'en_IE': const <String, String>{
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
},
|
||||
"en_ZA": const <String, String>{
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
'en_ZA': const <String, String>{
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
},
|
||||
"es": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"H:mm",
|
||||
"openAppDrawerTooltip": r"Abrir el menú de navegación",
|
||||
"backButtonTooltip": r"Espalda",
|
||||
"closeButtonTooltip": r"Cerrar",
|
||||
"nextMonthTooltip": r"Próximo mes",
|
||||
"previousMonthTooltip": r"Mes anterior",
|
||||
"nextPageTooltip": r"Siguiente página",
|
||||
"previousPageTooltip": r"Pagina anterior",
|
||||
"showMenuTooltip": r"Muestrame el menu",
|
||||
"aboutListTileTitle": r"Desarrollado por $applicationName",
|
||||
"licensesPageTitle": r"Licencias",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow de $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow de aproximadamente $rowCount",
|
||||
"rowsPerPageTitle": r"Filas por página:",
|
||||
"selectedRowCountTitleZero": r"No se han seleccionado elementos",
|
||||
"selectedRowCountTitleOne": r"1 artículo seleccionado",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount artículos seleccionados",
|
||||
"cancelButtonLabel": r"CANCELAR",
|
||||
"closeButtonLabel": r"CERRAR",
|
||||
"continueButtonLabel": r"CONTINUAR",
|
||||
"copyButtonLabel": r"COPIAR",
|
||||
"cutButtonLabel": r"CORTAR",
|
||||
"okButtonLabel": r"OK",
|
||||
"pasteButtonLabel": r"PEGAR",
|
||||
"selectAllButtonLabel": r"SELECCIONAR TODO",
|
||||
"viewLicensesButtonLabel": r"VER LICENCIAS",
|
||||
'es': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'H:mm',
|
||||
'openAppDrawerTooltip': r'Abrir el menú de navegación',
|
||||
'backButtonTooltip': r'Espalda',
|
||||
'closeButtonTooltip': r'Cerrar',
|
||||
'nextMonthTooltip': r'Próximo mes',
|
||||
'previousMonthTooltip': r'Mes anterior',
|
||||
'nextPageTooltip': r'Siguiente página',
|
||||
'previousPageTooltip': r'Pagina anterior',
|
||||
'showMenuTooltip': r'Muestrame el menu',
|
||||
'aboutListTileTitle': r'Desarrollado por $applicationName',
|
||||
'licensesPageTitle': r'Licencias',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow de $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow de aproximadamente $rowCount',
|
||||
'rowsPerPageTitle': r'Filas por página:',
|
||||
'selectedRowCountTitleZero': r'No se han seleccionado elementos',
|
||||
'selectedRowCountTitleOne': r'1 artículo seleccionado',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount artículos seleccionados',
|
||||
'cancelButtonLabel': r'CANCELAR',
|
||||
'closeButtonLabel': r'CERRAR',
|
||||
'continueButtonLabel': r'CONTINUAR',
|
||||
'copyButtonLabel': r'COPIAR',
|
||||
'cutButtonLabel': r'CORTAR',
|
||||
'okButtonLabel': r'OK',
|
||||
'pasteButtonLabel': r'PEGAR',
|
||||
'selectAllButtonLabel': r'SELECCIONAR TODO',
|
||||
'viewLicensesButtonLabel': r'VER LICENCIAS',
|
||||
},
|
||||
"es_US": const <String, String>{
|
||||
"timeOfDayFormat": r"h:mm a",
|
||||
"anteMeridiemAbbreviation": r"AM",
|
||||
"postMeridiemAbbreviation": r"PM",
|
||||
'es_US': const <String, String>{
|
||||
'timeOfDayFormat': r'h:mm a',
|
||||
'anteMeridiemAbbreviation': r'AM',
|
||||
'postMeridiemAbbreviation': r'PM',
|
||||
},
|
||||
"fa": const <String, String>{
|
||||
"scriptCategory": r"tall",
|
||||
"timeOfDayFormat": r"H:mm",
|
||||
"openAppDrawerTooltip": r"منوی ناوبری را باز کنید",
|
||||
"backButtonTooltip": r"بازگشت",
|
||||
"closeButtonTooltip": r"بستن",
|
||||
"nextMonthTooltip": r"ماه بعد",
|
||||
"previousMonthTooltip": r"ماه گذشته",
|
||||
"nextPageTooltip": r"صفحه بعد",
|
||||
"previousPageTooltip": r"صفحه قبلی",
|
||||
"showMenuTooltip": r"نمایش منو",
|
||||
"aboutListTileTitle": r"درباره $applicationName",
|
||||
"licensesPageTitle": r"مجوز",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow از $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow از حدود $rowCount",
|
||||
"rowsPerPageTitle": r"ردیف در صفحه:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount آیتم های انتخاب شده",
|
||||
"cancelButtonLabel": r"لغو",
|
||||
"closeButtonLabel": r"بستن",
|
||||
"continueButtonLabel": r"ادامه دهید",
|
||||
"copyButtonLabel": r"کپی",
|
||||
"cutButtonLabel": r"برش",
|
||||
"okButtonLabel": r"تایید",
|
||||
"pasteButtonLabel": r"چسباندن",
|
||||
"selectAllButtonLabel": r"انتخاب همه",
|
||||
"viewLicensesButtonLabel": r"مشاهده مجوز",
|
||||
'fa': const <String, String>{
|
||||
'scriptCategory': r'tall',
|
||||
'timeOfDayFormat': r'H:mm',
|
||||
'openAppDrawerTooltip': r'منوی ناوبری را باز کنید',
|
||||
'backButtonTooltip': r'بازگشت',
|
||||
'closeButtonTooltip': r'بستن',
|
||||
'nextMonthTooltip': r'ماه بعد',
|
||||
'previousMonthTooltip': r'ماه گذشته',
|
||||
'nextPageTooltip': r'صفحه بعد',
|
||||
'previousPageTooltip': r'صفحه قبلی',
|
||||
'showMenuTooltip': r'نمایش منو',
|
||||
'aboutListTileTitle': r'درباره $applicationName',
|
||||
'licensesPageTitle': r'مجوز',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow از $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow از حدود $rowCount',
|
||||
'rowsPerPageTitle': r'ردیف در صفحه:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount آیتم های انتخاب شده',
|
||||
'cancelButtonLabel': r'لغو',
|
||||
'closeButtonLabel': r'بستن',
|
||||
'continueButtonLabel': r'ادامه دهید',
|
||||
'copyButtonLabel': r'کپی',
|
||||
'cutButtonLabel': r'برش',
|
||||
'okButtonLabel': r'تایید',
|
||||
'pasteButtonLabel': r'چسباندن',
|
||||
'selectAllButtonLabel': r'انتخاب همه',
|
||||
'viewLicensesButtonLabel': r'مشاهده مجوز',
|
||||
},
|
||||
"fr": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
"openAppDrawerTooltip": r"Ouvrir le menu de navigation",
|
||||
"backButtonTooltip": r"Retour",
|
||||
"closeButtonTooltip": r"Fermer",
|
||||
"nextMonthTooltip": r"Mois Suivant",
|
||||
"previousMonthTooltip": r"Mois précédent",
|
||||
"nextPageTooltip": r"Page suivante",
|
||||
"previousPageTooltip": r"Page précédente",
|
||||
"showMenuTooltip": r"Afficher le menu",
|
||||
"aboutListTileTitle": r"À propos de $applicationName",
|
||||
"licensesPageTitle": r"Licences",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow de $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow d'environ $rowCount",
|
||||
"rowsPerPageTitle": r"Lignes par page:",
|
||||
"selectedRowCountTitleZero": r"Aucun élément sélectionné",
|
||||
"selectedRowCountTitleOne": r"1 élément sélectionné",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount éléments sélectionnés",
|
||||
"cancelButtonLabel": r"ANNULER",
|
||||
"closeButtonLabel": r"FERMER",
|
||||
"continueButtonLabel": r"CONTINUER",
|
||||
"copyButtonLabel": r"COPIER",
|
||||
"cutButtonLabel": r"COUPER",
|
||||
"okButtonLabel": r"OK",
|
||||
"pasteButtonLabel": r"COLLER",
|
||||
"selectAllButtonLabel": r"TOUT SÉLECTIONNER",
|
||||
"viewLicensesButtonLabel": r"AFFICHER LES LICENCES",
|
||||
'fr': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
'openAppDrawerTooltip': r'Ouvrir le menu de navigation',
|
||||
'backButtonTooltip': r'Retour',
|
||||
'closeButtonTooltip': r'Fermer',
|
||||
'nextMonthTooltip': r'Mois Suivant',
|
||||
'previousMonthTooltip': r'Mois précédent',
|
||||
'nextPageTooltip': r'Page suivante',
|
||||
'previousPageTooltip': r'Page précédente',
|
||||
'showMenuTooltip': r'Afficher le menu',
|
||||
'aboutListTileTitle': r'À propos de $applicationName',
|
||||
'licensesPageTitle': r'Licences',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow de $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow d' "'" r'environ $rowCount',
|
||||
'rowsPerPageTitle': r'Lignes par page:',
|
||||
'selectedRowCountTitleZero': r'Aucun élément sélectionné',
|
||||
'selectedRowCountTitleOne': r'1 élément sélectionné',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount éléments sélectionnés',
|
||||
'cancelButtonLabel': r'ANNULER',
|
||||
'closeButtonLabel': r'FERMER',
|
||||
'continueButtonLabel': r'CONTINUER',
|
||||
'copyButtonLabel': r'COPIER',
|
||||
'cutButtonLabel': r'COUPER',
|
||||
'okButtonLabel': r'OK',
|
||||
'pasteButtonLabel': r'COLLER',
|
||||
'selectAllButtonLabel': r'TOUT SÉLECTIONNER',
|
||||
'viewLicensesButtonLabel': r'AFFICHER LES LICENCES',
|
||||
},
|
||||
"fr_CA": const <String, String>{
|
||||
"timeOfDayFormat": r"HH 'h' mm",
|
||||
'fr_CA': const <String, String>{
|
||||
'timeOfDayFormat': r'HH ' "'" r'h' "'" r' mm',
|
||||
},
|
||||
"he": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"H:mm",
|
||||
"openAppDrawerTooltip": r"פתח תפריט ניווט",
|
||||
"backButtonTooltip": r"אחורה",
|
||||
"closeButtonTooltip": r"סגור",
|
||||
"nextMonthTooltip": r"חודש הבא",
|
||||
"previousMonthTooltip": r"חודש קודם",
|
||||
"nextPageTooltip": r"עמוד הבא",
|
||||
"previousPageTooltip": r"עמוד קודם",
|
||||
"showMenuTooltip": r"הצג תפריט",
|
||||
"aboutListTileTitle": r"על $applicationName",
|
||||
"licensesPageTitle": r"רישיונות",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow מתוך $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow מתוך כ $rowCount",
|
||||
"rowsPerPageTitle": r"שורות לעמוד:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount פריטים שנבחרו",
|
||||
"cancelButtonLabel": r"ביטול",
|
||||
"closeButtonLabel": r"סגור",
|
||||
"continueButtonLabel": r"המשך",
|
||||
"copyButtonLabel": r"העתק",
|
||||
"cutButtonLabel": r"גזור",
|
||||
"okButtonLabel": r"אישור",
|
||||
"pasteButtonLabel": r"הדבק",
|
||||
"selectAllButtonLabel": r"בחר הכל",
|
||||
"viewLicensesButtonLabel": r"הצג רישיונות",
|
||||
'he': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'H:mm',
|
||||
'openAppDrawerTooltip': r'פתח תפריט ניווט',
|
||||
'backButtonTooltip': r'אחורה',
|
||||
'closeButtonTooltip': r'סגור',
|
||||
'nextMonthTooltip': r'חודש הבא',
|
||||
'previousMonthTooltip': r'חודש קודם',
|
||||
'nextPageTooltip': r'עמוד הבא',
|
||||
'previousPageTooltip': r'עמוד קודם',
|
||||
'showMenuTooltip': r'הצג תפריט',
|
||||
'aboutListTileTitle': r'על $applicationName',
|
||||
'licensesPageTitle': r'רישיונות',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow מתוך $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow מתוך כ $rowCount',
|
||||
'rowsPerPageTitle': r'שורות לעמוד:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount פריטים שנבחרו',
|
||||
'cancelButtonLabel': r'ביטול',
|
||||
'closeButtonLabel': r'סגור',
|
||||
'continueButtonLabel': r'המשך',
|
||||
'copyButtonLabel': r'העתק',
|
||||
'cutButtonLabel': r'גזור',
|
||||
'okButtonLabel': r'אישור',
|
||||
'pasteButtonLabel': r'הדבק',
|
||||
'selectAllButtonLabel': r'בחר הכל',
|
||||
'viewLicensesButtonLabel': r'הצג רישיונות',
|
||||
},
|
||||
"it": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
"openAppDrawerTooltip": r"Apri il menu di navigazione",
|
||||
"backButtonTooltip": r"Indietro",
|
||||
"closeButtonTooltip": r"Chiudi",
|
||||
"nextMonthTooltip": r"Il prossimo mese",
|
||||
"previousMonthTooltip": r"Il mese scorso",
|
||||
"nextPageTooltip": r"Pagina successiva",
|
||||
"previousPageTooltip": r"Pagina precedente",
|
||||
"showMenuTooltip": r"Mostra il menu",
|
||||
"aboutListTileTitle": r"A proposito di $applicationName",
|
||||
"licensesPageTitle": r"Licenze",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow di $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow di circa $rowCount",
|
||||
"rowsPerPageTitle": r"Righe per pagina:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount selezionati",
|
||||
"cancelButtonLabel": r"ANNULLA",
|
||||
"closeButtonLabel": r"CHIUDI",
|
||||
"continueButtonLabel": r"CONTINUA",
|
||||
"copyButtonLabel": r"COPIA",
|
||||
"cutButtonLabel": r"TAGLIA",
|
||||
"okButtonLabel": r"OK",
|
||||
"pasteButtonLabel": r"INCOLLA",
|
||||
"selectAllButtonLabel": r"SELEZIONA TUTTO",
|
||||
"viewLicensesButtonLabel": r"VEDI LE LICENZE",
|
||||
'it': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
'openAppDrawerTooltip': r'Apri il menu di navigazione',
|
||||
'backButtonTooltip': r'Indietro',
|
||||
'closeButtonTooltip': r'Chiudi',
|
||||
'nextMonthTooltip': r'Il prossimo mese',
|
||||
'previousMonthTooltip': r'Il mese scorso',
|
||||
'nextPageTooltip': r'Pagina successiva',
|
||||
'previousPageTooltip': r'Pagina precedente',
|
||||
'showMenuTooltip': r'Mostra il menu',
|
||||
'aboutListTileTitle': r'A proposito di $applicationName',
|
||||
'licensesPageTitle': r'Licenze',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow di $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow di circa $rowCount',
|
||||
'rowsPerPageTitle': r'Righe per pagina:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount selezionati',
|
||||
'cancelButtonLabel': r'ANNULLA',
|
||||
'closeButtonLabel': r'CHIUDI',
|
||||
'continueButtonLabel': r'CONTINUA',
|
||||
'copyButtonLabel': r'COPIA',
|
||||
'cutButtonLabel': r'TAGLIA',
|
||||
'okButtonLabel': r'OK',
|
||||
'pasteButtonLabel': r'INCOLLA',
|
||||
'selectAllButtonLabel': r'SELEZIONA TUTTO',
|
||||
'viewLicensesButtonLabel': r'VEDI LE LICENZE',
|
||||
},
|
||||
"ja": const <String, String>{
|
||||
"scriptCategory": r"dense",
|
||||
"timeOfDayFormat": r"H:mm",
|
||||
"openAppDrawerTooltip": r"ナビゲーションメニューを開く",
|
||||
"backButtonTooltip": r"戻る",
|
||||
"closeButtonTooltip": r"閉じる",
|
||||
"nextMonthTooltip": r"次の月へ",
|
||||
"previousMonthTooltip": r"前の月へ",
|
||||
"nextPageTooltip": r"次のページ",
|
||||
"previousPageTooltip": r"前のページ",
|
||||
"showMenuTooltip": r"メニューを表示",
|
||||
"aboutListTileTitle": r"$applicationNameについて",
|
||||
"licensesPageTitle": r"ライセンス",
|
||||
"pageRowsInfoTitle": r"$rowCount行中の$firstRow–$lastRow",
|
||||
"pageRowsInfoTitleApproximate": r"約$rowCount行中の$firstRow–$lastRow",
|
||||
"rowsPerPageTitle": r"1ページあたりの行数:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount個のアイテムが選択されています",
|
||||
"cancelButtonLabel": r"キャンセル",
|
||||
"closeButtonLabel": r"閉じる",
|
||||
"continueButtonLabel": r"次へ",
|
||||
"copyButtonLabel": r"コピー",
|
||||
"cutButtonLabel": r"カット",
|
||||
"okButtonLabel": r"OK",
|
||||
"pasteButtonLabel": r"貼付け",
|
||||
"selectAllButtonLabel": r"全選択",
|
||||
"viewLicensesButtonLabel": r"ライセンス表記",
|
||||
'ja': const <String, String>{
|
||||
'scriptCategory': r'dense',
|
||||
'timeOfDayFormat': r'H:mm',
|
||||
'openAppDrawerTooltip': r'ナビゲーションメニューを開く',
|
||||
'backButtonTooltip': r'戻る',
|
||||
'closeButtonTooltip': r'閉じる',
|
||||
'nextMonthTooltip': r'次の月へ',
|
||||
'previousMonthTooltip': r'前の月へ',
|
||||
'nextPageTooltip': r'次のページ',
|
||||
'previousPageTooltip': r'前のページ',
|
||||
'showMenuTooltip': r'メニューを表示',
|
||||
'aboutListTileTitle': r'$applicationNameについて',
|
||||
'licensesPageTitle': r'ライセンス',
|
||||
'pageRowsInfoTitle': r'$rowCount行中の$firstRow–$lastRow',
|
||||
'pageRowsInfoTitleApproximate': r'約$rowCount行中の$firstRow–$lastRow',
|
||||
'rowsPerPageTitle': r'1ページあたりの行数:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount個のアイテムが選択されています',
|
||||
'cancelButtonLabel': r'キャンセル',
|
||||
'closeButtonLabel': r'閉じる',
|
||||
'continueButtonLabel': r'次へ',
|
||||
'copyButtonLabel': r'コピー',
|
||||
'cutButtonLabel': r'カット',
|
||||
'okButtonLabel': r'OK',
|
||||
'pasteButtonLabel': r'貼付け',
|
||||
'selectAllButtonLabel': r'全選択',
|
||||
'viewLicensesButtonLabel': r'ライセンス表記',
|
||||
},
|
||||
"ps": const <String, String>{
|
||||
"scriptCategory": r"tall",
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
"openAppDrawerTooltip": r"د پرانیستی نیینګ مینو",
|
||||
"backButtonTooltip": r"شاته",
|
||||
"closeButtonTooltip": r"بنده",
|
||||
"nextMonthTooltip": r"بله میاشت",
|
||||
"previousMonthTooltip": r"تیره میاشت",
|
||||
"nextPageTooltip": r"بله پاڼه",
|
||||
"previousPageTooltip": r"مخکینی مخ",
|
||||
"showMenuTooltip": r"غورنۍ ښودل",
|
||||
"aboutListTileTitle": r"د $applicationName په اړه",
|
||||
"licensesPageTitle": r"جوازونه",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow د $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow څخه $rowCount د",
|
||||
"rowsPerPageTitle": r"د هرې پاڼې پاڼې:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount توکي غوره شوي",
|
||||
"cancelButtonLabel": r"لغوه کول",
|
||||
"closeButtonLabel": r"تړل",
|
||||
"continueButtonLabel": r"منځپانګې",
|
||||
"copyButtonLabel": r"کاپی",
|
||||
"cutButtonLabel": r"کم کړئ",
|
||||
"okButtonLabel": r"سمه ده",
|
||||
"pasteButtonLabel": r"پیټ کړئ",
|
||||
"selectAllButtonLabel": r"غوره کړئ",
|
||||
"viewLicensesButtonLabel": r"لیدلس وګورئ",
|
||||
'ps': const <String, String>{
|
||||
'scriptCategory': r'tall',
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
'openAppDrawerTooltip': r'د پرانیستی نیینګ مینو',
|
||||
'backButtonTooltip': r'شاته',
|
||||
'closeButtonTooltip': r'بنده',
|
||||
'nextMonthTooltip': r'بله میاشت',
|
||||
'previousMonthTooltip': r'تیره میاشت',
|
||||
'nextPageTooltip': r'بله پاڼه',
|
||||
'previousPageTooltip': r'مخکینی مخ',
|
||||
'showMenuTooltip': r'غورنۍ ښودل',
|
||||
'aboutListTileTitle': r'د $applicationName په اړه',
|
||||
'licensesPageTitle': r'جوازونه',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow د $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow څخه $rowCount د',
|
||||
'rowsPerPageTitle': r'د هرې پاڼې پاڼې:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount توکي غوره شوي',
|
||||
'cancelButtonLabel': r'لغوه کول',
|
||||
'closeButtonLabel': r'تړل',
|
||||
'continueButtonLabel': r'منځپانګې',
|
||||
'copyButtonLabel': r'کاپی',
|
||||
'cutButtonLabel': r'کم کړئ',
|
||||
'okButtonLabel': r'سمه ده',
|
||||
'pasteButtonLabel': r'پیټ کړئ',
|
||||
'selectAllButtonLabel': r'غوره کړئ',
|
||||
'viewLicensesButtonLabel': r'لیدلس وګورئ',
|
||||
},
|
||||
"pt": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
"openAppDrawerTooltip": r"Abrir menu de navegação",
|
||||
"backButtonTooltip": r"Costas",
|
||||
"closeButtonTooltip": r"Fechar",
|
||||
"nextMonthTooltip": r"Próximo mês",
|
||||
"previousMonthTooltip": r"Mês anterior",
|
||||
"nextPageTooltip": r"Próxima página",
|
||||
"previousPageTooltip": r"Página anterior",
|
||||
"showMenuTooltip": r"Mostrar menu",
|
||||
"aboutListTileTitle": r"Sobre $applicationName",
|
||||
"licensesPageTitle": r"Licenças",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow de $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow de cerca de $rowCount",
|
||||
"rowsPerPageTitle": r"Linhas por página:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount selecionados",
|
||||
"cancelButtonLabel": r"CANCELAR",
|
||||
"closeButtonLabel": r"FECHAR",
|
||||
"continueButtonLabel": r"CONTINUAR",
|
||||
"copyButtonLabel": r"CÓPIA DE",
|
||||
"cutButtonLabel": r"CORTA",
|
||||
"okButtonLabel": r"OK",
|
||||
"pasteButtonLabel": r"COLAR",
|
||||
"selectAllButtonLabel": r"SELECIONAR TUDO",
|
||||
"viewLicensesButtonLabel": r"VER LICENÇAS",
|
||||
'pt': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
'openAppDrawerTooltip': r'Abrir menu de navegação',
|
||||
'backButtonTooltip': r'Costas',
|
||||
'closeButtonTooltip': r'Fechar',
|
||||
'nextMonthTooltip': r'Próximo mês',
|
||||
'previousMonthTooltip': r'Mês anterior',
|
||||
'nextPageTooltip': r'Próxima página',
|
||||
'previousPageTooltip': r'Página anterior',
|
||||
'showMenuTooltip': r'Mostrar menu',
|
||||
'aboutListTileTitle': r'Sobre $applicationName',
|
||||
'licensesPageTitle': r'Licenças',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow de $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow de cerca de $rowCount',
|
||||
'rowsPerPageTitle': r'Linhas por página:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount selecionados',
|
||||
'cancelButtonLabel': r'CANCELAR',
|
||||
'closeButtonLabel': r'FECHAR',
|
||||
'continueButtonLabel': r'CONTINUAR',
|
||||
'copyButtonLabel': r'CÓPIA DE',
|
||||
'cutButtonLabel': r'CORTA',
|
||||
'okButtonLabel': r'OK',
|
||||
'pasteButtonLabel': r'COLAR',
|
||||
'selectAllButtonLabel': r'SELECIONAR TUDO',
|
||||
'viewLicensesButtonLabel': r'VER LICENÇAS',
|
||||
},
|
||||
"ru": const <String, String>{
|
||||
"scriptCategory": r"English-like",
|
||||
"timeOfDayFormat": r"H:mm",
|
||||
"openAppDrawerTooltip": r"Открыть меню навигации",
|
||||
"backButtonTooltip": r"Назад",
|
||||
"closeButtonTooltip": r"Закрыть",
|
||||
"nextMonthTooltip": r"Следующий месяц",
|
||||
"previousMonthTooltip": r"Предыдущий месяц",
|
||||
"nextPageTooltip": r"Следущая страница",
|
||||
"previousPageTooltip": r"Предыдущая страница",
|
||||
"showMenuTooltip": r"Показать меню",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow из $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow из примерно $rowCount",
|
||||
"rowsPerPageTitle": r"Строки на страницу:",
|
||||
"aboutListTileTitle": r"O $applicationName",
|
||||
"licensesPageTitle": r"Лицензии",
|
||||
"selectedRowCountTitleZero": r"Строки не выбраны",
|
||||
"selectedRowCountTitleOne": r"Выбрана 1 строка",
|
||||
"selectedRowCountTitleOther": r"Выбрано $selectedRowCount строк",
|
||||
"cancelButtonLabel": r"ОТМЕНИТЬ",
|
||||
"closeButtonLabel": r"ЗАКРЫТЬ",
|
||||
"continueButtonLabel": r"ПРОДОЛЖИТЬ",
|
||||
"copyButtonLabel": r"СКОПИРОВАТЬ",
|
||||
"cutButtonLabel": r"ВЫРЕЗАТЬ",
|
||||
"okButtonLabel": r"ОК",
|
||||
"pasteButtonLabel": r"ВСТАВИТЬ",
|
||||
"selectAllButtonLabel": r"ВЫБРАТЬ ВСЁ",
|
||||
"viewLicensesButtonLabel": r"ПРОСМОТРЕТЬ ЛИЦЕНЗИИ",
|
||||
'ru': const <String, String>{
|
||||
'scriptCategory': r'English-like',
|
||||
'timeOfDayFormat': r'H:mm',
|
||||
'openAppDrawerTooltip': r'Открыть меню навигации',
|
||||
'backButtonTooltip': r'Назад',
|
||||
'closeButtonTooltip': r'Закрыть',
|
||||
'nextMonthTooltip': r'Следующий месяц',
|
||||
'previousMonthTooltip': r'Предыдущий месяц',
|
||||
'nextPageTooltip': r'Следущая страница',
|
||||
'previousPageTooltip': r'Предыдущая страница',
|
||||
'showMenuTooltip': r'Показать меню',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow из $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow из примерно $rowCount',
|
||||
'rowsPerPageTitle': r'Строки на страницу:',
|
||||
'aboutListTileTitle': r'O $applicationName',
|
||||
'licensesPageTitle': r'Лицензии',
|
||||
'selectedRowCountTitleZero': r'Строки не выбраны',
|
||||
'selectedRowCountTitleOne': r'Выбрана 1 строка',
|
||||
'selectedRowCountTitleOther': r'Выбрано $selectedRowCount строк',
|
||||
'cancelButtonLabel': r'ОТМЕНИТЬ',
|
||||
'closeButtonLabel': r'ЗАКРЫТЬ',
|
||||
'continueButtonLabel': r'ПРОДОЛЖИТЬ',
|
||||
'copyButtonLabel': r'СКОПИРОВАТЬ',
|
||||
'cutButtonLabel': r'ВЫРЕЗАТЬ',
|
||||
'okButtonLabel': r'ОК',
|
||||
'pasteButtonLabel': r'ВСТАВИТЬ',
|
||||
'selectAllButtonLabel': r'ВЫБРАТЬ ВСЁ',
|
||||
'viewLicensesButtonLabel': r'ПРОСМОТРЕТЬ ЛИЦЕНЗИИ',
|
||||
},
|
||||
"sd": const <String, String>{
|
||||
"scriptCategory": r"tall",
|
||||
"timeOfDayFormat": r"HH:mm",
|
||||
"openAppDrawerTooltip": r"اوپن جي مينڊيٽ مينيو",
|
||||
"backButtonTooltip": r"پوئتي",
|
||||
"closeButtonTooltip": r"بند ڪريو",
|
||||
"nextMonthTooltip": r"ايندڙ مهيني",
|
||||
"previousMonthTooltip": r"پويون مهينو",
|
||||
"nextPageTooltip": r"اڳيون پيج",
|
||||
"previousPageTooltip": r"پويون صفحو",
|
||||
"showMenuTooltip": r"ڏيکاريو",
|
||||
"aboutListTileTitle": r"$applicationName بابت",
|
||||
"licensesPageTitle": r"لائسنس",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow جي $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow کان $rowCount تقريبن",
|
||||
"rowsPerPageTitle": r"رني پاسي وارو صفحو",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount شيون چونڊيل",
|
||||
"cancelButtonLabel": r"منسوخ ڪيو",
|
||||
"closeButtonLabel": r"بند ڪريو",
|
||||
"continueButtonLabel": r"جاري رکو",
|
||||
"copyButtonLabel": r"ڪاپي",
|
||||
"cutButtonLabel": r"پٽي",
|
||||
"okButtonLabel": r"ٺيڪ آهي",
|
||||
"pasteButtonLabel": r"پيسٽ ڪريو",
|
||||
"selectAllButtonLabel": r"سڀ چونڊيو",
|
||||
"viewLicensesButtonLabel": r"لائسنس ڏسو",
|
||||
'sd': const <String, String>{
|
||||
'scriptCategory': r'tall',
|
||||
'timeOfDayFormat': r'HH:mm',
|
||||
'openAppDrawerTooltip': r'اوپن جي مينڊيٽ مينيو',
|
||||
'backButtonTooltip': r'پوئتي',
|
||||
'closeButtonTooltip': r'بند ڪريو',
|
||||
'nextMonthTooltip': r'ايندڙ مهيني',
|
||||
'previousMonthTooltip': r'پويون مهينو',
|
||||
'nextPageTooltip': r'اڳيون پيج',
|
||||
'previousPageTooltip': r'پويون صفحو',
|
||||
'showMenuTooltip': r'ڏيکاريو',
|
||||
'aboutListTileTitle': r'$applicationName بابت',
|
||||
'licensesPageTitle': r'لائسنس',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow جي $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow کان $rowCount تقريبن',
|
||||
'rowsPerPageTitle': r'رني پاسي وارو صفحو',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount شيون چونڊيل',
|
||||
'cancelButtonLabel': r'منسوخ ڪيو',
|
||||
'closeButtonLabel': r'بند ڪريو',
|
||||
'continueButtonLabel': r'جاري رکو',
|
||||
'copyButtonLabel': r'ڪاپي',
|
||||
'cutButtonLabel': r'پٽي',
|
||||
'okButtonLabel': r'ٺيڪ آهي',
|
||||
'pasteButtonLabel': r'پيسٽ ڪريو',
|
||||
'selectAllButtonLabel': r'سڀ چونڊيو',
|
||||
'viewLicensesButtonLabel': r'لائسنس ڏسو',
|
||||
},
|
||||
"ur": const <String, String>{
|
||||
"scriptCategory": r"tall",
|
||||
"timeOfDayFormat": r"h:mm a",
|
||||
"openAppDrawerTooltip": r"کھولیں نیویگیشن مینو",
|
||||
"backButtonTooltip": r"واپس",
|
||||
"closeButtonTooltip": r"بند کریں",
|
||||
"nextMonthTooltip": r"اگلا مھینہ",
|
||||
"previousMonthTooltip": r"پچھلا مھینہ",
|
||||
"nextPageTooltip": r"اگلا صفحہ",
|
||||
"previousPageTooltip": r"سابقہ صفحہ",
|
||||
"showMenuTooltip": r"مینو دکھائیں",
|
||||
"aboutListTileTitle": r"کے بارے میں $applicationName",
|
||||
"licensesPageTitle": r"لائسنس",
|
||||
"pageRowsInfoTitle": r"$firstRow–$lastRow کے $rowCount",
|
||||
"pageRowsInfoTitleApproximate": r"$firstRow–$lastRow میں سے $rowCount تقریبا",
|
||||
"rowsPerPageTitle": r"رویوں فی صفحہ:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount منتخب کردہ اشیاء",
|
||||
"cancelButtonLabel": r"منسوخ کریں",
|
||||
"closeButtonLabel": r"بند کریں",
|
||||
"continueButtonLabel": r"جاری رکھیں",
|
||||
"copyButtonLabel": r"کاپی",
|
||||
"cutButtonLabel": r"کاٹیں",
|
||||
"okButtonLabel": r"ٹھیک ہے",
|
||||
"pasteButtonLabel": r"چسپاں",
|
||||
"selectAllButtonLabel": r"تکاپیمام منتخب کریں",
|
||||
"viewLicensesButtonLabel": r"لائسنس دیکھیں",
|
||||
"anteMeridiemAbbreviation": r"AM",
|
||||
"postMeridiemAbbreviation": r"PM",
|
||||
'ur': const <String, String>{
|
||||
'scriptCategory': r'tall',
|
||||
'timeOfDayFormat': r'h:mm a',
|
||||
'openAppDrawerTooltip': r'کھولیں نیویگیشن مینو',
|
||||
'backButtonTooltip': r'واپس',
|
||||
'closeButtonTooltip': r'بند کریں',
|
||||
'nextMonthTooltip': r'اگلا مھینہ',
|
||||
'previousMonthTooltip': r'پچھلا مھینہ',
|
||||
'nextPageTooltip': r'اگلا صفحہ',
|
||||
'previousPageTooltip': r'سابقہ صفحہ',
|
||||
'showMenuTooltip': r'مینو دکھائیں',
|
||||
'aboutListTileTitle': r'کے بارے میں $applicationName',
|
||||
'licensesPageTitle': r'لائسنس',
|
||||
'pageRowsInfoTitle': r'$firstRow–$lastRow کے $rowCount',
|
||||
'pageRowsInfoTitleApproximate': r'$firstRow–$lastRow میں سے $rowCount تقریبا',
|
||||
'rowsPerPageTitle': r'رویوں فی صفحہ:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount منتخب کردہ اشیاء',
|
||||
'cancelButtonLabel': r'منسوخ کریں',
|
||||
'closeButtonLabel': r'بند کریں',
|
||||
'continueButtonLabel': r'جاری رکھیں',
|
||||
'copyButtonLabel': r'کاپی',
|
||||
'cutButtonLabel': r'کاٹیں',
|
||||
'okButtonLabel': r'ٹھیک ہے',
|
||||
'pasteButtonLabel': r'چسپاں',
|
||||
'selectAllButtonLabel': r'تکاپیمام منتخب کریں',
|
||||
'viewLicensesButtonLabel': r'لائسنس دیکھیں',
|
||||
'anteMeridiemAbbreviation': r'AM',
|
||||
'postMeridiemAbbreviation': r'PM',
|
||||
},
|
||||
"zh": const <String, String>{
|
||||
"scriptCategory": r"dense",
|
||||
"timeOfDayFormat": r"ah:mm",
|
||||
"openAppDrawerTooltip": r"打开导航菜单",
|
||||
"backButtonTooltip": r"返回",
|
||||
"closeButtonTooltip": r"关",
|
||||
"nextMonthTooltip": r"-下月就29了。",
|
||||
"previousMonthTooltip": r"前一个月",
|
||||
"nextPageTooltip": r"下一页",
|
||||
"previousPageTooltip": r"上一页",
|
||||
"showMenuTooltip": r"显示菜单",
|
||||
"aboutListTileTitle": r"关于$applicationName",
|
||||
"licensesPageTitle": r"许可证",
|
||||
"pageRowsInfoTitle": r"$rowCount中的$firstRow-$lastRow",
|
||||
"pageRowsInfoTitleApproximate": r"约$rowCount中的$firstRow-$lastRow",
|
||||
"rowsPerPageTitle": r"每页行数:",
|
||||
"selectedRowCountTitleOther": r"$selectedRowCount行所选",
|
||||
"cancelButtonLabel": r"取消",
|
||||
"continueButtonLabel": r"继续",
|
||||
"closeButtonLabel": r"关闭",
|
||||
"copyButtonLabel": r"复制",
|
||||
"cutButtonLabel": r"剪切",
|
||||
"okButtonLabel": r"确定",
|
||||
"pasteButtonLabel": r"粘贴",
|
||||
"selectAllButtonLabel": r"全选",
|
||||
"viewLicensesButtonLabel": r"查看许可证",
|
||||
"anteMeridiemAbbreviation": r"上午",
|
||||
"postMeridiemAbbreviation": r"下午",
|
||||
'zh': const <String, String>{
|
||||
'scriptCategory': r'dense',
|
||||
'timeOfDayFormat': r'ah:mm',
|
||||
'openAppDrawerTooltip': r'打开导航菜单',
|
||||
'backButtonTooltip': r'返回',
|
||||
'closeButtonTooltip': r'关',
|
||||
'nextMonthTooltip': r'-下月就29了。',
|
||||
'previousMonthTooltip': r'前一个月',
|
||||
'nextPageTooltip': r'下一页',
|
||||
'previousPageTooltip': r'上一页',
|
||||
'showMenuTooltip': r'显示菜单',
|
||||
'aboutListTileTitle': r'关于$applicationName',
|
||||
'licensesPageTitle': r'许可证',
|
||||
'pageRowsInfoTitle': r'$rowCount中的$firstRow-$lastRow',
|
||||
'pageRowsInfoTitleApproximate': r'约$rowCount中的$firstRow-$lastRow',
|
||||
'rowsPerPageTitle': r'每页行数:',
|
||||
'selectedRowCountTitleOther': r'$selectedRowCount行所选',
|
||||
'cancelButtonLabel': r'取消',
|
||||
'continueButtonLabel': r'继续',
|
||||
'closeButtonLabel': r'关闭',
|
||||
'copyButtonLabel': r'复制',
|
||||
'cutButtonLabel': r'剪切',
|
||||
'okButtonLabel': r'确定',
|
||||
'pasteButtonLabel': r'粘贴',
|
||||
'selectAllButtonLabel': r'全选',
|
||||
'viewLicensesButtonLabel': r'查看许可证',
|
||||
'anteMeridiemAbbreviation': r'上午',
|
||||
'postMeridiemAbbreviation': r'下午',
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -348,7 +348,7 @@ class GlobalMaterialLocalizations implements MaterialLocalizations {
|
||||
|
||||
/// Looks up text geometry defined in [MaterialTextGeometry].
|
||||
@override
|
||||
TextTheme get localTextGeometry => MaterialTextGeometry.forScriptCategory(_nameToValue["scriptCategory"]);
|
||||
TextTheme get localTextGeometry => MaterialTextGeometry.forScriptCategory(_nameToValue['scriptCategory']);
|
||||
|
||||
/// Creates an object that provides localized resource values for the
|
||||
/// for the widgets of the material library.
|
||||
|
||||
@@ -142,7 +142,7 @@ abstract class TestWidgetsFlutterBinding extends BindingBase
|
||||
createHttpClient = () {
|
||||
return new http.MockClient((http.BaseRequest request) {
|
||||
return new Future<http.Response>.value(
|
||||
new http.Response("Mocked: Unavailable.", 404, request: request)
|
||||
new http.Response('Mocked: Unavailable.', 404, request: request)
|
||||
);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -26,7 +26,7 @@ class _MockToStringDeep {
|
||||
/// line break.
|
||||
List<String> _lines;
|
||||
|
||||
String toStringDeep({ String prefixLineOne: "", String prefixOtherLines: "" }) {
|
||||
String toStringDeep({ String prefixLineOne: '', String prefixOtherLines: '' }) {
|
||||
final StringBuffer sb = new StringBuffer();
|
||||
if (_lines.isNotEmpty)
|
||||
sb.write('$prefixLineOne${_lines.first}');
|
||||
|
||||
@@ -26,9 +26,9 @@ import '../lib/src/usage.dart';
|
||||
|
||||
// Note: this was largely inspired by lib/src/commands/test.dart.
|
||||
|
||||
const String _kOptionPackages = "packages";
|
||||
const String _kOptionShell = "shell";
|
||||
const String _kOptionTestDirectory = "test-directory";
|
||||
const String _kOptionPackages = 'packages';
|
||||
const String _kOptionShell = 'shell';
|
||||
const String _kOptionTestDirectory = 'test-directory';
|
||||
const List<String> _kRequiredOptions = const <String>[
|
||||
_kOptionPackages,
|
||||
_kOptionShell,
|
||||
|
||||
@@ -175,7 +175,7 @@ Future<int> _handleToolError(
|
||||
writelnStderr();
|
||||
writelnStderr(
|
||||
"Run 'flutter -h' (or 'flutter <command> -h') for available "
|
||||
"flutter commands and options."
|
||||
'flutter commands and options.'
|
||||
);
|
||||
// Argument error exit code.
|
||||
return _exit(64);
|
||||
|
||||
@@ -772,7 +772,7 @@ class _AndroidDevicePortForwarder extends DevicePortForwarder {
|
||||
final List<String> lines = LineSplitter.split(stdout).toList();
|
||||
for (String line in lines) {
|
||||
if (line.startsWith(device.id)) {
|
||||
final List<String> splitLine = line.split("tcp:");
|
||||
final List<String> splitLine = line.split('tcp:');
|
||||
|
||||
// Sanity check splitLine.
|
||||
if (splitLine.length != 3)
|
||||
|
||||
@@ -43,7 +43,7 @@ FlutterPluginVersion get flutterPluginVersion {
|
||||
final File plugin = fs.file('android/buildSrc/src/main/groovy/FlutterPlugin.groovy');
|
||||
if (plugin.existsSync()) {
|
||||
final String packageLine = plugin.readAsLinesSync().skip(4).first;
|
||||
if (packageLine == "package io.flutter.gradle") {
|
||||
if (packageLine == 'package io.flutter.gradle') {
|
||||
return FlutterPluginVersion.v2;
|
||||
}
|
||||
return FlutterPluginVersion.v1;
|
||||
@@ -51,7 +51,7 @@ FlutterPluginVersion get flutterPluginVersion {
|
||||
final File appGradle = fs.file('android/app/build.gradle');
|
||||
if (appGradle.existsSync()) {
|
||||
for (String line in appGradle.readAsLinesSync()) {
|
||||
if (line.contains(new RegExp(r"apply from: .*/flutter.gradle"))) {
|
||||
if (line.contains(new RegExp(r'apply from: .*/flutter.gradle'))) {
|
||||
return FlutterPluginVersion.managed;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,7 @@ class AndroidApk extends ApplicationPackage {
|
||||
if (category.getAttribute('android:name') == 'android.intent.category.LAUNCHER') {
|
||||
final xml.XmlElement activity = category.parent.parent;
|
||||
final String activityName = activity.getAttribute('android:name');
|
||||
launchActivity = "$packageId/$activityName";
|
||||
launchActivity = '$packageId/$activityName';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -40,5 +40,5 @@ class ToolExit implements Exception {
|
||||
final int exitCode;
|
||||
|
||||
@override
|
||||
String toString() => "Exception: $message";
|
||||
String toString() => 'Exception: $message';
|
||||
}
|
||||
|
||||
@@ -118,13 +118,13 @@ class _PosixUtils extends OperatingSystemUtils {
|
||||
if (_name == null) {
|
||||
if (platform.isMacOS) {
|
||||
final List<ProcessResult> results = <ProcessResult>[
|
||||
processManager.runSync(<String>["sw_vers", "-productName"]),
|
||||
processManager.runSync(<String>["sw_vers", "-productVersion"]),
|
||||
processManager.runSync(<String>["sw_vers", "-buildVersion"]),
|
||||
processManager.runSync(<String>['sw_vers', '-productName']),
|
||||
processManager.runSync(<String>['sw_vers', '-productVersion']),
|
||||
processManager.runSync(<String>['sw_vers', '-buildVersion']),
|
||||
];
|
||||
if (results.every((ProcessResult result) => result.exitCode == 0)) {
|
||||
_name = "${results[0].stdout.trim()} ${results[1].stdout
|
||||
.trim()} ${results[2].stdout.trim()}";
|
||||
_name = '${results[0].stdout.trim()} ${results[1].stdout
|
||||
.trim()} ${results[2].stdout.trim()}';
|
||||
}
|
||||
}
|
||||
_name ??= super.name;
|
||||
|
||||
@@ -298,7 +298,7 @@ void _traceCommand(List<String> args, { String workingDirectory }) {
|
||||
if (workingDirectory == null)
|
||||
printTrace(argsText);
|
||||
else
|
||||
printTrace("[$workingDirectory${fs.path.separator}] $argsText");
|
||||
printTrace('[$workingDirectory${fs.path.separator}] $argsText');
|
||||
}
|
||||
|
||||
String _runWithLoggingSync(List<String> cmd, {
|
||||
|
||||
@@ -239,10 +239,10 @@ Future<String> _buildAotSnapshot(
|
||||
];
|
||||
|
||||
if ((extraFrontEndOptions != null) && extraFrontEndOptions.isNotEmpty)
|
||||
printTrace("Extra front-end options: $extraFrontEndOptions");
|
||||
printTrace('Extra front-end options: $extraFrontEndOptions');
|
||||
|
||||
if ((extraGenSnapshotOptions != null) && extraGenSnapshotOptions.isNotEmpty) {
|
||||
printTrace("Extra gen-snapshot options: $extraGenSnapshotOptions");
|
||||
printTrace('Extra gen-snapshot options: $extraGenSnapshotOptions');
|
||||
genSnapshotCmd.addAll(extraGenSnapshotOptions);
|
||||
}
|
||||
|
||||
|
||||
@@ -83,7 +83,7 @@ class CreateCommand extends FlutterCommand {
|
||||
'If run on a project that already exists, this will repair the project, recreating any files that are missing.';
|
||||
|
||||
@override
|
||||
String get invocation => "${runner.executableName} $name <output directory>";
|
||||
String get invocation => '${runner.executableName} $name <output directory>';
|
||||
|
||||
@override
|
||||
Future<Null> runCommand() async {
|
||||
@@ -249,17 +249,17 @@ To edit platform code in an IDE see https://flutter.io/platform-plugins/#edit-co
|
||||
}
|
||||
} else {
|
||||
printStatus("You'll need to install additional components before you can run "
|
||||
"your Flutter app:");
|
||||
'your Flutter app:');
|
||||
printStatus('');
|
||||
|
||||
// Give the user more detailed analysis.
|
||||
await doctor.diagnose();
|
||||
printStatus('');
|
||||
printStatus("After installing components, run 'flutter doctor' in order to "
|
||||
"re-validate your setup.");
|
||||
're-validate your setup.');
|
||||
printStatus("When complete, type 'flutter run' from the '$relativeAppPath' "
|
||||
"directory in order to launch your app.");
|
||||
printStatus("Your main program file is: $relativeAppPath/lib/main.dart");
|
||||
'directory in order to launch your app.');
|
||||
printStatus('Your main program file is: $relativeAppPath/lib/main.dart');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -290,7 +290,7 @@ To edit platform code in an IDE see https://flutter.io/platform-plugins/#edit-co
|
||||
'dartSdk': '$flutterRoot/bin/cache/dart-sdk',
|
||||
'androidMinApiLevel': android.minApiLevel,
|
||||
'androidSdkVersion': android_sdk.minimumAndroidSdkVersion,
|
||||
'androidFlutterJar': "$flutterRoot/bin/cache/artifacts/engine/android-arm/flutter.jar",
|
||||
'androidFlutterJar': '$flutterRoot/bin/cache/artifacts/engine/android-arm/flutter.jar',
|
||||
'withDriverTest': renderDriverTest,
|
||||
'pluginClass': pluginClass,
|
||||
'pluginDartClass': pluginDartClass,
|
||||
@@ -333,7 +333,7 @@ String _createPluginClassName(String name) {
|
||||
|
||||
String _createUTIIdentifier(String organization, String name) {
|
||||
// Create a UTI (https://en.wikipedia.org/wiki/Uniform_Type_Identifier) from a base name
|
||||
final RegExp disallowed = new RegExp(r"[^a-zA-Z0-9\-\.\u0080-\uffff]+");
|
||||
final RegExp disallowed = new RegExp(r'[^a-zA-Z0-9\-\.\u0080-\uffff]+');
|
||||
name = camelCase(name).replaceAll(disallowed, '');
|
||||
name = name.isEmpty ? 'untitled' : name;
|
||||
return '$organization.$name';
|
||||
@@ -367,7 +367,7 @@ String _validateProjectName(String projectName) {
|
||||
|
||||
if (_packageDependencies.contains(projectName)) {
|
||||
return "Invalid project name: '$projectName' - this will conflict with Flutter "
|
||||
"package dependencies.";
|
||||
'package dependencies.';
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@@ -376,7 +376,7 @@ String _validateProjectName(String projectName) {
|
||||
/// if we should disallow the directory name.
|
||||
String _validateProjectDir(String dirPath, { String flutterRoot }) {
|
||||
if (fs.path.isWithin(flutterRoot, dirPath)) {
|
||||
return "Cannot create a project within the Flutter SDK.\n"
|
||||
return 'Cannot create a project within the Flutter SDK.\n'
|
||||
"Target directory '$dirPath' is within the Flutter SDK at '$flutterRoot'.";
|
||||
}
|
||||
|
||||
|
||||
@@ -197,28 +197,28 @@ abstract class Domain {
|
||||
|
||||
String _getStringArg(Map<String, dynamic> args, String name, { bool required: false }) {
|
||||
if (required && !args.containsKey(name))
|
||||
throw "$name is required";
|
||||
throw '$name is required';
|
||||
final dynamic val = args[name];
|
||||
if (val != null && val is! String)
|
||||
throw "$name is not a String";
|
||||
throw '$name is not a String';
|
||||
return val;
|
||||
}
|
||||
|
||||
bool _getBoolArg(Map<String, dynamic> args, String name, { bool required: false }) {
|
||||
if (required && !args.containsKey(name))
|
||||
throw "$name is required";
|
||||
throw '$name is required';
|
||||
final dynamic val = args[name];
|
||||
if (val != null && val is! bool)
|
||||
throw "$name is not a bool";
|
||||
throw '$name is not a bool';
|
||||
return val;
|
||||
}
|
||||
|
||||
int _getIntArg(Map<String, dynamic> args, String name, { bool required: false }) {
|
||||
if (required && !args.containsKey(name))
|
||||
throw "$name is required";
|
||||
throw '$name is required';
|
||||
final dynamic val = args[name];
|
||||
if (val != null && val is! int)
|
||||
throw "$name is not an int";
|
||||
throw '$name is not an int';
|
||||
return val;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ class DevicesCommand extends FlutterCommand {
|
||||
if (!doctor.canListAnything) {
|
||||
throwToolExit(
|
||||
"Unable to locate a development device; please run 'flutter doctor' for "
|
||||
"information about installing additional components.",
|
||||
'information about installing additional components.',
|
||||
exitCode: 1);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ class FormatCommand extends FlutterCommand {
|
||||
final String description = 'Format one or more dart files.';
|
||||
|
||||
@override
|
||||
String get invocation => "${runner.executableName} $name <one or more paths>";
|
||||
String get invocation => '${runner.executableName} $name <one or more paths>';
|
||||
|
||||
@override
|
||||
Future<Null> runCommand() async {
|
||||
|
||||
@@ -256,9 +256,9 @@ class FuchsiaReloadCommand extends FlutterCommand {
|
||||
|
||||
// The Observatory requires somewhat non-standard URIs that the Uri class
|
||||
// can't build for us, so instead we build them by hand.
|
||||
final String isolateIdQuery = "?isolateId=isolates%2F$number";
|
||||
final String isolateAddr = "$vmServiceAddr/#/inspect$isolateIdQuery";
|
||||
final String debuggerAddr = "$vmServiceAddr/#/debugger$isolateIdQuery";
|
||||
final String isolateIdQuery = '?isolateId=isolates%2F$number';
|
||||
final String isolateAddr = '$vmServiceAddr/#/inspect$isolateIdQuery';
|
||||
final String debuggerAddr = '$vmServiceAddr/#/debugger$isolateIdQuery';
|
||||
|
||||
final String newUsed = getSizeAsMB(isolate.newSpace.used);
|
||||
final String newCap = getSizeAsMB(isolate.newSpace.capacity);
|
||||
@@ -452,7 +452,7 @@ class _PortForwarder {
|
||||
final ProcessResult result = await processManager.run(command);
|
||||
printTrace(command.join(' '));
|
||||
if (result.exitCode != 0) {
|
||||
printTrace("Command failed:\nstdout: ${result.stdout}\nstderr: ${result.stderr}");
|
||||
printTrace('Command failed:\nstdout: ${result.stdout}\nstderr: ${result.stderr}');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -487,7 +487,7 @@ class FuchsiaDeviceCommandRunner {
|
||||
printTrace(args.join(' '));
|
||||
final ProcessResult result = await processManager.run(args);
|
||||
if (result.exitCode != 0) {
|
||||
printStatus("Command failed: $command\nstdout: ${result.stdout}\nstderr: ${result.stderr}");
|
||||
printStatus('Command failed: $command\nstdout: ${result.stdout}\nstderr: ${result.stderr}');
|
||||
return null;
|
||||
}
|
||||
printTrace(result.stdout);
|
||||
|
||||
@@ -498,10 +498,10 @@ class DevFS {
|
||||
try {
|
||||
await _httpWriter.write(dirtyEntries);
|
||||
} on SocketException catch (socketException, stackTrace) {
|
||||
printTrace("DevFS sync failed. Lost connection to device: $socketException");
|
||||
printTrace('DevFS sync failed. Lost connection to device: $socketException');
|
||||
throw new DevFSException('Lost connection to device.', socketException, stackTrace);
|
||||
} catch (exception, stackTrace) {
|
||||
printError("Could not update files on device: $exception");
|
||||
printError('Could not update files on device: $exception');
|
||||
throw new DevFSException('Sync failed', exception, stackTrace);
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -191,7 +191,7 @@ abstract class Device {
|
||||
|
||||
// String meant to be displayed to the user indicating if the device is
|
||||
// supported by Flutter, and, if not, why.
|
||||
String supportMessage() => isSupported() ? "Supported" : "Unsupported";
|
||||
String supportMessage() => isSupported() ? 'Supported' : 'Unsupported';
|
||||
|
||||
/// The device's platform.
|
||||
Future<TargetPlatform> get targetPlatform;
|
||||
|
||||
@@ -286,7 +286,7 @@ Future<XcodeBuildResult> buildXcodeProject({
|
||||
commands.addAll(<String>[
|
||||
'-workspace', fs.path.basename(entity.path),
|
||||
'-scheme', scheme,
|
||||
"BUILD_DIR=${fs.path.absolute(getIosBuildDirectory())}",
|
||||
'BUILD_DIR=${fs.path.absolute(getIosBuildDirectory())}',
|
||||
]);
|
||||
break;
|
||||
}
|
||||
@@ -447,20 +447,20 @@ bool _checkXcodeVersion() {
|
||||
|
||||
Future<Null> _addServicesToBundle(Directory bundle) async {
|
||||
final List<Map<String, String>> services = <Map<String, String>>[];
|
||||
printTrace("Trying to resolve native pub services.");
|
||||
printTrace('Trying to resolve native pub services.');
|
||||
|
||||
// Step 1: Parse the service configuration yaml files present in the service
|
||||
// pub packages.
|
||||
await parseServiceConfigs(services);
|
||||
printTrace("Found ${services.length} service definition(s).");
|
||||
printTrace('Found ${services.length} service definition(s).');
|
||||
|
||||
// Step 2: Copy framework dylibs to the correct spot for xcodebuild to pick up.
|
||||
final Directory frameworksDirectory = fs.directory(fs.path.join(bundle.path, "Frameworks"));
|
||||
final Directory frameworksDirectory = fs.directory(fs.path.join(bundle.path, 'Frameworks'));
|
||||
await _copyServiceFrameworks(services, frameworksDirectory);
|
||||
|
||||
// Step 3: Copy the service definitions manifest at the correct spot for
|
||||
// xcodebuild to pick up.
|
||||
final File manifestFile = fs.file(fs.path.join(bundle.path, "ServiceDefinitions.json"));
|
||||
final File manifestFile = fs.file(fs.path.join(bundle.path, 'ServiceDefinitions.json'));
|
||||
_copyServiceDefinitionsManifest(services, manifestFile);
|
||||
}
|
||||
|
||||
@@ -470,7 +470,7 @@ Future<Null> _copyServiceFrameworks(List<Map<String, String>> services, Director
|
||||
for (Map<String, String> service in services) {
|
||||
final String dylibPath = await getServiceFromUrl(service['ios-framework'], service['root'], service['name']);
|
||||
final File dylib = fs.file(dylibPath);
|
||||
printTrace("Copying ${dylib.path} into bundle.");
|
||||
printTrace('Copying ${dylib.path} into bundle.');
|
||||
if (!dylib.existsSync()) {
|
||||
printError("The service dylib '${dylib.path}' does not exist.");
|
||||
continue;
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
import '../base/file_system.dart';
|
||||
import '../base/process.dart';
|
||||
|
||||
const String kCFBundleIdentifierKey = "CFBundleIdentifier";
|
||||
const String kCFBundleShortVersionStringKey = "CFBundleShortVersionString";
|
||||
const String kCFBundleIdentifierKey = 'CFBundleIdentifier';
|
||||
const String kCFBundleShortVersionStringKey = 'CFBundleShortVersionString';
|
||||
|
||||
String getValueFromFile(String plistFilePath, String key) {
|
||||
// TODO(chinmaygarde): For now, we only need to read from plist files on a mac
|
||||
|
||||
@@ -433,7 +433,7 @@ class HotRunner extends ResidentRunner {
|
||||
timer.stop();
|
||||
status.cancel();
|
||||
if (result.isOk)
|
||||
printStatus("${result.message} in ${getElapsedAsMilliseconds(timer.elapsed)}.");
|
||||
printStatus('${result.message} in ${getElapsedAsMilliseconds(timer.elapsed)}.');
|
||||
if (result.hint != null)
|
||||
printStatus(result.hint);
|
||||
return result;
|
||||
@@ -530,7 +530,7 @@ class HotRunner extends ResidentRunner {
|
||||
reloadMessage = 'Reloaded $loadedLibraryCount of $finalLibraryCount libraries';
|
||||
}
|
||||
} catch (error, st) {
|
||||
printError("Hot reload failed: $error\n$st");
|
||||
printError('Hot reload failed: $error\n$st');
|
||||
final int errorCode = error['code'];
|
||||
final String errorMessage = error['message'];
|
||||
if (errorCode == Isolate.kIsolateReloadBarred) {
|
||||
@@ -587,8 +587,8 @@ class HotRunner extends ResidentRunner {
|
||||
await view.uiIsolate.flutterReassemble();
|
||||
} on TimeoutException {
|
||||
reassembleTimedOut = true;
|
||||
printTrace("Reassembling ${view.uiIsolate.name} took too long.");
|
||||
printStatus("Hot reloading ${view.uiIsolate.name} took too long; the reload may have failed.");
|
||||
printTrace('Reassembling ${view.uiIsolate.name} took too long.');
|
||||
printStatus('Hot reloading ${view.uiIsolate.name} took too long; the reload may have failed.');
|
||||
continue;
|
||||
} catch (error) {
|
||||
reassembleAndScheduleErrors = true;
|
||||
|
||||
@@ -265,18 +265,18 @@ abstract class FlutterCommand extends Command<Null> {
|
||||
Future<List<Device>> findAllTargetDevices() async {
|
||||
if (!doctor.canLaunchAnything) {
|
||||
printError("Unable to locate a development device; please run 'flutter doctor' "
|
||||
"for information about installing additional components.");
|
||||
'for information about installing additional components.');
|
||||
return null;
|
||||
}
|
||||
|
||||
List<Device> devices = await deviceManager.getDevices().toList();
|
||||
|
||||
if (devices.isEmpty && deviceManager.hasSpecifiedDeviceId) {
|
||||
printStatus("No devices found with name or id "
|
||||
printStatus('No devices found with name or id '
|
||||
"matching '${deviceManager.specifiedDeviceId}'");
|
||||
return null;
|
||||
} else if (devices.isEmpty && deviceManager.hasSpecifiedAllDevices) {
|
||||
printStatus("No devices found");
|
||||
printStatus('No devices found');
|
||||
return null;
|
||||
} else if (devices.isEmpty) {
|
||||
printNoConnectedDevices();
|
||||
@@ -290,10 +290,10 @@ abstract class FlutterCommand extends Command<Null> {
|
||||
return null;
|
||||
} else if (devices.length > 1 && !deviceManager.hasSpecifiedAllDevices) {
|
||||
if (deviceManager.hasSpecifiedDeviceId) {
|
||||
printStatus("Found ${devices.length} devices with name or id matching "
|
||||
printStatus('Found ${devices.length} devices with name or id matching '
|
||||
"'${deviceManager.specifiedDeviceId}':");
|
||||
} else {
|
||||
printStatus("More than one device connected; please specify a device with "
|
||||
printStatus('More than one device connected; please specify a device with '
|
||||
"the '-d <deviceId>' flag, or use '-d all' to act on all devices.");
|
||||
devices = await deviceManager.getAllConnectedDevices().toList();
|
||||
}
|
||||
@@ -313,7 +313,7 @@ abstract class FlutterCommand extends Command<Null> {
|
||||
if (deviceList == null)
|
||||
return null;
|
||||
if (deviceList.length > 1) {
|
||||
printStatus("More than one device connected; please specify a device with "
|
||||
printStatus('More than one device connected; please specify a device with '
|
||||
"the '-d <deviceId>' flag.");
|
||||
deviceList = await deviceManager.getAllConnectedDevices().toList();
|
||||
printStatus('');
|
||||
|
||||
@@ -75,10 +75,10 @@ Future<Null> parseServiceConfigs(
|
||||
}
|
||||
|
||||
Future<String> getServiceFromUrl(String url, String rootDir, String serviceName) async {
|
||||
if (url.startsWith("android-sdk:") && androidSdk != null) {
|
||||
if (url.startsWith('android-sdk:') && androidSdk != null) {
|
||||
// It's something shipped in the standard android SDK.
|
||||
return url.replaceAll('android-sdk:', '${androidSdk.directory}/');
|
||||
} else if (url.startsWith("http")) {
|
||||
} else if (url.startsWith('http')) {
|
||||
// It's a regular file to download.
|
||||
return await cache.getThirdPartyFile(url, serviceName);
|
||||
} else {
|
||||
|
||||
@@ -10,7 +10,7 @@ import 'globals.dart';
|
||||
|
||||
const String _kTemplateExtension = '.tmpl';
|
||||
const String _kCopyTemplateExtension = '.copy.tmpl';
|
||||
final Pattern _kTemplateLanguageVariant = new RegExp(r"(\w+)-(\w+)\.tmpl.*");
|
||||
final Pattern _kTemplateLanguageVariant = new RegExp(r'(\w+)-(\w+)\.tmpl.*');
|
||||
|
||||
/// Expands templates in a directory to a destination. All files that must
|
||||
/// undergo template expansion should end with the '.tmpl' extension. All other
|
||||
|
||||
@@ -15,8 +15,8 @@ class EventPrinter extends TestWatcher {
|
||||
|
||||
@override
|
||||
void onStartedProcess(ProcessEvent event) {
|
||||
_sendEvent("test.startedProcess",
|
||||
<String, dynamic>{"observatoryUri": event.observatoryUri.toString()});
|
||||
_sendEvent('test.startedProcess',
|
||||
<String, dynamic>{'observatoryUri': event.observatoryUri.toString()});
|
||||
}
|
||||
|
||||
void _sendEvent(String name, [dynamic params]) {
|
||||
|
||||
@@ -408,8 +408,8 @@ class _FlutterPlatform extends PlatformPlugin {
|
||||
|
||||
String _getWebSocketUrl(HttpServer server) {
|
||||
return host.type == InternetAddressType.IP_V4
|
||||
? "ws://${host.address}:${server.port}"
|
||||
: "ws://[${host.address}]:${server.port}";
|
||||
? 'ws://${host.address}:${server.port}'
|
||||
: 'ws://[${host.address}]:${server.port}';
|
||||
}
|
||||
|
||||
String _generateTestMain({
|
||||
|
||||
@@ -44,11 +44,11 @@ Future<int> runTests(
|
||||
}
|
||||
|
||||
for (String name in names) {
|
||||
testArgs..add("--name")..add(name);
|
||||
testArgs..add('--name')..add(name);
|
||||
}
|
||||
|
||||
for (String plainName in plainNames) {
|
||||
testArgs..add("--plain-name")..add(plainName);
|
||||
testArgs..add('--plain-name')..add(plainName);
|
||||
}
|
||||
|
||||
testArgs.add('--');
|
||||
|
||||
@@ -321,7 +321,7 @@ abstract class ServiceObject {
|
||||
return null;
|
||||
|
||||
if (!_isServiceMap(map))
|
||||
throw new VMServiceObjectLoadError("Expected a service map", map);
|
||||
throw new VMServiceObjectLoadError('Expected a service map', map);
|
||||
|
||||
final String type = _stripRef(map['type']);
|
||||
|
||||
@@ -435,7 +435,7 @@ abstract class ServiceObject {
|
||||
final String mapType = _stripRef(map['type']);
|
||||
|
||||
if ((_type != null) && (_type != mapType)) {
|
||||
throw new VMServiceObjectLoadError("ServiceObject types must not change",
|
||||
throw new VMServiceObjectLoadError('ServiceObject types must not change',
|
||||
map);
|
||||
}
|
||||
_type = mapType;
|
||||
@@ -443,7 +443,7 @@ abstract class ServiceObject {
|
||||
|
||||
_canCache = map['fixedId'] == true;
|
||||
if ((_id != null) && (_id != map['id']) && _canCache) {
|
||||
throw new VMServiceObjectLoadError("ServiceObject id changed", map);
|
||||
throw new VMServiceObjectLoadError('ServiceObject id changed', map);
|
||||
}
|
||||
_id = map['id'];
|
||||
|
||||
@@ -1061,7 +1061,7 @@ class Isolate extends ServiceObjectOwner {
|
||||
if (ownerType == 'Library' || ownerType == '@Library')
|
||||
break;
|
||||
final String ownerName = owner['name'];
|
||||
name = "$ownerName.$name";
|
||||
name = '$ownerName.$name';
|
||||
owner = owner['owner'];
|
||||
}
|
||||
|
||||
|
||||
@@ -47,7 +47,7 @@ $fontsSection
|
||||
}
|
||||
|
||||
void writePackagesFile(String packages) {
|
||||
fs.file(".packages")
|
||||
fs.file('.packages')
|
||||
..createSync()
|
||||
..writeAsStringSync(packages);
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ $assetsSection
|
||||
}
|
||||
|
||||
void writePackagesFile(String packages) {
|
||||
fs.file(".packages")
|
||||
fs.file('.packages')
|
||||
..createSync()
|
||||
..writeAsStringSync(packages);
|
||||
}
|
||||
@@ -155,7 +155,7 @@ $assetsSection
|
||||
expectedAssetManifest,
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
|
||||
testUsingContext("One asset is bundled when the package has one asset, listed in the app's pubspec", () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
@@ -180,7 +180,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("One asset and its variant are bundled when the package has an asset and a variant, and lists the asset in its pubspec", () async {
|
||||
testUsingContext('One asset and its variant are bundled when the package has an asset and a variant, and lists the asset in its pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile('pubspec.yaml', 'test');
|
||||
@@ -204,7 +204,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("One asset and its variant are bundled when the package has an asset and a variant, and the app lists the asset in its pubspec", () async {
|
||||
testUsingContext('One asset and its variant are bundled when the package has an asset and a variant, and the app lists the asset in its pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile(
|
||||
@@ -231,7 +231,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("Two assets are bundled when the package has and lists two assets in its pubspec", () async {
|
||||
testUsingContext('Two assets are bundled when the package has and lists two assets in its pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile('pubspec.yaml', 'test');
|
||||
@@ -288,7 +288,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("Two assets are bundled when two packages each have and list an asset their pubspec", () async {
|
||||
testUsingContext('Two assets are bundled when two packages each have and list an asset their pubspec', () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
writePubspecFile(
|
||||
@@ -323,7 +323,7 @@ $assetsSection
|
||||
expectedAssetManifest,
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
|
||||
testUsingContext("Two assets are bundled when two packages each have an asset, listed in the app's pubspec", () async {
|
||||
establishFlutterRoot();
|
||||
|
||||
@@ -363,7 +363,7 @@ $assetsSection
|
||||
);
|
||||
}, overrides: contextOverrides);
|
||||
|
||||
testUsingContext("One asset is bundled when the app depends on a package, listing in its pubspec an asset from another package", () async {
|
||||
testUsingContext('One asset is bundled when the app depends on a package, listing in its pubspec an asset from another package', () async {
|
||||
establishFlutterRoot();
|
||||
writePubspecFile(
|
||||
'pubspec.yaml',
|
||||
|
||||
@@ -23,7 +23,7 @@ void main() {
|
||||
// path separator.
|
||||
Cache.flutterRoot = getFlutterRoot();
|
||||
|
||||
fs.file("pubspec.yaml")
|
||||
fs.file('pubspec.yaml')
|
||||
..createSync()
|
||||
..writeAsStringSync(
|
||||
'''
|
||||
@@ -36,7 +36,7 @@ flutter:
|
||||
- a/b/c/foo
|
||||
'''
|
||||
);
|
||||
fs.file(".packages")..createSync();
|
||||
fs.file('.packages')..createSync();
|
||||
|
||||
final List<String> assets = <String>[
|
||||
'a/b/c/foo',
|
||||
|
||||
@@ -261,7 +261,7 @@ void main() {
|
||||
Cache.flutterRoot = '../..';
|
||||
final CreateCommand command = new CreateCommand();
|
||||
final CommandRunner<Null> runner = createTestCommandRunner(command);
|
||||
final File existingFile = fs.file("${projectDir.path.toString()}/bad");
|
||||
final File existingFile = fs.file('${projectDir.path.toString()}/bad');
|
||||
if (!existingFile.existsSync())
|
||||
existingFile.createSync(recursive: true);
|
||||
expect(
|
||||
|
||||
@@ -277,12 +277,12 @@ class MemoryIOSink implements IOSink {
|
||||
}
|
||||
|
||||
@override
|
||||
void writeln([Object obj = ""]) {
|
||||
void writeln([Object obj = '']) {
|
||||
add(encoding.encode('$obj\n'));
|
||||
}
|
||||
|
||||
@override
|
||||
void writeAll(Iterable<dynamic> objects, [String separator = ""]) {
|
||||
void writeAll(Iterable<dynamic> objects, [String separator = '']) {
|
||||
bool addSeparator = false;
|
||||
for (dynamic object in objects) {
|
||||
if (addSeparator) {
|
||||
|
||||
Reference in New Issue
Block a user