make literals const for @immutable constructors (#29619)

This commit is contained in:
Phil Quitslund
2019-03-19 14:17:37 -07:00
committed by GitHub
parent b3046a6c67
commit 8707f1f335
2 changed files with 3 additions and 3 deletions

View File

@@ -965,9 +965,9 @@ class _DialPainter extends CustomPainter {
textDirection: textDirection,
onTap: label.onTap,
),
tags: <SemanticsTag>{
tags: const <SemanticsTag>{
// Used by tests to find this node.
const SemanticsTag('dial-label'),
SemanticsTag('dial-label'),
},
);
nodes.add(node);

View File

@@ -241,7 +241,7 @@ void main() {
child: ABCModel( // The "inner" model
a: 100 + _a,
b: 100 + _b,
aspects: <String>{'a'},
aspects: const <String>{'a'},
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,