The issue here is that I'd prefer the listview to be contained in the same list and avoid having some bits of css related to the generic listview mixed with up with the other CSS rules specific to the app.
Do you have a better idea how to solve that?
For that purpose, having them in the .dart file looked good to me.