ClosePickerStyle.dark constructor

ClosePickerStyle.dark({
  1. bool haveRadius = false,
  2. String? title,
})

夜间

Implementation

ClosePickerStyle.dark({bool haveRadius: false, String? title}) {
  this.headDecoration = BoxDecoration(
      color: Colors.grey[800],
      borderRadius:
          !haveRadius ? null : BorderRadius.only(topLeft: Radius.circular(10), topRight: Radius.circular(10)));

  this.cancelButton = SizedBox();
  this.commitButton = Container(
    margin: const EdgeInsets.only(right: 12),
    child: Icon(Icons.close, color: Colors.white, size: 28),
  );
  if (title != null && title != '') {
    this.title = Padding(
      padding: const EdgeInsets.only(left: 16),
      child: Align(
          alignment: Alignment.centerLeft, child: Text(title, style: TextStyle(color: Colors.white, fontSize: 14))),
    );
  }

  this.backgroundColor = Colors.grey[800]!;
  this.textColor = Colors.white;
}