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
i just found a solution to this problem what work for me is the following: change "pkg_check_modules(LIBSECRET REQUIRED IMPORTED_TARGET libsecret>=0.18.4)" to "pkg_check_modules(LIBSECRET REQUIRED IMPORTED_TARGET libsecret-1>=0.18.4)" in "your_app/linux/flutter/ephemeral/.plugin_symlink/flutter_secure_storage_linux/linux/CMakeLists.txt"
u can also install jsoncpp-dev
then run $flutter clean $flutter run -d linux