Bring back first card on screen after swiping last card/all cards (flutter) - flutter

I am using flutter tindercard package. Currently, after swiping all cards, screen goes blank, i.e. it doesn't show any more cards.
But I want to show cards again repeatedly starting from the first card. Kind of loop, where user is presented with first card again after swiping all cards.
Each card has a button, which will take user to a screen (which is same for all cards), so its not about like or dislike thing, if user will click on submit button of any card, swipe card screen will navigate out of current screen. Final action will happen only when user will tap on that submit button, that's why I want this loop of cards.
Checked the documentation, nothing much is written or explained. Checked all the available functions/parameters of the package, no idea how to achieve this functionality.
Maybe something can be done in 'swipeCompleteCallback(CardSwipeOrientation orientation, int index){}', but don't know exactly how. This seems more linked to action related to swipe complete of a individual card.

This is the question you were asking for is here on the github issue.

Related

Device back button has different result rather than getx toNamed

I have two screen, first is for load list off all shop data and second is the detail screen of the shop. When I'm in second page and go back with arrow icon with Get.toNamed the first screen will load all list again but when I in the second page and I go back with my device back button in the first page it just showing loader icon and the list not loading. Can someone help me why it can be happen ?
Use Get.off() or follow this article.

Flutter widget choice

Im creating for my girlfriend app for her work that will store her customers with some details and dates when they comes to her.
It is my first application, and also im new to flutter, as far i have one screen where i have button when i pressed it, shows bottomsheet with form to add customer and additional info in to listviews Card that build in body on this screen.
Soo far i have that correct.
My problem is i want to add something like this...
when i click on that added card i want it to take to another screen or unwind/ show textfield for that specific card when she could add dates for that client.
Any suggestions for me what to change or what widget/method to use?
You should implement a navigation so you can bring the user to a new page and pass an argument when you want to load the data. Best example is with the todo list : https://flutter.dev/docs/cookbook/navigation/passing-data

how open a small page in dialog?

I am looking for a solution for display a window over the page like a dialog box but this box will contains a lot of information. It is for my betting game, i display a list of game with a choice between 1 N and 2.
Here is an image of a betting game named netbet :
As you can see i have selected 2.10 in the game Slavia Mozyr/ FC Minsk and a window appears at the bottom of the page for set the amount of money i need to bet. I think it will be better,because mobile screen are very little, displaying a window over the page like a dialog box. Is there a solution for do that in flutter ? Thanks
You might want to use Bottom sheet which does the exact task. It opens a small 'page' (read: widget) over the normal app screen. It'll allow to place the bet etc. It vanishes when use taps anywhere outside.
Sample implementation is here. You can also check solid bottom sheet.

Android delete from listview, user experience

I've seen how iphone users delete from lists - its generally a swipe action and then shows some minus/remove button.
I realize that it is counterproductive to implement iphone things on android because android users don't know this stuff.
I don't want to do that, I just don't know of a better/intuitive way to delete from a listview.
I've previously opted for doing "longclicks" on listview items, which will show an alertdialog asking if you want to delete or do other things, but this is never an obvious thing to do.
I've seen delete buttons that are shown in each view, but that messes with the layout of the listview, in a way that wasnt' considered in the wireframes.
What is a good intuitive way to allow the user to remove items from listviews on android?
Here's my two cents before I pitch my answer. Any one who has an android phone is going to know or eventually find out that longclicks often lead to another menu. Yes, it's not immediately obvious but they are going to figure it out just as iphone users have figured out the swipe action is to delete.
If you really want a fool proof way for a user to know how to delete, I would implement checkBoxes. (More on check boxes here)If the user checks the item, bring up a "soft menu" at the bottom that has a bunch of options normally associated with long clicks.
If you look at the gmail application and check a box, you'll see what I mean when I say "soft menu".
Another way you could go would be to implement check box, then have "menu options." Every android user should be able to see and figure out the menu button on their device, all devices have them. Make one of the menu options delete and you're all set.
http://developer.android.com/guide/practices/ui_guidelines/menu_design.html#options_menu
I agree that long click is horrible, but it is the standard on Android; people are more likely to be able to discover using this than any alternative gesture.
Also, put in a delete menu item on the Activity you get to after selecting something from the ListView.
In my view you should add checkbox to your list view and give a separate button for deleting items from list I mean to say that add a delete button in the layout in which your list view is also present and when user checks the item which he/she wants to delete and click on the delete button,the item which is checked by the user gets remove from list.

Integrate IPhone Safari like view in Android?

The main concept goes like this. I have four listviews with its own
data loaded at the same time. Only one listview will be visible to the
user. Now, when the user presses a button, not only the current
listview but also other three listviews should be minimized and then
user can just scroll just as in Gallery and select the listview that
one wants to open.
I hope you all have understood what I want.
Let me know if someone have some idea of implementing such a User
Interface in Android.
You can use either View.draw() or View.getDrawingCache() depending on what suits you best. Then just display them using Gallery or something similar.