Flutter widget choice - flutter

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

Related

I'm trying to implement a favorites feature locally in flutter that works both inside the page and on the select page

I'm trying to add a favorites feature with flutter. If you activate it by clicking the Favorites button inside the page, you need to implement it so that the Favorites page marked as Favorite appears in the page selection window. getx was too complex to implement, so I gave up on it. Are there any other attractions or advice pages?
I've seen shared_preferences: ^2.0.7, but it's my first time developing an app, so it's difficult to develop because there are no examples.
You could have a statefull widget on Page selection where you read from preferences in init state and give that value to the favorite icon (e.g. true icon color is red, false -> white). And pass a function such as (setState(() {favorite = !favorite});) to the second page. Then if user click on the favorite button on page 2 and navigates back, the color will change. Also don't forget to save it on prefs when you click the iconButton.
You might want to have a look to this flutter cookbook. While this will not teach you about shared preferences, it will basically implement the other functionalities you want. It's actually a great way to start learning Flutter which new Flutter users.
Once you understand this cookbook and feel confident, you might want to have a look at this flutter tutorial on shared preferences which is beginner friendly as well.
If you would take an advice, I would urge you to start with as little dependencies as you can and use them only when you need them. If you are new to flutter, and for a simple app, GetX is not needed and will disturb you more than help you.

Bring back first card on screen after swiping last card/all cards (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.

How to create a dynamic page(new page) after input new information in flutter

I want to make dynamic pages. this means when I add new information in app they make new page about new information just like weather app in apple. when you add new places you can see the weather if you swipe left or right which widget should I use?
PageView ! https://api.flutter.dev/flutter/widgets/PageView-class.html
It's pretty easy :)

iPhone Footer like functionality

I am having trouble with designing my App.
I am having a button and a label in every page, required functionality is when user clicks a button, it will fetch the last tweet of application's tweeter account and will display it in label.
I know how to fetch and display it in one page.
My question is, can't I create something like custom control, which i just need to place in every page.
Hope, i was able to explain my question.
Any help will be appreciated.. thanks in advance.
Paresh
you create this footer view and place it in the first view (or a base view) and add all the subsequent views below it.. or you could even add it directly to the window..

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.