In this blog, I’ll show you a new way to use assets in Flutter.
How this new new approach look like?

How to implement this?
Add the following dependencies first in dev_dependencies in pubspec.yaml.
dev_dependencies:
build_runner: ^2.1.11
flutter_gen_runner: ^4.3.0
Add your required assets in assets folder and mention it in pubspec.yaml.
flutter:
uses-material-design: true
assets:
- assets/
This is how I added