ClosePickerStyle.dark constructor
夜间
Implementation
ClosePickerStyle.dark({bool haveRadius = false, String? title}) {
headDecoration = BoxDecoration(
color: Colors.grey[800],
borderRadius: haveRadius
? const BorderRadius.vertical(top: Radius.circular(10))
: null,
);
cancelButton = const SizedBox();
commitButton = Container(
margin: const EdgeInsets.only(right: 12),
child: const Icon(Icons.close, color: Colors.white, size: 28),
);
if (title != null && title.isNotEmpty) {
this.title = Padding(
padding: const EdgeInsets.only(left: 16),
child: Align(
alignment: Alignment.centerLeft,
child: Text(
title,
style: const TextStyle(color: Colors.white, fontSize: 14),
),
),
);
}
backgroundColor = Colors.grey[800]!;
textColor = Colors.white;
}