remove unnecessary string interpolations (#49352)
This commit is contained in:
committed by
Flutter GitHub Bot
parent
5d532e42fb
commit
92cbaa3efe
@@ -202,7 +202,7 @@ void generate(String commit) {
|
||||
outputFile('${className}_index.md'),
|
||||
inputFile('bin', 'class_index.md.template').readAsStringSync(),
|
||||
<String, String>{
|
||||
'class': '$className',
|
||||
'class': className,
|
||||
'entries': entries.join('\n'),
|
||||
'link': '${className}_index',
|
||||
},
|
||||
|
||||
@@ -113,11 +113,11 @@ class DessertDataSource extends DataTableSource {
|
||||
}
|
||||
},
|
||||
cells: <DataCell>[
|
||||
DataCell(Text('${dessert.name}')),
|
||||
DataCell(Text(dessert.name)),
|
||||
DataCell(Text('${dessert.calories}')),
|
||||
DataCell(Text('${dessert.fat.toStringAsFixed(1)}')),
|
||||
DataCell(Text(dessert.fat.toStringAsFixed(1))),
|
||||
DataCell(Text('${dessert.carbs}')),
|
||||
DataCell(Text('${dessert.protein.toStringAsFixed(1)}')),
|
||||
DataCell(Text(dessert.protein.toStringAsFixed(1))),
|
||||
DataCell(Text('${dessert.sodium}')),
|
||||
DataCell(Text('${dessert.calcium}%')),
|
||||
DataCell(Text('${dessert.iron}%')),
|
||||
|
||||
@@ -83,7 +83,7 @@ class DateTimeItem extends StatelessWidget {
|
||||
},
|
||||
child: Row(
|
||||
children: <Widget>[
|
||||
Text('${time.format(context)}'),
|
||||
Text(time.format(context)),
|
||||
const Icon(Icons.arrow_drop_down, color: Colors.black54),
|
||||
],
|
||||
),
|
||||
|
||||
@@ -113,7 +113,7 @@ class _CardDataItem extends StatelessWidget {
|
||||
alignment: page.id == 'H'
|
||||
? Alignment.centerLeft
|
||||
: Alignment.centerRight,
|
||||
child: CircleAvatar(child: Text('${page.id}')),
|
||||
child: CircleAvatar(child: Text(page.id)),
|
||||
),
|
||||
SizedBox(
|
||||
width: 144.0,
|
||||
|
||||
@@ -231,7 +231,7 @@ class _ThemeModeItem extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
const Text('Theme'),
|
||||
Text(
|
||||
'${modeLabels[options.themeMode]}',
|
||||
modeLabels[options.themeMode],
|
||||
style: Theme.of(context).primaryTextTheme.body1,
|
||||
),
|
||||
],
|
||||
@@ -278,7 +278,7 @@ class _TextScaleFactorItem extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
const Text('Text size'),
|
||||
Text(
|
||||
'${options.textScaleFactor.label}',
|
||||
options.textScaleFactor.label,
|
||||
style: Theme.of(context).primaryTextTheme.body1,
|
||||
),
|
||||
],
|
||||
@@ -324,7 +324,7 @@ class _VisualDensityItem extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
const Text('Visual density'),
|
||||
Text(
|
||||
'${options.visualDensity.label}',
|
||||
options.visualDensity.label,
|
||||
style: Theme.of(context).primaryTextTheme.body1,
|
||||
),
|
||||
],
|
||||
@@ -431,7 +431,7 @@ class _PlatformItem extends StatelessWidget {
|
||||
children: <Widget>[
|
||||
const Text('Platform mechanics'),
|
||||
Text(
|
||||
'${_platformLabel(options.platform)}',
|
||||
_platformLabel(options.platform),
|
||||
style: Theme.of(context).primaryTextTheme.body1,
|
||||
),
|
||||
],
|
||||
|
||||
@@ -29,7 +29,7 @@ class _StockSymbolView extends StatelessWidget {
|
||||
Row(
|
||||
children: <Widget>[
|
||||
Text(
|
||||
'${stock.symbol}',
|
||||
stock.symbol,
|
||||
key: ValueKey<String>('${stock.symbol}_symbol_name'),
|
||||
style: Theme.of(context).textTheme.display2,
|
||||
),
|
||||
@@ -43,7 +43,7 @@ class _StockSymbolView extends StatelessWidget {
|
||||
height: 8.0
|
||||
),
|
||||
Text('Market Cap', style: headings),
|
||||
Text('${stock.marketCap}'),
|
||||
Text(stock.marketCap),
|
||||
Container(
|
||||
height: 8.0
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user