Fireship · @fireship

Flutter Firebase Setup for Power Users

Uploaded August 11, 2020 · Length 12:59

Flutter Firebase Setup for Power Users

Summary

Setup Flutter Firebase for mobile app development, covering ios and android setup, analytics, crashlytics, and performance.

  • flutter firebase setup
  • flutter ios setup
  • flutter android setup
  • firebase analytics
  • firebase crashlytics
  • flutter performance

Transcript preview

The first 2 minutes of the transcript. Select a timestamp to watch that moment on YouTube.

  1. 0:00

    perfect tech stacks are rare in an

  2. 0:01

    imperfect world but i think the flutter

  3. 0:03

    firebase stack is about as close as you

  4. 0:05

    can get

  5. 0:05

    today's tutorial is a setup guide for

  6. 0:07

    developers building a serious mobile app

  7. 0:09

    flutter and firebase you'll learn the

  8. 0:11

    basic setup steps for ios and android

  9. 0:13

    how to set up a local development

  10. 0:14

    environment using the new firebase

  11. 0:16

    emulator suite then we'll implement

  12. 0:17

    analytics to understand our users

  13. 0:19

    crashlytics and performance to improve

  14. 0:21

    the quality of our app

  15. 0:22

    and finally we'll look at app

  16. 0:24

    distribution to test our builds before

  17. 0:26

    they get in the hands of actual users on

  18. 0:28

    the app stores

  19. 0:28

    by the end of this video you should have

  20. 0:30

    a solid foundation for building pretty

  21. 0:32

    much anything you can imagine with the

  22. 0:33

    flutter fire stack well if anyone wants

  23. 0:35

    to develop an app with me i'm down

  24. 0:37

    we'll be starting this video with the

  25. 0:38

    basic setup but if you want to jump

  26. 0:39

    ahead to the fun stuff

  27. 0:40

    check out the time stamps in the video

  28. 0:41

    description as you can see here in vs

  29. 0:43

    code i have a freshly generated flutter

  30. 0:45

    app if you're not sure how to get to

  31. 0:46

    this point

  32. 0:47

    check out the official install

  33. 0:48

    instructions for flutter from there

  34. 0:50

    we'll open up the pub spec yaml file and

  35. 0:52

    go to the dependencies section

  36. 0:53

    firebase maintains a variety of

  37. 0:55

    different plugins for flutter

  38. 0:56

    the only one that's actually required is

  39. 0:58

    firebase core everything else you can

  40. 1:00

    just pick and choose as needed

  41. 1:02

    most apps will use firestore as well as

  42. 1:04

    firebase auth

  43. 1:05

    and i'm also including the google

  44. 1:06

    sign-in plugin to support that sign in

  45. 1:08

    method

  46. 1:09

    from there we have analytics and we'll

  47. 1:10

    also throw in performance and

  48. 1:12

    crashlytics

  49. 1:13

    i'll explain what all these do in more

  50. 1:14

    detail throughout the video in this demo

  51. 1:17

    you'll notice i'm leaving the version

  52. 1:18

    numbers empty

  53. 1:19

    however it would be a good idea to peg

  54. 1:20

    these dependencies to a specific version

  55. 1:22

    just so they don't break when you update

  56. 1:24

    things you'll find the latest version

  57. 1:25

    for each plugin and the firebase docs

  58. 1:28

    that takes care of our initial flutter

  59. 1:29

    setup now we need a firebase project

  60. 1:31

    if you're brand new to firebase i'd

  61. 1:32

    recommend checking out my firebase

  62. 1:34

    basics video

  63. 1:35

    oh and by the way if things are going

  64. 1:36

    too fast in this video make sure to

  65. 1:38

    follow along with the full write-up on

  66. 1:40

    fireship io that breaks everything down

  67. 1:41

    step by step

  68. 1:43

    but at this point we just need a project

  69. 1:44

    in the cloud that we can link to our

  70. 1:46

    front-end app now it's time to configure

  71. 1:48

    this app for android from the settings

  72. 1:49

    tab in the firebase console we'll add a

  73. 1:51

    new android app

  74. 1:52

    we need to decide on a bundle id which

  75. 1:54

    is like a reverse domain name

  76. 1:56

    so in my case it would be io dot

  77. 1:58

    fireship followed by the app name