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