Skip to content

Commit 4ec6d04

Browse files
fix(test): drop invalid const ThemeData in hover surface test
CI Flutter rejects ThemeData as a const constructor; keep the theme fallback coverage without const_with_non_const. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent 18bf1d9 commit 4ec6d04

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/core/motion/querya_hover_surface_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ void main() {
111111
testWidgets('uses theme fallback hovered color when unset', (tester) async {
112112
await tester.pumpWidget(
113113
MaterialApp(
114-
theme: const ThemeData(
115-
colorScheme: ColorScheme.light(primary: Colors.teal),
114+
theme: ThemeData(
115+
colorScheme: ColorScheme.fromSeed(seedColor: Colors.teal),
116116
),
117117
home: const QueryaMotionScope(
118118
level: QueryaMotionLevel.full,

0 commit comments

Comments
 (0)