// pubspec.yaml flutter: assets: - graphics/ // Inside your widget Image(image: AssetImage('graphics/background.png'))