Kdenlive's website has instructions for installing their Flatpak here. The command I used is
flatpak --user install flathub org.kde.kdenlive
which give this error on Ubuntu 18.04
error: Remote "flathub" not found
I have installed Flatpak previously and don't know what went wrong. Do you?
Snaps
orapt-get
it is for me.