Posts by djalmafreestyler • 194 points
17 posts
-
0
votes2
answers35
viewsA: Splashscreen with named routes
You could create a Singleton from a Usercontroller that has a User object, which you could retrieve in other parts of your app and use it to set and retrieve it in your Home. Usercontroller { User…
-
0
votes1
answer124
viewsA: How to validate fields with Flutter?
Textformfield Validator is not only used to make the bar red, it is smaller because you must inform an error message in the component itself and not show a Snackbar, this is the original behavior.…
-
0
votes1
answer38
viewsA: how to send multiple files to firebase at once with flutter
You can make your uploadFireStorage method receive a File and do the process, so you can call as many times as you want and the uploads can work at the same time. Future uploadFireStorage(File file)…
-
0
votes1
answer17
viewsA: Take the size of the firestore array to use in Listview.Builder itemcount
If you need the amount of items to be equal to the amount of your array stored in the firestore you can do. return Scaffold( body: StreamBuilder( stream: stream, builder: (context, snapshot) { if…
-
0
votes1
answer103
viewsA: Error :"Getlifecyclebase" not found. You need to call "Get.put(Getlifecyclebase())" or "Get.lazyPut(()=>Getlifecyclebase())"
I believe it is even bad practice to register Singleton within init: of GetX(), init already needs an instance ready to use it and not that it still needs to register it. init:…
-
0
votes1
answer102
viewsA: Mobx does not generate Dart file.
The name of the file g.Dart usually leave with lowercase letter, because it will be the name of the file to be generated, differentiating the names is also a good, for example: import…
-
1
votes1
answer162
viewsA: Flutter : How to Recover a Screen with Data in Navigator Stack
I believe that what you need is to understand and apply Instance Management in your app. For this there are Packages that help as Getx. For you to be able to recover the same instance of an object…
-
4
votes2
answers529
viewsQ: Flutter - How to pass Firestore ID list to a Futurebuilder?
I’m developing a book app and need help uploading the user’s favorite book list. I don’t know the way I’m doing it would be the right one, I’m saving the Ids of all the books that the favorite user…
-
-3
votes2
answers1502
viewsA: How to get the value of the variable outside the Future method in Flutter?
It was necessary to use loadPdf() method inside iniState;
-
0
votes1
answer1836
viewsQ: How to change the color of an Icon through Boolean Return in Flutter?
I have a method that queries books that are favorite in the Firestore database, the book page has a star icon in black color, use isFavorite method to query whether the open book is preferred by the…
-
1
votes2
answers1042
viewsA: How to check if a file already exists in a mobile directory in Flutter?
I imported Dart:io and used this condition: if( FileSystemEntity.typeSync(path) != FileSystemEntityType.notFound)
-
1
votes2
answers1042
viewsQ: How to check if a file already exists in a mobile directory in Flutter?
I have a method to check certain files. pdf exist in the app folder, I used path_provider to get the path, how do I check if the file exists in the directory? Future<void> checkFile() async{…
-
0
votes2
answers1502
viewsQ: How to get the value of the variable outside the Future method in Flutter?
I am developing in a book app and am stuck on the screen where will open the file . pdf. I need to get the path of the mobile directory using path_provider to send to pdfviewer but I can’t get the…
-
0
votes1
answer118
viewsQ: How to recover data using Firebaserecycleradapter that has automatically generated Ids?
am having an error using Firebaserecycleradapter, at the time of recovering the data from firebase presents this error: "com.google.firebase.database.Databaseexception: Expected a List while…
-
-1
votes1
answer51
viewsA: Do I use Activities or Fragments?
The correct one was to use activities but with recyclerview instead of Gridview. The project went all right.
-
0
votes0
answers199
viewsQ: How to create a String Array from a String Array and an Integer Arraylist?
I am creating an application that will need to store the specialties of each clinic registered in the application, these specialties later I will be in the database of Firebase, I am using a dialog…
-
1
votes1
answer51
viewsQ: Do I use Activities or Fragments?
I’m with a project to develop a guide app for games that will show images through a server and the guide will be pdfs files downloaded and opened by the app. The flow would be: Console list…