fix(todo): the + is not dragged over a day's hours, in Today's Calendar and Upcoming's 3-day
There a tap, a click or a stretch dragged says when (the developer's review, 10 Nov 2026); Upcoming's agenda and the lists keep dragging it. Whats-New: In Calendar and 3-day, the + button no longer drags; tap the hours instead. Whats-New-De: In Kalender und 3 Tage lässt sich der +-Knopf nicht mehr ziehen; tippe stattdessen auf die Stunden. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Tizian 「ティツィアーン」 <raisondetredev@pm.me>
This commit is contained in:
parent
8b862b2c1b
commit
f9cd30dd5e
1 changed files with 65 additions and 12 deletions
|
|
@ -2069,6 +2069,26 @@ void main() {
|
|||
expect(find.byKey(quickAddTitleKey), findsOneWidget);
|
||||
});
|
||||
|
||||
testWidgets('its + is not dragged, the hours taking a tap '
|
||||
"instead (the developer's review, 10 Nov 2026); a tap opens quick "
|
||||
'add', (tester) async {
|
||||
await start(tester, usedBefore: true);
|
||||
await threeDay(tester);
|
||||
final button = tester.getCenter(find.byType(AddTaskButton));
|
||||
final gesture = await tester.startGesture(button);
|
||||
for (var step = 1; step <= 5; step++) {
|
||||
await gesture.moveTo(button - Offset(0, 40.0 * step));
|
||||
await tester.pump();
|
||||
}
|
||||
expect(find.byKey(AddTaskButton.cancelKey), findsNothing);
|
||||
await gesture.up();
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byType(AddTaskButton));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byKey(quickAddTitleKey), findsOneWidget);
|
||||
});
|
||||
|
||||
group('a stretch of time chosen by holding and dragging, as Proton '
|
||||
"Calendar's (the developer's review, 10 Nov 2026)", () {
|
||||
/// Presses at [from] down the [day]'s column with [kind], holds
|
||||
|
|
@ -2449,6 +2469,26 @@ void main() {
|
|||
await tester.pumpAndSettle();
|
||||
}
|
||||
|
||||
testWidgets('its + is not dragged, the hours taking a tap '
|
||||
"instead (the developer's review, 10 Nov 2026); a tap opens quick "
|
||||
'add', (tester) async {
|
||||
await start(tester, usedBefore: true);
|
||||
await calendar(tester);
|
||||
final button = tester.getCenter(find.byType(AddTaskButton));
|
||||
final gesture = await tester.startGesture(button);
|
||||
for (var step = 1; step <= 5; step++) {
|
||||
await gesture.moveTo(button - Offset(0, 40.0 * step));
|
||||
await tester.pump();
|
||||
}
|
||||
expect(find.byKey(AddTaskButton.cancelKey), findsNothing);
|
||||
await gesture.up();
|
||||
await tester.pumpAndSettle();
|
||||
|
||||
await tester.tap(find.byType(AddTaskButton));
|
||||
await tester.pumpAndSettle();
|
||||
expect(find.byKey(quickAddTitleKey), findsOneWidget);
|
||||
});
|
||||
|
||||
/// Scrolls the day so that [hour] is at the top of its hours.
|
||||
Future<void> showHour(WidgetTester tester, int hour) async {
|
||||
tester
|
||||
|
|
|
|||
Loading…
Reference in a new issue