1

不知何故,我无法将图像加载到我的应用程序中。你能帮忙吗?将目录添加到 pubspec.yaml

Container(
                height: MediaQuery.of(context).size.height / 3.8,
                child: Stack(
                  children: [
                    Positioned(
                      left: 16.0,
                      top: 16.0,
                      bottom: 16.0,
                      right: 16.0,
                      child: Container(
                        decoration: BoxDecoration(
                          color: Colors.red,
                          borderRadius: BorderRadius.circular(10.0),
                          image: DecorationImage(
                            image: AssetImage("assets/pictures/NYC_01/NYC_01_01.webp"),
                            fit: BoxFit.cover
                          )
                        )
                      ),
                    ),
4

0 回答 0