If you want to add all the assets in a folder (say "images" folder), you should add "/" at the end as below in pubspec.yaml.
assets: - assets/images/