1 snackbar

  1. onTap: () => Get.snackbar(
  2. "标题",
  3. "消息",
  4. ),

image.png

2 Dialog

  1. onTap: () => Get.defaultDialog(
  2. title: "标题",
  3. content: Column(
  4. children: [
  5. Text("第1行"),
  6. Text("第2行"),
  7. Text("第3行"),
  8. ],
  9. ),
  10. textConfirm: "确认",
  11. textCancel: "取消",
  12. onConfirm: () => Get.back(),
  13. ),

image.png

3 BottomSheet

  1. onTap: () => Get.bottomSheet(
  2. Container(
  3. height: 200,
  4. color: Colors.white,
  5. child: Column(
  6. children: [
  7. Text("第1行"),
  8. Text("第2行"),
  9. Text("第3行"),
  10. ],
  11. ),
  12. ),
  13. ),

image.png