MissingPluginException(No implementation found for method getDatabasesPath on channel com.tekartik.sqflite)
package:flutter/src/services/platform_channel.dart 291:7 MethodChannel.invokeMethod
===== asynchronous gap ===========================
dart:async _AsyncAwaitCompleter.completeError
package:flutter/src/services/platform_channel.dart MethodChannel.invokeMethod
===== asynchronous gap ===========================
dart:async _asyncThenWrapperHelper
package:flutter/src/services/platform_channel.dart MethodChannel.invokeMethod
package:sqflite/src/sqflite_impl.dart 27:34 invokeMethod
A fix would probably be to edit the helper so that the database path would be an absolute path and passed as parameter to the constructor or the open() function like in the example :
var databasesPath = await getDatabasesPath();
String path = join(databasesPath, 'demo.db');
// Delete the database
await deleteDatabase(path);
PS: EarthquakeProvider should be renamed to something more significative like EarthquakeDBProvider or EarthquakeCacheProvider