You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
For onSwipeEnd following example is given in documentation:
void _swipeEnd (int previousIndex, int targetIndex, SwiperActivity activity) {
switch (activity) {
case Swipe():
log('The card was swiped to the : ${activity.direction}');
log('previous index: $previousIndex, target index: $targetIndex');
break;
case Unswipe():
log('A ${activity.direction.name} swipe was undone.');
log('previous index: $previousIndex, target index: $targetIndex');
break;
case CancelSwipe():
log('A swipe was cancelled');
break;
case DrivenActivity():
log('Driven Activity');
break;
}
However, when implementing it, Swipe(), Unswipe(), CancelSwipe() and DriveActivity() are not actually constants with latest 2.10 version.
To Reproduce
If for example Swipe() is added as a case option, then following error is shown:
_The named parameter 'begin' is required, but there's no corresponding argument. (Documentation) Try adding the required argument.
The named parameter 'end' is required, but there's no corresponding argument. (Documentation) Try adding the required argument.
The constructor being called isn't a const constructor. (Documentation) Try removing 'const' from the constructor invocation.
Case expressions must be constant._
Expected behavior
Swipe() and other proposed case options has to be constants
The text was updated successfully, but these errors were encountered:
tannker
changed the title
[ BUG ] : Provided example for onSwipeEnd activity is not valid
[ BUG ] : Appinio Swiper: Provided example for onSwipeEnd activity is not valid
Apr 7, 2024
Plugin name
Appinio Swiper
Describe the bug
For onSwipeEnd following example is given in documentation:
However, when implementing it, Swipe(), Unswipe(), CancelSwipe() and DriveActivity() are not actually constants with latest 2.10 version.
To Reproduce
If for example Swipe() is added as a case option, then following error is shown:
Expected behavior
Swipe() and other proposed case options has to be constants
The text was updated successfully, but these errors were encountered: