Moor with bloc authentication

I am developing a Todo flutter app and I am using <code>flutter_moor</code> and <code>bloc</code> and I want to achieve the following in the best and most secure way:<...

Flutter injectible only factory methods can have parameters

So I'm trying to use moor to create an encrypted database, and use Injectible/GetIt to be able to inject it into other classes. I have a wrapper class <...

Flutter: How to unit testing moor/drift?

I already implementation of Drift for local storage, and want make it testable function. But I get stack and idk how to fix it the unit test. HomeDao <pre c...

While using two tables, getting error importing moor

<pre><code> import 'dart:async'; import 'package:moor_flutter/moor_flutter.dart'; part 'tables.g.dart'; //Adds a Categorys table... class Categorys...

How to stop class database file getting created multiple times when using moor?

I'm getting this error: <blockquote> flutter: WARNING (moor): It looks like you've created the database class AppDatabase multiple times. When these two databas...

How to implement Change Notifier along with moor?

I am trying to make an app having a database it has a table <strong>Students</strong> <pre><code>class Students extends Table{ IntColumn get RollNumber=&gt;in...

Flutter-moor generator problem with build-runner

Whenever I try to run <code>flutter packages pub run build_runner watch</code> I get this error message in the Terminal <pre><code>Failed to precompile build_runne...

Find all rows which match substring, with moor / moor_flutter

I want to select all rows which match a substring with moor / moor_flutter. In SQL, you'd do something like this: <pre><code>'SELECT * FROM [table] WHERE [f...

get all records with same column value in an sqlite db table using moor_flutter package

I have a table called contacts. I want to get all records <code>where person_id = 1</code> in <strong>contacts</strong> table below. <pre class="lang-dart prettyp...

Flutter: build_runner build command runs indefinitely

i have an old Flutter project. In it i have this error <code>part 'Target of URI hasn't been generated: 'MoorDatabase.g.dart'.Try running the generator that will gener...

Using loosely coupled local data repositories in flutter bloc

This is a what is the best practice kind of a question. I am building an app using flutter and I have the below requirements. <ol> <li>I have local (inst...

Drift stream not updating on insert, update and delete

I'm having problem when trying to display data on the UI where it should rebuild the widget prior to changes on <code>menus</code> table. I'm using <a href="https://pu...

How do I get an individual value out of database using Moor_Flutter

I have a settings pages that uses a very simple database, which consists of a couple of tables to change the look and feel of a google map (google_maps_flutter). There...

Build runner not working as expected in flutter drift

<code>flutter packages pub run build_runner build --delete-conflicting-outputs</code> the build runner works perfectly for dao files and generates <em>.g.dart</em> fil...

Flutter Sqlite Exception,No such table, SQL logic Error

I'm creating on my own a to-do app using Flutter. When I compile and try to insert a data in sqlite database, I got this error <code>Flutter Sqlite Exception,No such t...