Flutter Null Safety Migration

Поделиться
HTML-код
  • Опубликовано: 19 окт 2024
  • In this video we go over the Flutter null safety migration for the BoxtOut customer app. We use Dart Migrate, as well as the pub update commands to smooth over the process.
    Firebase backend setup: • Serverless Computing i...
    Git Repo: github.com/Fil...
  • НаукаНаука

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

  • @rydmike
    @rydmike 3 года назад +2

    Nice video👍
    Some additional hints: If your project use linting rules that forces strong mode, does not allow implicit dynamic, and also requires you to specify all your types, basically like the Flutter repo does, then you have a lot less issues to deal with when you migrate. Reviewing the migration suggestions of the tool and adding assists to it, especially for your models and core classes, is also a good idea. Then you don’t have to do it post migration and you may also get an even more robust result.
    PS: Adding very strict linting rules to a big project that has not used them before, is an even bigger pain than null safety migration. It can however, be an eye opener and very educational.

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Thanks Mike! I agree with that. I've been steering away from some linting rules for a while, we'll be adding that in to all our projects going forward to ensure we have conventional code bases.

  • @iampapagray5031
    @iampapagray5031 3 года назад

    I’m glad you’re back. Was worried you were not posting.

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Had a lot of things happening at once, but should be back, rolling steady now :) 1 video a week is the goal. Maybe more when I can

  • @berosolo866
    @berosolo866 3 года назад +1

    althought it seems a bet tricky, thanks for sharing your experience 👀

    • @FilledStacks
      @FilledStacks  3 года назад

      It's my pleasure. It is a bit tricky sometimes.

  • @coach10001
    @coach10001 3 года назад

    Fibre ... Fibre ... Fibre uppercut. If you know. Then that's funny. Hope the fibre genie gets to your home soon. Congrats on the house!

    • @FilledStacks
      @FilledStacks  3 года назад

      I don't know :) But thank yoooouuu! Much appreciated. Hoping for the fibre genie to show up.

  • @mafzal644
    @mafzal644 3 года назад

    Was a struggle but worth it❣️

    • @FilledStacks
      @FilledStacks  3 года назад

      It was, but man it's such a better experience having null safety around.

    • @mafzal644
      @mafzal644 3 года назад

      @@FilledStacks agreed

  • @samymanosalvas
    @samymanosalvas 3 года назад

    Gracias por el aporte me ayudo mucho

    • @FilledStacks
      @FilledStacks  3 года назад +1

      I don't have access to Google translate but I see Gracias so you're welcome. It's my pleasure sharing what I know.

  • @martinharris4416
    @martinharris4416 3 года назад

    congrats for the new house!!

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Thank you 😊 I appreciate it.

  • @ankurbansal8257
    @ankurbansal8257 3 года назад

    Hey, Thank you for posting a video on this.
    I'm getting a list of some of my own files as "unmigrated dependencies" when running dart migrate. When I run "dart pub outdated --mode=null-safety", it says, "All your dependencies declare support for null-safety.".
    Can you help me how should I resolve it? I have Googled and youtubed for so long. I have asked on stackoverflow as well, but no luck. Thanks.

    • @FilledStacks
      @FilledStacks  3 года назад

      Hey, you need to migrate your files to null safety or ignore them in the migrate process

  • @carlomigueldy
    @carlomigueldy 3 года назад

    Bugs are squashed! :D 🙌

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Yup yup! Thanks for finding it and fixing it

  • @iampapagray5031
    @iampapagray5031 3 года назад

    Nice. I want to know if you will be migrating sqflite_migration_service to null-safety soon.

    • @FilledStacks
      @FilledStacks  3 года назад +1

      yes it should be ready tomorrow :)

    • @iampapagray5031
      @iampapagray5031 3 года назад

      @@FilledStacks WIll be waiting. Thanks for all the effort you put in the community. 👍🏽

    • @FilledStacks
      @FilledStacks  3 года назад +1

      @@iampapagray5031 It's my pleasure.

  • @isyedaliraza
    @isyedaliraza 3 года назад

    Awesome ❤️❤️

    • @FilledStacks
      @FilledStacks  3 года назад

      Thanks for watching and commenting

    • @isyedaliraza
      @isyedaliraza 3 года назад

      And thank you too for your amazing videos bro ❤️

  • @ompersonal8347
    @ompersonal8347 3 года назад

    Which technology is used in filledstack website?

  • @Twentizz
    @Twentizz 3 года назад

    Is it possible to remove a legacy library from null safety library pls tell how to do it

    • @FilledStacks
      @FilledStacks  3 года назад +1

      Yes, you open the code and remove all the parts you don't want.

  • @whoman7930
    @whoman7930 3 года назад

    hey there, how can we use firebase emulator, for local flutter development, on the real device?

    • @FilledStacks
      @FilledStacks  3 года назад

      hey, you can install the emulators like I show on my firebase video and then point the local flutter project to it.

    • @whoman7930
      @whoman7930 3 года назад

      ​@@FilledStacks I’m trying to figure this out, since this week. But it doesn’t work.
      I want you to first try and confirm.
      I’m newbie, and I also didn’t got enough resource on this.
      It works on android emulator but not on the real device connected with usb.
      Please help!

  • @michaeladeyeri5982
    @michaeladeyeri5982 3 года назад

    What's the name of your code versioning app?

  • @printfmit9744
    @printfmit9744 3 года назад

    yo 👍👍👍👍

  • @spiderion1
    @spiderion1 3 года назад

    I tried many times. I cant migrate my huge project.

    • @FilledStacks
      @FilledStacks  3 года назад

      It's super tricky man. Especially when not all packges are null safe yet

  • @rakaalrian5659
    @rakaalrian5659 3 года назад

    which flutter version you use in this video?

    • @rakaalrian5659
      @rakaalrian5659 3 года назад

      because --null-safety is not found when I try to run 'dart pub upgrade --null-safety'

    • @FilledStacks
      @FilledStacks  3 года назад

      @@rakaalrian5659 The latest version.

  • @georgedicu6001
    @georgedicu6001 3 года назад

    my eyes hurt when I see GUI for GIT :(

    • @FilledStacks
      @FilledStacks  3 года назад +1

      haha, you sound like all the other backend devs that I know :D

    • @georgedicu7397
      @georgedicu7397 3 года назад

      I have to admit, conflict resolution with Android Studio is awesome. You get your changes on the right, incoming changes on the left and current conflict resolution file in the middle...it's awesome. Not to mention other functionality for this.

    • @FilledStacks
      @FilledStacks  3 года назад

      @@georgedicu7397 Nice. Android Studio I've abandoned a long time ago due to all the UI and extra things in there. But that does sound very nice. Vs Code has something similar witthout the middle file.