Skip to content

Commit

Permalink
Removed unnnecessary callback
Browse files Browse the repository at this point in the history
  • Loading branch information
erluxman committed Jul 24, 2020
1 parent 232cb22 commit 49707e0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 0 additions & 1 deletion lib/utils/animation/scale_on_press_widget.dart
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ class _ScaleOnPressWidgetState extends State<ScaleOnPressWidget> {
return GestureDetector(
behavior: HitTestBehavior.opaque,
onLongPressStart: (_) => _press,
onLongPressEnd: (_) => _unPress,
onTapDown: (_) => _press,
onTapUp: (_) => _unPress,
onLongPress: _press,
Expand Down
4 changes: 3 additions & 1 deletion test/features/home/home_screen_components_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'package:productive/common/resources/r.dart';
import 'package:productive/features/home/widgets/animated_circle_progress.dart';

void main() {
group("All required widgets are on the Splash screen", () {
group("Test Animated Motivation Meter", () {
setUpAll(() {
R.buildMode.isTesting = true;
});
Expand All @@ -20,4 +20,6 @@ void main() {
expect(find.byType(CustomPaint), findsNWidgets(1));
});
});


}
2 changes: 2 additions & 0 deletions test/utils/animation/scale_on_press_widget_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ void main() {
await tester.pumpWidget(scaledIcon);
expect(find.byType(GestureDetector), findsOneWidget);
await tester.press(find.byType(GestureDetector));
await tester.pumpAndSettle();
await tester.longPress(find.byType(GestureDetector));
await tester.pumpAndSettle();
});
});
}

0 comments on commit 49707e0

Please sign in to comment.