首页 > 编程知识 正文

alertmanager配置详解(Jetpack Compose——AlertDialog的简单使用)

时间:2023-05-04 03:49:03 阅读:123924 作者:3797

参数:

警报诊断程序(ondismissrequest : ) -在用户单击对话框外部或按下后退按钮时运行单元,//。 注意:即使单击对话框的关闭按钮,buttons:@composable(-unit,//按钮的配置位置和功能modifier: Modifier=Modifier,//布局修饰title=null,//对话框的内容shape : shape=material theme.shapes.medium, //对话框的形状background color 3360 color=material theme.colors//对话框的背景颜色content color : color=contentcolorfor (background 提供给其子代的首选内容颜色properties 3360诊断属性=dialog properties ()//用于进一步设置特定属性的对话框)警报诊断(ondismissrequest 3360 )-unin ining confirm button 3360 @ composable (-unit,modifier 3360 ) //布局修饰dismissButton: @Composable (()-) ) ) ) ) )=null,title: @Composable (()- Unit ) )=null,//对话框标题text: @Composable ()- Unit )?=null,//对话框的内容shape : shape=material theme.shapes.medium, //对话框的形状background color 3360 color=material theme.colors//对话框的背景颜色content color 3360 color=contentcolorfor (background color

val opendialog=remember { mutablestateof (true ) }if ) opendialog.value (警报诊断) ondismissrequest={ opendialog } confirmbutton={textbutton},dismissbutton={text='确认' },dismissbutton={text}

版权声明:该文观点仅代表作者本人。处理文章:请发送邮件至 三1五14八八95#扣扣.com 举报,一经查实,本站将立刻删除。