weekitmo / flutter-assets-gen

vscode插件:flutter自动生成assets资源文件映射
MIT License
6 stars 3 forks source link

Same images different extension errors #9

Closed fretelweb closed 1 month ago

fretelweb commented 3 months ago

The name 'imagesPlaces' is already defined. Try renaming one of the declarations.

 /// Assets for imagesPlaces
/// assets/images/places.svg
static const String imagesPlaces = "assets/images/places.svg";

/// Assets for imagesPlaces
/// assets/images/places.jpeg
static const String imagesPlaces = "assets/images/places.jpeg";
weekitmo commented 3 months ago

I don't have any good ideas to deal with such a problem, after all, this expansion with a different file extension can lead to too long variable names