ClosePickerStyle constructor

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

日间

Implementation

ClosePickerStyle({bool haveRadius: false, String? title}) {
  if (haveRadius) {
    this.headDecoration = BoxDecoration(
        color: Colors.white,
        borderRadius: const BorderRadius.only(topLeft: Radius.circular(10), topRight: Radius.circular(10)));
  }

  this.cancelButton = SizedBox();
  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.grey, fontSize: 14))),
    );
  }
  this.commitButton = Container(
    // padding: const EdgeInsets.all(4),
    margin: const EdgeInsets.only(right: 12),
    child: Icon(Icons.close, color: Colors.grey, size: 28),
  );
}