While compiling an application from linux, the flutter_secure_storage package gives an error.
Error:-
Launching lib/main.dart on Linux in debug mode...
main.dart:1
CMake Error at /snap/flutter/130/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:463 (message):
A required package was not found
Call Stack (most recent call first):
/snap/flutter/130/usr/share/cmake-3.16/Modules/FindPkgConfig.cmake:643 (_pkg_check_modules_internal)
flutter/ephemeral/.plugin_symlinks/flutter_secure_storage_linux/linux/CMakeLists.txt:14 (pkg_check_modules)
Exception: Unable to generate build files
Exited (sigterm)
I tried the following commands.
flutter clean && flutter pub get
sudo apt install libsecret-1-dev libsecret-tools libsecret-1-0