-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Description
Steps to reproduce
Hovering tests in Material Checkbox currently have no functionality (i.e what is painted before hovering = what is painted while hovering). For example:
flutter/packages/flutter/test/material/checkbox_test.dart
Lines 880 to 896 in 357bd65
| paints | |
| ..path(color: const Color(0xff2196f3)) | |
| ..path(color: const Color(0xffffffff), style: PaintingStyle.stroke, strokeWidth: 2.0), | |
| ); | |
| // Start hovering | |
| final TestGesture gesture = await tester.createGesture(kind: PointerDeviceKind.mouse); | |
| await gesture.moveTo(tester.getCenter(find.byType(Checkbox))); | |
| await tester.pumpWidget(buildApp()); | |
| await tester.pumpAndSettle(); | |
| expect( | |
| Material.of(tester.element(find.byType(Checkbox))), | |
| paints | |
| ..path(color: const Color(0xff2196f3)) | |
| ..path(color: const Color(0xffffffff), style: PaintingStyle.stroke, strokeWidth: 2.0), | |
| ); |
Expected results
In Checkbox tests, what is painted before hovering != what is painted while hovering.
Actual results
In Checkbox tests, what is painted before hovering = what is painted while hovering.
Code sample
None
Screenshots or Video
None
Logs
None
Flutter Doctor output
Doctor output
Doctor summary (to see all details, run flutter doctor -v):
[!] Flutter (Channel [user-branch], 3.22.0-40.0.pre.20, on macOS 14.5 23F79 darwin-arm64, locale en)
! Flutter version 3.22.0-40.0.pre.20 on channel [user-branch] at /Users/victorsanni/development/flutter
Currently on an unknown channel. Run `flutter channel` to switch to an official channel.
If that doesn't fix the issue, reinstall Flutter by following instructions at https://flutter.dev/docs/get-started/install.
! Upstream repository [email protected]:victorsanni/flutter.git is not a standard remote.
Set environment variable "FLUTTER_GIT_URL" to [email protected]:victorsanni/flutter.git to dismiss this error.
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Xcode - develop for iOS and macOS (Xcode 15.4)
[✓] Chrome - develop for the web
[✓] Android Studio (version 2023.3)
[✓] VS Code (version 1.88.1)
[✓] Connected device (3 available)
[✓] Network resources
! Doctor found issues in 1 category.Metadata
Metadata
Assignees
Labels
No labels