# MillDialog Dialog

# 
```dart
MillDialog.confirm(context, message: 'hi');
MillDialog.tip(context, message: 'hi', title: 'title');
```



| Field name | Description | Type | Default value |
| --- | --- | --- | --- |
| Message | Text displayed | String |  |
| Title | Title | String |  |
| width | Width | Double | 286 |
| radius | Fillet | Double | 12 |
| barrierDismissible | Click the dialog box (mask) to close it | Bool | False |
| titleColor | Title color | Color | Color(0xff323233) |
| backgroundColor | Background color | Color | Color(0xffffffff) |
| messageColor | Font color | Color | Color(0xff646566) |
| onConfirm | Click OK. | Function |  |
| Only with the confirm method |  |  |  |
| confirmTextColor | Confirm button color | Color | Color(0xff409eff) |
| cancelTextColor | Cancel button color | Color | Color(0xff333333) |
| confirmText | Confirm button copy | String | Determine |
| cancelText | Cancel button copy | String | Cancel |
| onCancel | Cancel callback | Function |  |
| Only with the tip method |  |  |  |
| buttonText | Button copy | String | Determine |
| buttonTextColor | Button font color | Color | Color(0xff333333) |



