Flutter Tutorial - Hive NoSQL Database In 16 Minutes & Hive CRUD | Android, iOS & Web

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ต.ค. 2024

ความคิดเห็น • 201

  • @HeyFlutter
    @HeyFlutter  2 ปีที่แล้ว +1

    👉Join 12 Week Flutter Training: heyflutter.com
    👉Join the WhatsApp Channel to get the latest news about Flutter & HeyFlutter: whatsapp.com/channel/0029VaDNCZtC1Fu8nL2vmw3f
    Source Code: github.com/JohannesMilke/hive_database_example
    Sqflite & Sqlite Database Tutorial: th-cam.com/video/UpKrhZ0Hppk/w-d-xo.html
    Shared Preferences Load & Store Data Tutorial: th-cam.com/video/szOllHT1S7Y/w-d-xo.html
    Shared Preferences II Persist JSON Data Tutorial: th-cam.com/video/-32HIsRf26o/w-d-xo.html
    Firebase CRUD Tutorial: th-cam.com/video/EV2DyrKOqrY/w-d-xo.html
    Secure Storage Tutorial: th-cam.com/video/Oqhrxk_f1RE/w-d-xo.html
    Search App Bar & Search Delegate Tutorial: th-cam.com/video/RaACAwvZ61E/w-d-xo.html
    Crop & Save Images Tutorial: th-cam.com/video/pXbBTJt7frM/w-d-xo.html
    Store Image Tutorial: th-cam.com/video/JDDoN2THwug/w-d-xo.html
    Selectable DataTable Tutorial: th-cam.com/video/HZD-0zgpuak/w-d-xo.html
    Deploy Flutter Web App Tutorial: th-cam.com/video/xJo7Mqse960/w-d-xo.html
    Create Invoice PDF Document Tutorial: th-cam.com/video/z_5xkhEkc5Y/w-d-xo.html
    Google SignIn Tutorial: th-cam.com/video/ogW83xGQGTg/w-d-xo.html
    Email Sign In Tutorial: th-cam.com/video/rnHAInnjCmM/w-d-xo.html
    App Internationalization Tutorial: th-cam.com/video/Zw4KoorVxgg/w-d-xo.html
    Migrate App To Null Safety Tutorial: th-cam.com/video/GLnQphHi1BY/w-d-xo.html
    Null Safety In 5 Minutes Tutorial: th-cam.com/video/Q_WloMNKOkU/w-d-xo.html
    Autofill Services Tutorial: th-cam.com/video/v8T4fnrQCf0/w-d-xo.html

  • @rsa_doluse7962
    @rsa_doluse7962 3 ปีที่แล้ว +15

    The way you broke down the tutorial into steps and sub-steps is absolutely fantastic and easy to follow along. Thanks for this tutorial.

  • @YuvjeethHS
    @YuvjeethHS 3 ปีที่แล้ว +4

    The clearest step by step tutorial on the internet. Thank you so much for this video!

  • @TheEkkas
    @TheEkkas 2 ปีที่แล้ว +2

    Love your tutorials where I must pause/rewind instead of play at double speed :)
    Thanks!

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Glad you liked, True Forensics! 🙂

  • @PaulMcKillop
    @PaulMcKillop 3 ปีที่แล้ว +4

    Thanks, Johannes for giving us a guide to this system that we can follow logically and, most importantly, trust.

  • @nurola
    @nurola 2 ปีที่แล้ว

    After watching lots of video about hive I can say that this is one of the best and thank you Johannes.
    Only thing that you can add is how to use asset hive database which is quite rare scenario.

  • @ebashirli
    @ebashirli 2 ปีที่แล้ว

    Hello dears. I cloned this app to my PC and I add some data to it. When I close and restart it, no data is shown. Is it normal. Couldn't I use Hive as a normal database for flutter web app?

  • @SunGkd123
    @SunGkd123 3 ปีที่แล้ว +2

    Amazing Tutorial thank you so much 👍, I understood most of the things after watching this tutorial, I'll get a better idea once I do it practically.

  • @zulfiqarawan3407
    @zulfiqarawan3407 3 ปีที่แล้ว

    great way of explaining concept. I have question, can hive be used with dio+retofit as offline-first?

  • @svijaykumar7626
    @svijaykumar7626 2 ปีที่แล้ว +1

    we don't need to ask permission for storage to use hive it is reading and writing data in to the storage ?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You s vijay kumar! Follow this link: medium.com/flutter-community/storing-local-data-with-hive-and-provider-in-flutter-a49b6bdea75a
      I hope you will get your answer 🙂

  • @dipalithakare2379
    @dipalithakare2379 ปีที่แล้ว

    Hello Johannes, I followed your tutorial but I got the error " Box not found. Did you forget to call Hive.openBox()?." I have already open box in main.dart file is the same as yours. Please give me any hints why this happened.

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Thank You Dipali Thakare! Follow this link: stackoverflow.com/questions/59436867/box-not-found-did-you-forget-to-call-hive-openbox
      I hope you will get your answer 🙂

  • @R98rayan
    @R98rayan 2 ปีที่แล้ว

    3:35 how do you paste it like that with increase the number ?!

    • @R98rayan
      @R98rayan 2 ปีที่แล้ว

      ​ @Johannes Milke how do you paste your code very fast in this way
      example(1) -> example(2) -> example(3) -> example(4) -> example(5) -> example(6)
      just go in this time 3:35 and you will understand me.

  • @ravronz9677
    @ravronz9677 2 ปีที่แล้ว

    I have a video request. Can you make a crud application that stores data in the local database if there is no internet , when we have internet connection the same data is transferred to the online database in the background.

  • @frankeestv3860
    @frankeestv3860 3 ปีที่แล้ว +1

    Thank you for sharing your knowledge! Clear as crystal.

  • @keithbacalso9433
    @keithbacalso9433 ปีที่แล้ว

    What if I decided to remove the parameter and the example:
    remove HiveField(1) ? then change it to a different parameter, but with same HiveField(1)...?

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Thank You Keith Bacalso! Follow this link: medium.flutterdevs.com/hive-database-with-typeadapter-in-flutter-7390d0e515fa
      I hope you will get your answer 🙂

  • @faizulla5838
    @faizulla5838 2 ปีที่แล้ว

    3:38 Hi Bro, did you told about item "id" ? We are not need show use ID how in sqfli ? -- for example { id , name, createDate, isExpense , ....}

    • @faizulla5838
      @faizulla5838 2 ปีที่แล้ว

      @@HeyFlutter sorry... its my english.
      by

  • @flutterVerseMyanmar
    @flutterVerseMyanmar ปีที่แล้ว

    Unhandled Exception: RangeError: Not enough bytes available.
    Could you solve this problems ? I dont find the solution help

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว +1

      Thank You Nyein Chan! Follow this link: github.com/hivedb/hive/issues/424
      I hope you will get your answer 🙂

  • @nihal5223
    @nihal5223 ปีที่แล้ว

    Hi Johannes! I didn't understand what we did in initState(), can you please explain it?

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Thank You Nihal! Follow this link: api.flutter.dev/flutter/widgets/State/initState.html
      I hope you will get your answer 🙂

  • @hectorprx
    @hectorprx 3 ปีที่แล้ว

    LOve the clarity you bring. Thanks

  • @raunaksingh7512
    @raunaksingh7512 2 ปีที่แล้ว

    Thanks Johannes for a great tutorial.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      You are welcome, Raunak Singh 😊

  • @sagarkoju7710
    @sagarkoju7710 3 ปีที่แล้ว

    I am always your video follower everyday I want to ask something about this
    When user register some data on the text field and add the amount then finally display on the list
    My question is that when user enter the again new data on textfield then previous one data already store on that textbox
    Is there any solution to remove that previous data store on while user enter second data item
    I have use dispose also not working yet

  • @resha4653
    @resha4653 ปีที่แล้ว

    We have to use hive or objectbox for data storage. If we use hive instead of object box then there will be issue or not?

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Thank you, @resha4653! 🙂. There will be no issue.

  • @AL3aRraB1337
    @AL3aRraB1337 2 ปีที่แล้ว

    thanks for this great tutorial , but i have a question how can i fill the box with default data that i can update in the future ?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You theycallmephenomenal! Follow this link: medium.com/flutter-community/storing-local-data-with-hive-and-provider-in-flutter-a49b6bdea75a
      I hope you will get your answer 🙂

    • @AL3aRraB1337
      @AL3aRraB1337 2 ปีที่แล้ว

      @@HeyFlutter ♥♥

  • @svijaykumar7626
    @svijaykumar7626 2 ปีที่แล้ว

    you are best in the world 😍😍😍 thank you very much for the tutorial

  • @eiderarango5863
    @eiderarango5863 3 ปีที่แล้ว

    Nice tutorial man, awesome video and explanation. Keep it up your hard work. Greetings from Colombia.

  • @nguyenhoangmanle3091
    @nguyenhoangmanle3091 3 ปีที่แล้ว +1

    So how can i open .hive DB on windows to check data on it.

  • @90Dandelion
    @90Dandelion 2 ปีที่แล้ว

    Was so glad to find this video, but with null safety you cant call addTransaction Future function from the button. Anyone an idea how it could work?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thanks for letting us know, 90Dandelion! 🙂 We'll try to post update video on this topic with null safety

    • @90Dandelion
      @90Dandelion 2 ปีที่แล้ว

      @@HeyFlutter thanks :) it would also be interesting to see how CRUD operations in Hive work if we want to store data from Firestore locally

  • @benedictkorie8858
    @benedictkorie8858 3 ปีที่แล้ว +1

    You are amazing. Thank you for yet another amazing video tutorial. Well done.

  • @aliappdevelop
    @aliappdevelop ปีที่แล้ว

    As always your video is awesome. But I have one query that Is there any way to make relation between tables in hive?

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      Hey, Mohammad Ali 🙂 it's No Sql database so relation thing is not possible

  • @victorayodejiogundola5988
    @victorayodejiogundola5988 3 ปีที่แล้ว +1

    Great tutorial Johannes but this is the error I am getting in the code "LateInitializationError: Field 'amount' has not been initialized."

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thanks, Victor! 🙂 Learn more about Flutter 2 Null Safety & Late Intialization here: th-cam.com/video/Q_WloMNKOkU/w-d-xo.html

  • @vikarll3873
    @vikarll3873 3 ปีที่แล้ว +2

    Great video with easy to understand explanation. But the sample app fails to work when closed and reopened; throws the error "LateInitializationError: Field 'amount' has not been initialized." on (package:hive_database_example/page/transaction_page.dart:59:43). Except for this, it is a great tutorial to get a kick-start on Hive !!!

    • @vioox
      @vioox 2 ปีที่แล้ว

      @@HeyFlutter Hi Johannes. Thanks for the tut. After changing with ? Im getting "The argument type 'double?' can't be assigned to the parameter type 'num'." in transaction page. so adding "!" variable names causing different errors. Could you help ? Thanks.

    • @leoingson
      @leoingson 2 ปีที่แล้ว

      @@HeyFlutter Got it running once, and debugged the heck out of my flutter versions until I found that comment.
      All those late vars fail at some point. Making them nullable is no solution, since there are follow up errors when using the vars. Not easy to fix, if you are not proficient with null-safety (I come from pre 2.0 flutter).
      It would be very nice to provide a fix on github, since this tutorial seems to be good. Sind doch bloß 10min für dich ;-)

    • @leoingson
      @leoingson 2 ปีที่แล้ว

      After having looked a bit into null-safety, the code example seems quite sloppy unfortunately..

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Hello, ViKARLL! Follow this link: stackoverflow.com/questions/67401385/lateinitializationerror-field-data-has-not-been-initialized-got-error, I hope it will solve your problem. Thank You 🙂

  • @nawaf8666
    @nawaf8666 2 ปีที่แล้ว

    Hi Johannes, thanks for the tutorial.
    When I run "flutter packages pub run build_runner build" I get that it succeeded with 0 outputs. I tried "flutter pub run build_runner watch --delete-conflicting-outputs" after I read a post with the same problem in StackOverFlow but still the file won't be generated. What do you recommend to do?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Hello, Nawaf! Follow this link: stackoverflow.com/questions/59668548/why-doesnt-build-runner-generate-files-when-serializing-json-in-dart-flutter
      I hope it will solve your problem. Thank You 🙂

  • @samarabdulaziz3535
    @samarabdulaziz3535 3 ปีที่แล้ว

    i did these steps but i have a problem saying:
    Bad state: No definition of type List
    [SEVERE] Failed after 501ms
    pub finished with exit code 1
    what Should i do?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Hello, Samar abdulaziz! Follow this link: github.com/flutter/flutter/issues/47040, I hope it will solve your problem. Thank You 🙂

  • @delarammajestic2502
    @delarammajestic2502 3 ปีที่แล้ว

    Hi Johannes , thank you for letting us see the source code I cant believe that I downloaded it !!!

  • @---nw9qu
    @---nw9qu 2 ปีที่แล้ว

    When I restart the closed app, I get the "LateInitializationError: Field 'amount' has not been initialized' error. I've looked at the links as noted in the comments below, but I don't see where the error is occurring or how to fix it.
    Anyone been able to resolved/fix this error?? If so, how.

    • @alikhaled249
      @alikhaled249 2 ปีที่แล้ว

      did you find the solution ?

  • @DeputyRabbit
    @DeputyRabbit 3 ปีที่แล้ว

    Great tutorial. Using Hive, is there a way to ship your app with a prepopulated database?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Jay Klaus! Follow this link: pub.dev/packages/hive. I hope you will get your answer 🙂

  • @user-xe8vl9eh9l
    @user-xe8vl9eh9l 3 ปีที่แล้ว

    hi johannes at the end you said that for more complex database operations sqlfite is best over hive can you please explain me how ,please elaborate ,please give a scenario

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Supriya Vani! Follow this link: blog.codemagic.io/choosing-the-right-database-for-your-flutter-app/
      I hope you will get your answer 🙂

  • @supernova6553
    @supernova6553 2 ปีที่แล้ว

    I got lost. How did you get the required key to update value in DB?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Supernova! Follow this link: itnext.io/flutter-save-data-to-local-storage-with-hive-nosql-database-package-8a0de834f313?gi=2729f591701
      I hope you will get your answer 🙂

  • @Sampelmind81
    @Sampelmind81 2 ปีที่แล้ว

    Hello Johannes, great tutorial helped me a lot!One Question: Is hive able to handle millions of Objects, is there a limit? Thank you!

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Sampelmind81! Follow this link: stackoverflow.com/questions/64020930/can-hive-in-flutter-store-bigdatasome-gb-files
      I hope you will get your answer 🙂

  • @soltig7629
    @soltig7629 3 ปีที่แล้ว

    you are the best man its so on point i loved it bro please keep at it

  • @samuelonyedikachukwuakujor9527
    @samuelonyedikachukwuakujor9527 2 ปีที่แล้ว

    Hey Milke, is it possible to use Hive with out the adapters ?
    Is there any specific reason why adapters are needed?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Samuel Onyedikachukwu Akujor! Follow this link: medium.com/flutter-community/storing-local-data-with-hive-and-provider-in-flutter-a49b6bdea75a
      I hope you will get your answer 🙂

    • @samuelonyedikachukwuakujor9527
      @samuelonyedikachukwuakujor9527 2 ปีที่แล้ว

      Yup !
      I ran into a problem and now I think I see why we need the Type Adapters ...
      Correct me if I'm wrong, but that's to help us save different Model types directly?

  • @burakdeniz5438
    @burakdeniz5438 2 ปีที่แล้ว

    Thank you. I fixed my app thanks to you :)

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      You’re most welcome, Burak Deniz! 🙂

  • @prometheusli101
    @prometheusli101 3 ปีที่แล้ว

    why we need do this complex thing?i just operating data directly by without model,it looks working fine!

  • @teesl4240
    @teesl4240 2 ปีที่แล้ว

    Hi thanks for the tutorial. Can you provide more tutorial for Flutter Hive.

  • @d-apps2699
    @d-apps2699 3 ปีที่แล้ว

    If I just have a fromJson and toJson in my models, that coverts my class to a Map, can I just store and retrieve these Maps without modify my class adding annotations and using build runner? I have classes with a lots of attributes.

    • @d-apps2699
      @d-apps2699 3 ปีที่แล้ว

      @@HeyFlutter Can I just convert my classes to Map to store and retrieve data from hive, without need to use those annotations and build runner? Isnt it more easy?

  • @peshawapedia
    @peshawapedia 2 ปีที่แล้ว

    fantastic bro very well and in easy way explained, thanks

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Glad to hear that, Thank you Lagal Peshawa 😊

  • @helvecioguimaraes
    @helvecioguimaraes 2 ปีที่แล้ว

    Hey, this is great, thanks! Now, can anyone comment why store data locally if you can use the cloud?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Good question, Helvecio Borges! 🙂
      There are multiple scenarios
      - In case internet is not connected and still you wanna show some data
      - Loading from local is way faster then loading from cloud so in case there is some repetition of loading data you can store it locally
      - In case you just want to make a application with no need of cloud other than storing data. You can use local DB
      - and many more

  • @delarammajestic2502
    @delarammajestic2502 3 ปีที่แล้ว

    Hi johanness , I've got this error : LateInitializationError: Field 'amount' has not been initialized. how can I solve it ? i havent add anything to your code ...it was fine yesterday but today ive tried to connect the project from vs code to the emualtor i got this error ... i would really appreciate your help on that .

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Hello, delaram majestic! Follow this link: stackoverflow.com/questions/67040839/flutter-lateinitializationerror-field-name-has-not-been-initialized, I hope it will solve your problem. Thank You 🙂

  • @ahmeedev
    @ahmeedev 3 ปีที่แล้ว

    Keep it up bro.
    Your work is awesome.

  • @hadikhan1813
    @hadikhan1813 3 ปีที่แล้ว

    When i run flutter packages pub run build_runner build.
    .g.dart isn't generating.
    What should i do to fix this
    i tried flutter clean | flutter pub get | flutter packages pub run build_runner build --delete-conflicting-outputs
    nothing works

    • @hadikhan1813
      @hadikhan1813 3 ปีที่แล้ว

      @@HeyFlutter Thanks for replying. Problem solved.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Hello, Hadi Khan! Follow this link: stackoverflow.com/questions/58360475/flutter-json-serialization-not-generating-g-dart-files, I hope it will solve your problem. Thank You 🙂

  • @aminsamad6900
    @aminsamad6900 2 ปีที่แล้ว

    Does it support windows? And can I back up my data and load it on another platform?

    • @aminsamad6900
      @aminsamad6900 2 ปีที่แล้ว

      @@HeyFlutter I'm trying to use it, Thank you so much

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thanks, Amin Samad! 🙂 Yes it do support windows and you can take backup of your data and can be used on other platform

  • @anugrahkorambeth431
    @anugrahkorambeth431 3 ปีที่แล้ว

    How can we add a list in the model class in hive? Do we have to register an adapter for the myobject class as well as for the model class? Is the way of registering adapter for myobject similiar to that of model class?

    • @anugrahkorambeth431
      @anugrahkorambeth431 3 ปีที่แล้ว

      @@HeyFlutter Hey there! I gave it a shot just a few minutes back by creating a new adapter for the myobject and registering it, and it worked!

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Anugrah Kora! Follow this link: stackoverflow.com/questions/59413228/how-to-save-a-listobject-and-retrieve-using-hive
      I hope you will get your answer 🙂

  • @oldmen2544
    @oldmen2544 3 ปีที่แล้ว

    Hey my question is do I need to ask for permission from user something like internal storage permission etc, or I can simply use it without permission as it is and in what file format it stores your data and where 🙄🙄 please help me out

    • @oldmen2544
      @oldmen2544 3 ปีที่แล้ว +1

      @@HeyFlutter does this package will do those things automatically?? Or I need to write some code btw thanku so much ❤️❤️❤️❤️ you're doing fabulous work and also helping beginners like me 👍

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, old men! 🙂
      Well you are write we have to provide storage permissions. Hive makes use of storage path to store data in a particular directory. You need not to provide permissions explicitly you can make use of this package : pub.dev/packages/path_provider to access storage path as well as requesting permission

  • @jrvidotti
    @jrvidotti 3 ปีที่แล้ว

    Nice tutorial, liked and subscribed!

  • @nahrawenebenhmida7149
    @nahrawenebenhmida7149 2 ปีที่แล้ว

    Really great work and I have personally been using your videos and I hope you continue posting :)..

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Glad to hear that, Thank you nahrawene ben hmida! 😊

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 3 ปีที่แล้ว +1

    Where are we defining the box name ?

  • @frankeestv3860
    @frankeestv3860 3 ปีที่แล้ว

    WOW this is just what I'm looking for! Thank you! I have one question though, Does it do same with SharedPreferences?

    • @frankeestv3860
      @frankeestv3860 3 ปีที่แล้ว

      @@HeyFlutter wow awesome! you really are an expert on flutter! Continue sharing brother.!

    • @frankeestv3860
      @frankeestv3860 3 ปีที่แล้ว

      @@HeyFlutter You're really awesome! Thanks!

    • @leoingson
      @leoingson 2 ปีที่แล้ว

      Shared preferences cannot store DateTime, also.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thanks, Frankee! 🙂 Yes, it is similar, however, using Hive is more convenient, especially if you use the save and delete methods such as pointed out at 13:15 and 14:17. Hive also supports encryption and easy ways to display the data asynchronously in your UI. Learn more about it here: docs.hivedb.dev/#/../best-practices/when_to_use_hive?id=when-to-use-hive

    • @frankeestv3860
      @frankeestv3860 2 ปีที่แล้ว

      @@HeyFlutter Thank you! You're awesome!!

  • @andreasacca7971
    @andreasacca7971 11 หลายเดือนก่อน

    Does anyone know how to show only part of the values contained in the box based on a word search?

    • @HeyFlutter
      @HeyFlutter  11 หลายเดือนก่อน

      Thank You @andreasacca7971! Follow this link: stackoverflow.com/questions/64272936/how-to-filter-hive-data-in-flutter-by-data-values
      I hope you will get your answer 🙂

  • @uditmishra5583
    @uditmishra5583 3 ปีที่แล้ว

    Very helpful,thank you so much man.

  • @smitajangle758
    @smitajangle758 3 ปีที่แล้ว

    Can I save list of map as a value? Do I need to do anything extra

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Smita Jangle! 🙂
      yes sure why not, check out this solution : stackoverflow.com/a/48117264

  • @saratiko
    @saratiko 2 ปีที่แล้ว

    Have you ever worked with hive and nested data?
    I'm doing a project where I was trying to do nesting and lists. For my project I'm initially creating content to a box similar to you but I also have a list eg:
    String name
    List items
    The items are empty in the beginning when creating the entry to the box and I'm planning on populate the item list in your "edit" section, eg entering the item number and quantity followed by "save" which is supposed to save the data to the list for the entry in the box. Adding more entries on the "edit" page will add-on to the list of items.
    I then want to see the list of items in a scrollable list on the "edit" section for that entry but I can't seem to make it work. For starters I can't seem to populate the list and it seems very hard making the List items listenable in an ValueListenableBuilder.
    Have you ever worked like this before? Any Ideas?

    • @saratiko
      @saratiko 2 ปีที่แล้ว

      @@HeyFlutter thank you, I’ll look into it.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Jim Sundqvist! Follow this link: medium.com/nonstopio/best-local-database-for-flutter-hive-part-3-3a87fac526a5
      I hope you will get your answer 🙂

  • @lu_an2344
    @lu_an2344 3 ปีที่แล้ว

    Thank you so much. It's very useful

  • @smarpitsingh
    @smarpitsingh 3 ปีที่แล้ว

    You're a Messiah..!!

  • @abdallahboucedraya
    @abdallahboucedraya 2 ปีที่แล้ว

    hi, how I can implement where clause or pagination with hive?
    thank you.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว +1

      Thank You أبو رؤيم عبدالله بوسدراية! Follow this link: pub.dev/packages/hive
      I hope you will get your answer 🙂

  • @djjavvystark5470
    @djjavvystark5470 3 ปีที่แล้ว +1

    This is Amazing, thank you so much.

  • @bibekmagar9897
    @bibekmagar9897 3 ปีที่แล้ว

    Thank you very much it helped me a lot

  • @PianoStorm20
    @PianoStorm20 3 ปีที่แล้ว

    Hi Johannes, awesome work! Thank you for your great content! I'm on a project right now and looking for a possibility to add data to only one field of a Box with seven fields. Is that Possible? Hive is really great to use but this is something I stuck with... Is there any solution for it? I'm really looking forward to your answer. Greetings from Germany :)

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Artur Troizki! 🙂 you can also make use of sqflite checkout this video : th-cam.com/video/UpKrhZ0Hppk/w-d-xo.html

  • @tams45
    @tams45 3 ปีที่แล้ว

    This was an awesome video, can I request a video of how to login and sign up users using Hive and flutter.

  • @brainman2125
    @brainman2125 2 ปีที่แล้ว

    Hi) Thanks for video! What about Moor SqLite library tutorial?)

  • @nishantsharma5562
    @nishantsharma5562 2 ปีที่แล้ว

    The box "notebook" is already open and of type Box. Error I get

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You NISHANT SHARMA! Follow this link: stackoverflow.com/questions/71920274/how-to-fix-hive-box-already-open-error-in-flutter
      I hope you will get your answer 🙂

  • @raghav042
    @raghav042 3 ปีที่แล้ว

    Very useful and informative videos 🔥, thanku for all these videos ❤️

  • @mahmudulhasanmridul435
    @mahmudulhasanmridul435 3 ปีที่แล้ว

    Cannot creat generate Image.g.dart file
    I try 4/5 days but cannot solve this issues.
    Solution plz?

    • @mahmudulhasanmridul435
      @mahmudulhasanmridul435 3 ปีที่แล้ว

      @@HeyFlutter [WARNING] hive_generator:hive_generator on lib/DataModel/ImageModel.dart:
      ImageModel.g.dart must be included as a part directive in the input library with:
      part 'ImageModel.g.dart';
      cannot solve .

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Hello, Mhamudul Hasan Mridul! Follow these links: dart.dev/guides/language/effective-dart/style, I hope it will solve your problem. Thank You 🙂

  • @janammaharjan2699
    @janammaharjan2699 2 ปีที่แล้ว

    Very Nice Thank you very Much

  • @vidyasagargaikwad1268
    @vidyasagargaikwad1268 3 ปีที่แล้ว

    Would it be good to use hive DB with search delegate?

    • @vidyasagargaikwad1268
      @vidyasagargaikwad1268 3 ปีที่แล้ว

      @@HeyFlutter thank you😊

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Vidyasagar Gaikwad! Follow this link: viveky259259.medium.com/hive-for-flutter-1-when-why-database-cea0013c9fc1
      I hope you will get your answer 🙂

  • @abdallahboucedraya
    @abdallahboucedraya 2 ปีที่แล้ว

    You are amazing. Thank you for yet another amazing video tutorial. Well done.
    can you make another tutorial about ObjectBox ?

  • @arslaniqbal5435
    @arslaniqbal5435 3 ปีที่แล้ว

    Is hive good for making todo apps??

    • @arslaniqbal5435
      @arslaniqbal5435 3 ปีที่แล้ว

      And it is offline also

    • @arslaniqbal5435
      @arslaniqbal5435 3 ปีที่แล้ว

      @@HeyFlutter thanks for the reply... Plz tell me what i can do foe making categories... While user select in dropdown menu.. I appreciate your help

  • @TungNguyen-lt5ej
    @TungNguyen-lt5ej 2 ปีที่แล้ว

    Big thank to you! series of you very wonderful! :D i have subscribed channel

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Glad to hear that, Thank you Tung Nguyen! 😊

  • @hpbisa7225
    @hpbisa7225 3 ปีที่แล้ว

    This is what i need, you are so cool

  • @worldlegends1942
    @worldlegends1942 3 ปีที่แล้ว

    when i run build_runner build it succeed with 0 outputs please help

    • @worldlegends1942
      @worldlegends1942 3 ปีที่แล้ว

      @@HeyFlutter thanks

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You World legends! Follow this link: github.com/google/json_serializable.dart/issues/543
      I hope you will get your answer 🙂

  • @MrQooje2
    @MrQooje2 3 ปีที่แล้ว

    Excellent guide! You're an MVP! Thanks a lot!

  • @Thafseerzzz
    @Thafseerzzz 2 ปีที่แล้ว

    Informative and well explained

  • @СобакаСобака-щ5ц
    @СобакаСобака-щ5ц 3 ปีที่แล้ว

    So i have the question. th-cam.com/video/w8cZKm9s228/w-d-xo.html you have function type 'Future', but func returns nothing. My IDE starts to swear at me at theat moment. How do yo make it happen? If you write type of function you must return that type in function body. Isnt it?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thanks, Собака Собака! 🙂 Learn more about it here: flutteragency.com/how-to-use-future-return-value-as-if-variable-in-flutter/

    • @СобакаСобака-щ5ц
      @СобакаСобака-щ5ц 2 ปีที่แล้ว

      @@HeyFlutter ahah, thanks for answer, at that moment im junior developer at work. Not actual question.

  • @amalkhezami99
    @amalkhezami99 3 ปีที่แล้ว

    amazing explanations and nice tutorial . can you please make a video about spring boot and flutter web crud with sql and thanks

  • @denkmedia6892
    @denkmedia6892 ปีที่แล้ว

    Thank you bro

    • @HeyFlutter
      @HeyFlutter  ปีที่แล้ว

      You are welcome, @denkmedia6892 😊

  • @pradeepkumarreddykondreddy7048
    @pradeepkumarreddykondreddy7048 3 ปีที่แล้ว +1

    why late keyword is used here ?

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Pradeep Kumar Reddy Kondreddy! 🙂 when we are not initializing a variable then we usually use late keyword to avoid build time errors

  • @hiteshreddy9807
    @hiteshreddy9807 2 ปีที่แล้ว

    mandatory insight 1:50 what is that?

  • @jakubiwanicki8884
    @jakubiwanicki8884 3 ปีที่แล้ว

    Thanks for this video

  • @rohanpatil8417
    @rohanpatil8417 3 ปีที่แล้ว

    Thank you!!

  • @haberinvarsa
    @haberinvarsa 2 ปีที่แล้ว

    Firebase set to hive how is it done

    • @haberinvarsa
      @haberinvarsa 2 ปีที่แล้ว

      @@HeyFlutter thank you bro :)

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Hakan Akgül! Follow this link: stackoverflow.com/questions/65168612/how-to-put-data-to-hivedb-after-fetching-it-from-the-firebase-and-access-data-f
      I hope you will get your answer 🙂

  • @arshansari458
    @arshansari458 2 ปีที่แล้ว

    my build runner command doesnt show any output

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank You Arsh Ansari! Follow this link: stackoverflow.com/questions/58023664/flutter-pub-run-build-runner-build-failed
      I hope you will get your answer 🙂

    • @arshansari458
      @arshansari458 2 ปีที่แล้ว

      @@HeyFlutter ya got the error thanks

  • @sarharmiha3184
    @sarharmiha3184 2 ปีที่แล้ว

    thanks

  • @vishnur2433
    @vishnur2433 2 ปีที่แล้ว

    it's support images to store locally

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thank you, Vishnu R! 🙂

  • @cholasimmons
    @cholasimmons 2 ปีที่แล้ว

    fantastic tutorial as usual, but in all honesty i feel this is sooo much coding for a DB that's neck to neck with Shared Preferences, Sure Hive has an advantage but still...

  • @BrendansReasons
    @BrendansReasons 3 ปีที่แล้ว

    super convenient

  • @safyianmughal5250
    @safyianmughal5250 3 ปีที่แล้ว

    amazing

  • @jousis_
    @jousis_ 3 ปีที่แล้ว +1

    The creator of hive is now making isar, much more promissing.
    Still in alpha version though.

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Thanks, jousis! 🙂 Yep, you are right, this is also interesting. Let's wait until it becomes more stable.

  • @mansurgulomov9911
    @mansurgulomov9911 2 ปีที่แล้ว

    Bro please SEMBAST too!

  • @iliaszaazaa7017
    @iliaszaazaa7017 2 ปีที่แล้ว

    NOT WORKING man

  • @kamilabduvaliev28
    @kamilabduvaliev28 3 ปีที่แล้ว +1

    flutter packages pub run build_runner build, thank me later

  • @senpo6732
    @senpo6732 2 ปีที่แล้ว

    ok i created the ui ...

    • @HeyFlutter
      @HeyFlutter  2 ปีที่แล้ว

      Great, Thank You Senpo