1 min readApr 12, 2019
Hi Jérôme!
To do it, you need to wrap those two callbacks (onTap and onPress) into some object. You can name it ViewModel (as this is just a model for your view). Check the example here: https://github.com/pszklarska/flutter_redux_animations_app/blob/master/lib/list/shopping_list_view_model.dart