forked from firka/flutter
remove unnecessary .toString() (#103226)
This commit is contained in:
committed by
GitHub
parent
a1a46c96c4
commit
d40ee2149c
@@ -189,7 +189,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
showMessage(context, 'Failed saving ${e.toString()}');
|
||||
showMessage(context, 'Failed saving $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -309,6 +309,6 @@ class TouchEventDiff extends StatelessWidget {
|
||||
for (int i = 0; i < coords.length; i++) {
|
||||
buffer.write('p$i x: ${coords[i]['x']} y: ${coords[i]['y']}, pressure: ${coords[i]['pressure']} ');
|
||||
}
|
||||
print(buffer.toString());
|
||||
print(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ class _IconsDemoCard extends StatelessWidget {
|
||||
TableRow _buildIconRow(double size) {
|
||||
return TableRow(
|
||||
children: <Widget> [
|
||||
_centeredText('${size.floor().toString()} ${icon.toString()}'),
|
||||
_centeredText('${size.floor()} $icon'),
|
||||
_buildIconButton(size, icon, true),
|
||||
_buildIconButton(size, icon, false),
|
||||
],
|
||||
@@ -122,9 +122,9 @@ class _IconsDemoCard extends StatelessWidget {
|
||||
children: <TableRow> [
|
||||
TableRow(
|
||||
children: <Widget> [
|
||||
_centeredText('Size ${icon.toString()}'),
|
||||
_centeredText('Enabled ${icon.toString()}'),
|
||||
_centeredText('Disabled ${icon.toString()}'),
|
||||
_centeredText('Size $icon'),
|
||||
_centeredText('Enabled $icon'),
|
||||
_centeredText('Disabled $icon'),
|
||||
]
|
||||
),
|
||||
_buildIconRow(18.0),
|
||||
|
||||
@@ -171,7 +171,7 @@ class MotionEventsBodyState extends State<MotionEventsBody> {
|
||||
if (!mounted) {
|
||||
return;
|
||||
}
|
||||
showMessage(context, 'Failed saving ${e.toString()}');
|
||||
showMessage(context, 'Failed saving $e');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -281,6 +281,6 @@ class TouchEventDiff extends StatelessWidget {
|
||||
for (int i = 0; i < coords.length; i++) {
|
||||
buffer.write('p$i x: ${coords[i]['x']} y: ${coords[i]['y']}, pressure: ${coords[i]['pressure']} ');
|
||||
}
|
||||
print(buffer.toString());
|
||||
print(buffer);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user