小编Adn*_*ali的帖子

Flutter 中的 StreamBuilder 卡住了 ConnectionState.waiting 并只显示加载标记

嗨,我正在尝试将 Firebase 文档中的数据动态显示到我的 Flutter 中,并在其中使用循环进行渲染,因此我创建了一个List<Widget> Cards并添加了makeItem()包含卡片的函数,并将它们放入循环中,所以问题是当我运行它输出的代码print(snapshot.connectionState);ConnectionState.waiting所有的时间,它应该是异步快照但它拒绝为需要加载的数据,我应该提到的是,数据显示被通缉时,我打“Android Studio中热负荷”。所以我不知道如何解决这个问题。提前致谢

async-await dart firebase flutter stream-builder

8
推荐指数
1
解决办法
3980
查看次数

Flutter , IconButton 在使用对齐或边距或填充时不起作用

 appBar: new AppBar(
      leading: Stack(
        children: <Widget>[
          IconButton(
            icon: const Icon(Icons.arrow_forward),
            onPressed: () {
              _nextPage(1);
            },
            tooltip: 'Next',
            padding: EdgeInsets.only(left: 360.0),
          ),
          IconButton(
            icon: const Icon(Icons.arrow_back),
            onPressed: () {
              _nextPage(-1);
            },
            tooltip: 'Previous',
          ),
        ],
      ),
     ),
Run Code Online (Sandbox Code Playgroud)

块引用

两个 IconButtons ,第一个不起作用,但第二个起作用,当您删除填充时它工作正常,我应该怎么做?,而使用容器也无济于事,因为它们也占用空间,那该怎么办?

android padding flutter

3
推荐指数
1
解决办法
5947
查看次数