Building a LED driver circuit and battery charger.

Thanks for your reply!

It took me a while to select a suitable LED, the NF2L385 that i want to use is more or less the only viable option i got.
I need a LED with a If of at least 4.3V, that means i have to use two in series, the NF2L385 has two dies in one package.

To get to 300 lumen i still have to use two of them but, this is the most important part.
They only cost 70 cents a piece, that is 1.5€ for two of them, compared to the 4€ of the 219C.

The rotary encoder is not for the flashlight itself, i want to put the circuit into a lantern as well.
The lantern will get the rotary encoder.

The whole body i want to build myself: