Flutter - Firebase Cloud Firestore Streaming to a List

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024

Комментарии • 36

  • @benjaminparfitt3819
    @benjaminparfitt3819 5 лет назад +1

    Very thorough explanations of the steps to get everything running. Great work

  • @saud502ify
    @saud502ify 5 лет назад +1

    Thank you so much for this great video. Very simple and straight forward.

  • @ricard458
    @ricard458 4 года назад

    Very well explained, I like the method where is shown where to get the information. Thanks

  • @jg_yro5845
    @jg_yro5845 5 лет назад +1

    Probably a dumb question... but how would you access the data if you just needed a "mountain" instead of the listview itself? like if you had to pass a List as a parameter and wanted that same data?

  • @pandarzzz
    @pandarzzz 5 лет назад +1

    Thank you for sharing this informative video! Happy New Year to you~

  • @mohamedrafi8872
    @mohamedrafi8872 5 лет назад

    Good Quality Mic.. Thanks

  • @hitanshugogoi
    @hitanshugogoi 6 лет назад +1

    Its very helpful for me ...

    • @BrandonDonnelson
      @BrandonDonnelson  6 лет назад

      Great to hear, thanks for the feedback!

    • @hitanshugogoi
      @hitanshugogoi 6 лет назад

      I also want to know more about redux ... Actually want learn many things ... If you guide me then its very helpful for me ..

  • @MartinMartinez-hj7co
    @MartinMartinez-hj7co 6 лет назад +4

    What if I just want to save the data in a list?

    • @LexPrimost
      @LexPrimost 5 лет назад

      Did u find any solutions for your question? Im in the same situation

    • @HemangJoshi
      @HemangJoshi 5 лет назад

      Same Problem Here.... Please reply is you found any solution.

  • @caffekhalisa6264
    @caffekhalisa6264 6 лет назад +2

    Please make one series on making chat application using firebase as backend.

    • @BrandonDonnelson
      @BrandonDonnelson  6 лет назад +1

      Great idea. I'm working my way to larger examples with Firebase. Thanks for the feedback. I'm about to record another firebase real time database example which should be out soon.

  • @isaacbarros88
    @isaacbarros88 5 лет назад

    Thank you!

  • @remoreacts91
    @remoreacts91 5 лет назад

    Can you please show us how you combined two or more QuerySnapshot streams into one and then use in the StreamBuilder?

  • @creativelymedia6050
    @creativelymedia6050 6 лет назад

    This is great, but how do you do paging with Firestore and the streambuilder?

  • @hitanshugogoi
    @hitanshugogoi 6 лет назад +1

    Nice video ... But I have one question ...how can put text input fill to my app by which I can add data to cloud firestore.. And also add photo to firestore..

    • @BrandonDonnelson
      @BrandonDonnelson  6 лет назад +1

      Thank you. I've prepped my firestore video and will be recording it soon. I'll queue a video on the cloud storage, uploading too. Good idea. Thanks for your feedback!

  • @apsackapp1466
    @apsackapp1466 6 лет назад

    Hey, how do you retrieve data from two collections and build the list items?

  • @ajinkyatemak4627
    @ajinkyatemak4627 6 лет назад +10

    Your channel is amazing but the thumbnails dont give justice to your content and that is why your videos are not getting views. Please improve your thumbnails.

    • @Boilinglemon
      @Boilinglemon 5 лет назад +1

      ^ 100% agree with this, this video gave me the exact help I needed but I literally put off watching it the whole of yesterday because of the thumbnail. I feel shallow for doing that but it does really make a difference when every other video is screaming for your attention. Regardless, great vid and I subbed so I won't miss any more useful tips :)

    • @HimanshuYT
      @HimanshuYT 4 года назад

      right

  • @nussknacker2719
    @nussknacker2719 6 лет назад

    Thank you for the great video!
    Do know, how can I get a single item from the Firestone and not the whole collection?

    • @BrandonDonnelson
      @BrandonDonnelson  6 лет назад +2

      Thank you! And thanks for the feedback. Try this...
      void _testGet() async {
      DocumentSnapshot snapshot = await Firestore.instance.collection('mountains').document("-LA6NFJqnWOY5IGEr9AK").get();
      String title = snapshot.data['title'] as String;
      print("title is $title");
      }

  • @rajremo4072
    @rajremo4072 5 лет назад

    Hi Mr. Brandon please help me in adding firebase extensions in pubspec.yaml. Im always facing issue with versions

  • @Akilesalan
    @Akilesalan 4 года назад +1

    O meu deu erro aí eu coloquei ( ) em snapshot : ('mountains').snapshots( ) ai funcionou.

  • @AndrewProjectos
    @AndrewProjectos 4 года назад

    does not work, it has an error in the mountainList Class with the stream
    class MountainList extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
    return new StreamBuilder(
    stream: Firestore.instance.collection('user').snapshots,
    builder: (BuildContext context, AsyncSnapshot snapshot) {
    if (!snapshot.hasData) return new Text('Loading...');
    return new ListView(
    children: snapshot.data.documents.map((document) {
    return new ListTile(
    title: new Text(document['title']),
    subtitle: new Text(document['type']),
    );
    }).toList(),
    );
    },
    );
    }
    }

  • @silentsudo
    @silentsudo 6 лет назад

    I have tried to use FutureBuilder, i have issues over here is that first time it return empty set(snapshot.hasError is true) then i return loading widget, next time it return valid set this time new List is not updated anything wrong i may be doing, and unfortunately i was trying this on the day this video was published, is there any live coding session i can attend it it free :)

    • @BrandonDonnelson
      @BrandonDonnelson  6 лет назад +1

      I can't picture what the issue is yet. StackOverflow may be a better place to ask this, or in the gitter.im/flutter/flutter channel. I have noticed there are some configs the FlutterBuild causes more challenges with. So what I usually do is create a variable and swap the widget out after the query. I cover that in some of my other episodes. I'll be publishing a new one shortly that has it too.

  • @sunitgautam7547
    @sunitgautam7547 6 лет назад

    Please make a video on flutter fireabse facebook Oauth.

  • @rakhimian
    @rakhimian 6 лет назад

    Hi Mr Donnelson,
    Many thanks fot your tutorials. It's real helpful also for me.
    After running my flutter app I received some error related with QuerySnapshot. Please check it & help me how I can solve it. Thks!
    ---
    compiler message: lib/main.dart:59:53: Error: A value of type '() → dart.async::Stream' can't be assigned to a variable of type 'dart.async::Stream'.
    compiler message: Try changing the type of the left hand side, or casting the right hand side to 'dart.async::Stream'.
    compiler message: stream: Firestore.instance.collection('kids').snapshots,
    compiler message: ^
    Compiler failed on /home/startup/AndroidStudioProjects/app/lib/main.dart
    FAILURE: Build failed with an exception.
    ---

    • @BrandonDonnelson
      @BrandonDonnelson  6 лет назад

      I would have to see the code configuration. From what it looks like the left side variable declaration doesn't match the return type. A shot in the dark, maybe its a future, and just maybe adding an await, might return the variable you expect in the future. It's hard to tell with out the code.

    • @BrandonDonnelson
      @BrandonDonnelson  6 лет назад

      Thanks and thanks for for the feedback too.

    • @rakhimian
      @rakhimian 6 лет назад +1

      Yes! You're right. Thank you (issue closed).