dbpath 0.0.1 copy "dbpath: ^0.0.1" to clipboard
dbpath: ^0.0.1 copied to clipboard

PlatformAndroid

get database path

dbpath #

get database path getDataBasePath()

Getting Started #

this package has only one function getDataBasePath() to get database path for android as path_provider doesn't have it for ios there is not database path you should use getApplicationDocumentsDirectory() from path_provider

somethinge like this

Future<String> getDBPath() async => Platform.isAndroid
    ? (await getDataBasePath())!
    : (await getApplicationDocumentsDirectory()).path;
1
likes
120
pub points
0%
popularity

Publisher

unverified uploader

get database path

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on dbpath