简体   繁体   English

GetX 对话框的自定义小部件?

[英]Custom Widget for GetX Dialog?

I am currently new in GetX.我目前是 GetX 的新手。 I know about showDialog() method from Flutter.我知道 Flutter 的 showDialog() 方法。 But, what I want to achieve is a custom dialog derived from Get.defaultDialog() using the template image attached below.但是,我想要实现的是使用下面附加的模板图像从 Get.defaultDialog() 派生的自定义对话框。 In this documentation link, I know that there is a variable named: "content", which we can replace with a widget within Get.defaultDialog().在这个文档链接中,我知道有一个名为“content”的变量,我们可以用 Get.defaultDialog() 中的小部件替换它。

Does anyone know what does it mean?有谁知道这是什么意思? Does using this "content" can replace the entire widget of Get.defaultDialog() template layout, or is there something I have to done to achieve it?使用这个“内容”是否可以替换 Get.defaultDialog() 模板布局的整个小部件,或者我必须做些什么来实现它? Any tips and tricks are welcome.欢迎任何提示和技巧。 Thank you.谢谢你。

对话框示例

You can use Get.dialog() instead of Get,defaultDialog() .您可以使用Get.dialog()而不是Get,defaultDialog() Or pass any Widget to the content named parameter of Get.defaultDialog()或者将任何Widget传递给Get.defaultDialog()content命名参数

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM