sodium_libs 2.2.1+8 sodium_libs: ^2.2.1+8 copied to clipboard
Flutter companion package to sodium that provides the low-level libsodium binaries for easy use.
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate sodium_libs
Use it
The package has the following executables:
$ sodium_libs_update_web
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add sodium_libs
With Flutter:
$ flutter pub add sodium_libs
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
sodium_libs: ^2.2.1+8
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:sodium_libs/sodium_libs.dart';