-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Tracking] Cookbook Recipes: Suggestions & Voting Thread #3587
Comments
Working with Tabbed Navigation |
Creating a Drawer with Navigation |
Writing unit tests |
Writing Widget tests |
Writing UI Tests |
Store information in a database |
Interacting with the Camera |
Writing a login flow |
How to handle logging |
Working with files on disk (file I/O) |
Connecting to an MQTT source for realtime data |
How to draw on screen using a Canvas |
How to create a an animated chart with realtime data |
Working with Sticky headers |
Creating a form with text fields |
Validating forms |
Passing data down the Widget tree / Sharing datas to all screens |
How to handle long-running processes, such as downloading a file in the background |
Defining routes, and passing payloads to predefined routes |
How to work with Dependency Injection |
How to localize your app |
How to handle when activity is killed, saving basic app state or at least the route |
How to handle list pagination |
Working with Local notifications |
Recommendations on creating a dev, test and production environment. |
Crash reporting on both iOS and Android (Bonus points for including high level application logging from before the crash.) |
Working with animations |
Creating a single block of text containing various styles |
How to play a sound |
How to play a video |
How to implement "Pull to Refresh" |
How to load more data at the end of a list |
Using isolates to do computationally heavy tasks concurrently with UI rendering |
An image scrolling example using the cacheExtent property and the precaching API to load images before they come into the viewport. |
Implementing Mobile App with ML Kit for Firebase (On-device and Cloud examples). |
Working with GraphQL |
@brianegan for Sticky Header I created a package here: https://github.com/letsar/flutter_sticky_header. |
I think @slightfoot may have already pushed his version of Sticky Headers as well. |
@ScottS2017 Yes you are right, but the packages are quite different in their implementation details. The one you mentioned works with a RenderBox while mine works with a RenderSliver. I think that the intended use of headers is typically for lists with a lot of items. And for lists, the SliverList (which renders in fine a RenderSliver) is a better choice than a Column (which renders in fine a RenderBox). |
An example for async validation until framework support flutter/flutter#9688 arrives. |
Another one I have seen several times already. |
How to implement Azure AD authentication. Also see this stack overflow. Currently this is the only thing keeping many companies from even looking at Flutter. |
While waiting for flutter/flutter#9688 to resolve, based on suggestion made by @zoechi, there is a demo of sync and async form validation in the example provided in this new package:
|
How to setup environment to develop integration tests in flutter: Developing integration tests, at least for me, used to involve building the app and running in emulator for each development iteration. There is no hot reload equivalent for the integration tests. This takes minutes for each development iteration and is very slow.
Apparently there is a much faster way to develop integration tests.
The integration test and the app code can then be modified and rerun without having to rebuild the app on each development iteration. In one window run:
In another window run:
Makes integration testing development way faster, probably 10x faster. Can also be configured to run in an IDE |
I am not sure if it fits this cookbook, but maybe some more samples that uses the BLoC architecture? From the state management page there seems to be more redux samples than BLoC samples: https://flutter.io/docs/development/data-and-backend/state-mgmt Reading quickly around the internet, it seems that there is interest / doubts around BLoC from people coming from redux: https://www.reddit.com/r/FlutterDev/comments/9769oz/if_youre_using_the_bloc_pattern_what_do_you_think/ |
Some examples on how to automatically switch between iOS and Android theming. Related to this issue: flutter/flutter#8410 However I am not sure about the status of 8410 |
Setting up .env to run app based on current environment (production, stage, local, etc ...) |
Secure storing API credentials and Keys in Flutter App. |
I have one, how to hide api keys in the binary as everyone already know how to use build variants to hide it from the git repos. use a chain of math functions to hash the api key take each math step and make it a separate function in a separate class to reverse. make sure to make the names of each function character names from your favorite movie,. its imperfect...but its the only viable solution right now |
I'm going to close this as we haven't used it as a tracking issue for a while and now have many cookbook recipes. Thanks everyone! |
Hey all 👋
I'm helping to write the Flutter cookbook, and have received a tremendous amount of feedback regarding the types of recipes folks would like to see -- Thank you all so much!
Now, I'd love your help to prioritize these ideas! To do so, please leave a 👍 on the recipe ideas found in the comments below that you'd be most interested in seeing on the flutter.io website.
And of course, please feel free to add comments with more ideas 😄
Upate: I'm leaving a 😄 on each recipe as I complete it!
The text was updated successfully, but these errors were encountered: