You can use a flashlight for bedikas chametz for those who help out or in a car because it is safer to use but not for Chanukah because it needs a shiur.
Actually,I’ve always wondered how it’s accepted across all shuls to have an electric menorah by the amud. Not saying there’s any problem with it, just seems like an item that would have been controversial when initially introduced, yet it’s acepted everywhere as if that’s the way it’s always been. But obviously it wasn’t there before the lightbulb!
LIY, why would it be more controversial than electric lighting in general? Lights at the amud (except for an avel/yartzeit) are for kavod, and to give the chazan light to read by, so why would electric be less suitable than candles? When the chazan is lighting for the elevation of a neshama, because ner Hashem nishmas odom, many/most still use candles.