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 readingTag: 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 readingA value of type 'Iterable<HospitalListModel>' can't be assigned to a variable of type 'List<HospitalListModel>'
Issue I got a flutter error A value of type ‘Iterable<HospitalListModel>’ can’t be assigned to a variable of type ‘List<HospitalListModel>’. This is my model: List<HospitalListModel> hospitalListModelFromJson(String str) => List<HospitalListModel>.from(json.decode(str).map((x) => HospitalListModel.fromJson(x))); String hospitalListModelToJson(List<HospitalListModel> data) => json.encode(List<dynamic>.from(data.map((x) => x.toJson()))); class HospitalListModel
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 readingGstreamer plugin for embedded flutter freeze at first frame
Issue I am trying to make a video player plugin work for the video_player package on flutter. This is all on an embedded target (iMX8M Mini). This plugin uses gstreamer to function. However, while gstreamer pipelines on the terminal work
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 readingHow to auto hide appbar flutter
Issue Can anyone tell how to implementation auto hide appbar when scroll down and if we scroll up the app bar appear again. Any code example will be appreciated New to flutter curious about how to implement this Solution You
Continue reading