短视频平台源码,选择颜色flutter_colorpicker
短视频平台源码,选择颜色flutter_colorpicker实现的相关代码
onPressed: () {
// 4
showDialog(
context: context,
builder: (context) {
// 5
return AlertDialog(
content: BlockPicker(
pickerColor: Colors.white,
// 6
onColorChanged: (color) {
setState(() => _currentColor = color);
}),
actions: [
// 7
TextButton(
child: const Text('Save'),
onPressed: () {
Navigator.of(context).pop();
},
),
],
);
},
);
},
以上就是 短视频平台源码,选择颜色flutter_colorpicker实现的相关代码,更多内容欢迎关注之后的文章
浙公网安备 33010602011771号