我已经在 pubspec 中使用正确的图像路径进行了正确的缩进,并且没有任何拼写错误,但我的图像仍然没有加载(我是 flutter 的新手)

I have given proper indentation in pubspec with right image path and without any spelling mistakes still my images are not loaded(I'm new to flutter)

PUBSPEC.YAML 文件

flutter:
  uses-material-design: true
  assets:
    - assets/images/
    - assets/fonts/
Container(
                                  height: 45,
                                  padding: EdgeInsets.all(6),
                                  decoration: BoxDecoration(
                                    color: Colors.green[300],
                                    borderRadius: BorderRadius.circular(10),
                                  ),
                                  child: Image.asset(
                                    'images/rupee.jpg',
                                    color: Colors.white,
                                  )),
                              Text(
                                'Online Payments',
                                style: TextStyle(
                                    fontSize: 17, fontWeight: FontWeight.w500),
                              )
                            ],
                          ),
                        ),
                      ),

缺少“assets/”,您需要使用如下资产图片:

Image.asset(
  'assets/images/rupee.jpg',
  color: Colors.white,
))