Unverified Commit 3a6acb8c authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

More const conversions (#32408)

* update immutable to const

* => const lists

* revert making list const

* make Centers const
parent d80a14c1
......@@ -48,7 +48,7 @@ class HoverClientState extends State<HoverClient> {
}
class HoverFeedback extends StatefulWidget {
HoverFeedback({Key key}) : super(key: key);
const HoverFeedback({Key key}) : super(key: key);
@override
_HoverFeedbackState createState() => _HoverFeedbackState();
......@@ -502,7 +502,7 @@ void main() {
await gesture.addPointer();
await tester.pumpWidget(
Center(child: HoverFeedback()),
const Center(child: HoverFeedback()),
);
await gesture.moveTo(tester.getCenter(find.byType(Text)));
......@@ -519,7 +519,7 @@ void main() {
expect(HoverClientState.numExits, equals(1));
await tester.pumpWidget(
Center(child: HoverFeedback()),
const Center(child: HoverFeedback()),
);
await tester.pump();
expect(HoverClientState.numEntries, equals(2));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment