sudo dnf install cmake
sudo dnf install ninja-build
sudo dnf install clang
sudo dnf install gtk3-devel
# maybe not
sudo dnf install jsoncpp-devel
# because flutter_secure_storage
sudo dnf install libsecret-devel
Run:
fvm flutter create --platforms=linux
add to linux/flutter/CMakeList.txt
:
IF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
SET(CMAKE_INSTALL_PREFIX "/home/<your-user>/bin" CACHE PATH "install prefix in home bin" FORCE)
ENDIF(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
Run:
fvm flutter clean && fvm flutter packages pub get