Flatpak is a utility for software deployment and package management for Linux. There are two flatpak repository that provides fcitx 5, flathub and fcitx's own unstable repo.