DefaultPickerStyle.dark constructor
夜间
Implementation
DefaultPickerStyle.dark({bool haveRadius: false, String? title}) {
this.commitButton = Container(
alignment: Alignment.center,
padding: const EdgeInsets.only(left: 12, right: 22),
child: Text('确定', style: TextStyle(color: Colors.white, fontSize: 16.0)),
);
this.cancelButton = Container(
alignment: Alignment.center,
padding: const EdgeInsets.only(left: 22, right: 12),
child: Text('取消', style: TextStyle(color: Colors.white, fontSize: 16.0)),
);
this.headDecoration = BoxDecoration(
color: Colors.grey[800],
borderRadius:
!haveRadius ? null : BorderRadius.only(topLeft: Radius.circular(10), topRight: Radius.circular(10)));
if (title != null && title != '') {
this.title = Center(child: Text(title, style: TextStyle(color: Colors.white, fontSize: 14)));
}
this.backgroundColor = Colors.grey[800]!;
this.textColor = Colors.white;
}