Complete SQLite CRUD Operations in Flutter

Поделиться
HTML-код
  • Опубликовано: 7 сен 2024
  • SQLite CRUD Operations in Flutter
    This video discusses how you can implement SQLite CRUD operations in Flutter application with the help of SQLite.
    Points discussed
    - Flutter form design with validation
    - Display list of records in ListView widget
    - SQLite insert, update, delete and retrieve operations
    Tools used: VS Code, Android Emulator.
    💖 Buy me a Coffee
    ➤ bit.ly/3L36ut4 (PayPal)
    ➤ bit.ly/3VF0iPT (Razorpay)
    🌀 Related Videos
    bit.ly/3bTNf3X : Getting Started with Flutter
    bit.ly/2QwizgV : React js Todo App
    goo.gl/ijPZQk : .Net Core Web API CRUD with Angular 7
    goo.gl/AL18CP : Asp.Net Core MVC CRUD
    goo.gl/ZHDEhP : Master Detail CRUD Web API + Angular
    🔗 Find me in
    Udemy : bit.ly/3RtyQSB
    Facebook : / codaffection
    GitHub : github.com/cod...
    Discord : / discord
    Twitter : / codaffection
    #Flutter #Dart #CodAffection

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

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

    goo.gl/RFY5C2 : Subscribe to CodAffection
    goo.gl/bPcyXW : Buy me a Coffee
    bit.ly/3bTNf3X : Getting Started with Flutter
    bit.ly/2QwizgV : React js Todo App
    goo.gl/ijPZQk : .Net Core Web API CRUD with Angular 7
    goo.gl/AL18CP : Asp.Net Core MVC CRUD

  • @camalmitchy3404
    @camalmitchy3404 2 года назад +1

    This is the best SQlite tutorial, big up man

  • @manilkumar73
    @manilkumar73 2 года назад

    thanks for your nice explanation... with also your help on Angular, I am now able to create applications with easy...

  • @norm0001
    @norm0001 2 года назад

    I like how you are very systematic and logical.
    Keep up the good work!

  • @harry---dp8xk
    @harry---dp8xk 3 года назад +1

    The best tutorial video i've ever see, the way you explain it step by step is so clear. You know very well what you do, thank you so much. Already subscribed to your channel and liked your video.

  • @muhammedkamal6157
    @muhammedkamal6157 2 года назад

    how come you have only 505 likes, when you are so so dam amazing, i like the way you explain, you make everything easy. i wish i have more than 1 like to give you

  • @suyogmainali4360
    @suyogmainali4360 2 года назад +1

    Soo glad I found this , would be better if it was on git repo

  • @puranjanpathak6898
    @puranjanpathak6898 Год назад

    Thanks for your good tutorial. Please create a tutorial on exporting SQLite data to Excel, it will be really helpful as there are none with good quality.

  • @pratibhapawar_88
    @pratibhapawar_88 3 года назад +8

    @codAffection could u please provide source code files for above?

  • @zulkarnainansari2520
    @zulkarnainansari2520 4 года назад +3

    very informative video Sir can you show us CRUD operation on MSSQL using flutter app.

  • @lorenbeall147
    @lorenbeall147 4 года назад +3

    goos video, thanks for the share of you knowledge.

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

      Glad you like them!

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

      How can i delete multiple rows with angular and spring boot

  • @codewithabir3089
    @codewithabir3089 3 года назад +4

    Can you please update this with null safety? It's very important

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

    thank you sir for all videos sir, please one request do a video for sqlite and ionic framework sir
    please do angular,mysql,node js express

  • @ismailhossain8153
    @ismailhossain8153 2 года назад

    an offtopic ques:
    which laptop should I buy for developing job?
    Currently using a windows desktop; it's running quite well, but I want to switch to a laptop.

  • @sb-gp4wh
    @sb-gp4wh Год назад +1

    Thanks for the video. I am getting following error at 19.30 " Null check operator used on a null value". How do we get around that. Had to add "!"before "form" in if condition.
    var form = _formKey.currentState;
    if (form!.validate()) {
    form.save();
    print(_contact.name);
    }

  • @mind_traps
    @mind_traps 4 года назад +2

    Can you pls make a tutorial on sqlite database for flutter using two or more tables

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

    Love it..Best Tutorial

  • @coupedumondedufoot.worldcu8062
    @coupedumondedufoot.worldcu8062 3 года назад

    Thanks, a very interesting tutorial video.

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

    Great tutorial 👌
    Which theme you are using bro.

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

    Thank you

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

    Excelent, good, thank you

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

    Thank you so much for the wonderful videos. I have a quick question when you defined the _onCreateDB method you defined 2 parameters, whereas while invoking that method you didn't specify any arguments to it. Could you please explain what's the logic behind this? Thanks again!

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

    Very nice tutorial...I am a total newbee...I keep getting errors. I have checked your article where you share some part of the code, but not all. Could please share the complete source code?

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

    great video - would be good if you had code in github repo .... may be there but I couldnt find it

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

    I am getting a trouble for the asynchronous suspension whenever i try to input some data into the field and press submit @54:40

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

    Thank you for the enlightenment, Sir.
    Your database syntax is easy to comprehend for it was very readable.
    I want to adopt your syntax, but I have some difficulties to do so.
    I have multiple tables in my project.
    I’m trying to connect those tables with Primary Key and Foreign Key.
    One of those tables requires Primary Key on each column.
    Unfortunately, I couldn't find any examples in the internet on database creation that connects multiple tables with more than one Primary Key or table with Foreign Keys in your style.
    Could you give me an example on how to connect two tables with Primary Key and Foreign Key, Sir?
    This is my table models example:
    class Group {
    int id;
    String name;
    String mobile;
    static const tblContact = 'contact';
    static const colId = 'id';
    static const colName = 'name';
    static const colMobile = 'mobile';
    Contact({
    this.id,
    this.name,
    this.mobile,
    });
    Map toMap() {
    var map = {colName: name, colMobile: mobile};
    if (id != null) map[colId] = id;
    return map;
    }
    Contact.fromMap(Map map) {
    id = map[colId];
    name = map[colName];
    mobile = map[colMobile];
    }
    }
    //The table which requires Primary Key on each column
    class Group {
    int id;
    String family;
    String friends;
    String colleagues;
    String acquaintances;
    static const tblGroup = 'group';
    static const colId = 'id';
    static const colFamily = 'family';
    static const colFriends = 'friends';
    static const colColleagues = 'colleagues';
    static const colAcquaintances = 'acquaintances';
    Group({
    this.id,
    this.family,
    this.friends,
    this.colleagues,
    this.acquaintances,
    });
    Map toMap() {
    var map = {
    colFamily: family,
    colFriends: friends,
    colColleagues: colleagues,
    colAcquaintances: acquaintances
    };
    if (id != null) map[colId] = id;
    return map;
    }
    Group.fromMap(Map map) {
    id = map[colId];
    family = map[colFamily];
    friends = map[colFriends];
    colleagues = map[colColleagues];
    acquaintances = map[colAcquaintances];
    }
    }
    Your help would be much appreciated.
    Thank you in advance, Sir.

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

    thanks.... successfully (y)

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

    Thanks for this amazing video ! What is the name of the font familily your are using in VScode (in this video) ? i really like it :-)

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

    Hi there. Could you tell me what is the best way to provide a db with questions for a quiz app? now i'm using a json file, but i want to develop an app to registrar the questions instead of type one by one in a text editor.

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

    please help error
    The following assertion was thrown building:
    A non-null String must be provided to a Text widget.
    'package:flutter/src/widgets/text.dart':
    Failed assertion: line 360 pos 10: 'data != null'
    When the exception was thrown, this was the stack:

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

    Please Help me out🙏🏽🙏🏽
    While you add the name feona green and thor watson (26:58 min:second of video)...and how we can do first name is thor warson and then feona green?
    When we submit new name and phone then the name and phone will be in the top of list and not to submit the new name and phone in the last of list?

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

    What if we want to use UUID as primary key and not autoIncrement

  • @faizulla5838
    @faizulla5838 9 месяцев назад

    my point 32:50 47:04

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

    You can do all of this in 5 minutes in Delphi Rio. And crossplatform (Windows, Android, iOS, macOS, Linux) /

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

      Why dont you make the eduvideo and shows us rather than just gloating🙄

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

    my Model class is not working?
    the constructor with a named parameter is showing me error and asking me to have a required keyword in front

  • @ajaysahu9240
    @ajaysahu9240 2 года назад +1

    return await products.length ==0
    ? []
    : products.map((e) => Product.fromMap(e)).toList();
    I am getting error in this line as
    error: The argument type 'Map' can't be assigned to the parameter type 'Map'. (argument_type_not_assignable at [ajay_kirana] lib\database_helper\database_helper.dart:51)
    plesase give me sugestion

    • @prashan-gc
      @prashan-gc 2 года назад

      did u get the answer?

    • @armandocoralesbogayanjr2516
      @armandocoralesbogayanjr2516 2 года назад

      Hi, I am also beginner in flutter, i solved it by changing the Contact.fromMap(Map map) in contact.dart to Contact.fromMap(Map map).

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

    sir I have followed your tutorial step by step but still I can't get rid of exception handling
    [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: Stack Overflow
    #0 _CustomZone.registerCallback (dart:async/zone.dart:1110:3)
    #1 _CustomZone.bindCallbackGuarded (dart:async/zone.dart:1036:22)
    #2 _rootScheduleMicrotask (dart:async/zone.dart:1252:16)
    #3 _CustomZone.scheduleMicrotask (dart:async/zone.dart:1147:19)
    #4 Future._asyncCompleteError (dart:async/future_impl.dart:592:11)
    #5 _AsyncAwaitCompleter.completeError (dart:async-patch/async_patch.dart:49:15)
    #6 DatabaseHelper.database (package:sqlite_crud1/utils/database_helper.dart)
    #7 DatabaseHelper.database (package:sqlite_crud1/utils/database_helper.dart:21:9)
    #8 DatabaseHelper.database (package:sqlite_crud1/utils/database_helper.dart:21:9)
    #9 DatabaseHelper.database (package:sqlite_crud1/utils/database_helper.dart:21:9)
    #10 DatabaseHelper.database (package:sqlite_crud1/utils/database_helper.dart:21:9)
    #11 DatabaseHelper.database (package:sqlite_crud1/utils/database_helper.dart:21:9)
    #1
    [VERBOSE-2:ui_dart_state.cc(177)] Unhandled Exception: NoSuchMethodError: The method 'query' was called on null.
    Receiver: null
    Tried calling: query("contacts")
    #0 Object.noSuchMethod (dart:core-patch/object_patch.dart:51:5)
    #1 DatabaseHelper.fetchContacts (package:sqlite_crud1/utils/database_helper.dart:59:32)
    #2 _MyHomePageState._refreshContactList (package:sqlite_crud1/main.dart:122:37)
    #3 _MyHomePageState.initState (package:sqlite_crud1/main.dart:57:5)
    #4 StatefulElement._firstBuild (package:flutter/src/widgets/framework.dart:4792:57)
    #5 ComponentElement.mount (package:flutter/src/widgets/framework.dart:4629:5)
    #6 Element.inflateWidget (package:flutter/src/widgets/framework.dart:3595:14)
    #7 Element.updateChild (package:flutter/src/widgets/framework.dart:3360:18)
    #8 SingleChildRenderObjectElement.mount (package:flutter/src/widgets/framework.dart:6144:14)
    #9 Element.inflateWidget (package:flutter/src/widgets/framework.dart:

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

    I am getting error
    NoSuchMethidError: The method 'touppercase' was called on null.
    Reciver: null
    Tired calling:touppercase().
    Kindly tell me how to solve this error sir?

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

    Hello sir without scaffolding crud operation banao asp.net MVC EntityFramework please sir

  • @davidanastasov4301
    @davidanastasov4301 2 года назад

    @54:32 doesnt show the contacts in the list.. dont get any error. please help

  • @amitkumarpandey963
    @amitkumarpandey963 2 года назад

    Please create one page crud operation with php mysql in flutter......like this..,

  • @wonabe9799
    @wonabe9799 2 года назад

    At 31.57 I am not able to make named constructor plz help anybody

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

    Getting error : RangeError (index): Invalid value: Valid value range is empty: 0

    Any Suggestion to resolve this error ?

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

    what is the name of the font used in the editor ?

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

    Sorry im new, but fetchContacs returned error Unhandled Exception: type 'String' is not a subtype of type 'int', therefor app doesnot show me list of contacts.

  • @BETALABS_by_Pankaj_Kapoor
    @BETALABS_by_Pankaj_Kapoor 2 года назад

    Dear Kindly share the main.dart code

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

    Please Give Intro
    If you watch this please watch previous video

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

    Submit ke bad card nahi ban raha hai...

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

      I am facing the same problem. did you fix it ?

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

      @@aashishchaudhary8028 if you are not able to find the problem, then again write the code...all will be well automatically...
      I did so...

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

      But I want to say to all developers that if you don't have time to solve the problems of others then don't make such videos until or unless you going to teach...becuase the folllower who follow your video along is the learner and assumes youself a teacher and the teacher has always plenty of rooms available to solve problems but it's a misfortune that you are mare a coder or developer not a teacher, these are untrained or learners that do a mistake to assume yourself a teacher....

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

      @@ramendrasoni3368 can you share your GitHub link?

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

      @@silentkiller4091 bahut din bad aaye aap? Maine sahi kar liya...

  • @Amlesh810
    @Amlesh810 2 года назад

    Code ka link