Relative Content

Tag Archive for databaseflutterexceptionsqflite

Flutter Sqflite: How to handle a Bad State: no Element exception?

I’m trying to develop a simple app with user signup and login. Whenever I’m attempting a log in with a non existent username in the database, I’d like to display the message “no such user” or something similar. I’m trying to handle the Bad State: no Element exception, but the exception doesn’t seem to be “catch-able”.