📜  如何将 FloatingActionButton 附加到 AppBar - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:03.107000             🧑  作者: Mango

代码示例2
Scaffold(
      floatingActionButtonLocation: FloatingActionButtonLocation.endTop,
      floatingActionButton: FloatingActionButton(
        child: const Icon(Icons.add),
        onPressed: (){},
      ),
    );