cancelTextStyle property

TextStyle get cancelTextStyle

获取取消按钮文本样式 根据 QuickDialog.instance.style 的值返回对应样式:

  • light 模式使用黑色文字(透明度 0.9)
  • dark 模式使用白色文字(透明度 0.9) 统一使用 18 号字体并加粗

Implementation

static TextStyle get cancelTextStyle => QuickDialog.instance.style == QuickDialogStyle.light
    ? TextStyle(fontSize: 18, color: Colors.black.withValues(alpha: 0.55), fontWeight: FontWeight.bold)
    : TextStyle(fontSize: 18, color: Colors.white.withValues(alpha: 0.55), fontWeight: FontWeight.bold);