Issue Using Flutter 3.3.9, I fetch a record from my Firestore database using a Streambuilder. I use the following code segment to do this: StreamBuilder<Object>( stream: FirebaseFirestore.instance .collection(‘users’) .doc(userId) .snapshots(), builder: (context, snapshot) { if (snapshot.connectionState == ConnectionState.waiting) { return
Continue readingCategory: Flutter
reading data from firebase firestore collection at stream builder
Issue I got trouble with firebase fireStore. There is a stream builder reading data from items collection. Inside items collection there is some fields and another collections. I haven’t any problem with fields, the problem is with collection. how to
Continue readingAdding a row with FirebaseAuth onError on flutter project
Issue I’m trying to make a row appear after the onError event activates, my idea is to do something like what’s in the code, but I can’t figure that out signInAndUpButton(context, true, () { FirebaseAuth.instance .signInWithEmailAndPassword( email: _emailTextController.text, password: _passwordTextController.text)
Continue readingHow to customize marker in Google Map for Flutter web
Issue I am building a web in Flutter, so I am using this package to add a functional map. I would like to change the color or the marker, and for that I have to change the png that is
Continue readingHow to have ListTile info appear on the same vertical line?
Issue I have a ListTile built with following code: child: ListTile( leading: Padding( padding: EdgeInsets.only(top: 4, left: 12, bottom: 4), child: Text(department, style: TextStyle(color: Colors.white)), ), contentPadding: EdgeInsets.only(top: 4, left: 12, bottom: 4), title: Column( mainAxisAlignment: MainAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.start, children:
Continue readingFlutter ListView doesn't get constrained by wrapping it in Expanded
Issue I’m struggling hard with Flutter’s sizing constraints. I’m trying to make a custom scaffold like screen with a custom appbar and a stack below it with the lowest layer being a listview, and then maybe floating buttons on top
Continue readingTextFormField value resets back to initialValue inside a StreamBuilder in a scrollable ListView
Issue I got a problem working with TextFormField inside a StreamBuilder in a scrollable ListView. When a ListView is scrolled up and down, it destroys and rebuilds some children. When StreamBuilder widget rebuilds itself due to asynchronous nature of streams,
Continue readingUse DateTime.now() whehn I create an user in flutter with firebase
Issue I want to create a model user like this : @JsonSerializable() class User { final String id; final String email; final bool isAdmin; final bool canDeleteUser; final bool canCreateUser; final String nom; final String prenom; final DateTime createdDate; final
Continue readingFlutter – null check operator error in a child that should not be rendered yet
Issue I made a Loader widget which shows a loading indicator if isLoading = true and shows a child widget only if isLoading = false. The problem is when I use nullable data in the child, even though isLoading =
Continue readingCasting value results in, type 'Null' is not a subtype of type 'int' in type cast, error in Flutter
Issue I’m going through a tutorial on Flutter and am receiving a run-time error, but I’m not clear why. The error I’m receiving is, type ‘Null’ is not a subtype of type ‘int’ in type cast. However, the value of
Continue reading