更新日历样式
This commit is contained in:
@@ -53,11 +53,12 @@ class _DataShowWidgetState extends State<DataShowWidget> {
|
||||
width: MediaQuery.sizeOf(context).width * 0.35, // 固定宽度
|
||||
decoration: BoxDecoration(),
|
||||
child: Align(
|
||||
alignment: widget.alignment == MainAxisAlignment.start
|
||||
? Alignment.centerLeft
|
||||
: widget.alignment == MainAxisAlignment.center
|
||||
? Alignment.center
|
||||
: Alignment.centerRight, // 根据传入的 alignment 设置对齐
|
||||
alignment: Alignment.centerLeft,
|
||||
// widget.alignment == MainAxisAlignment.start
|
||||
// ? Alignment.centerLeft
|
||||
// : widget.alignment == MainAxisAlignment.center
|
||||
// ? Alignment.center
|
||||
// : Alignment.centerRight, // 根据传入的 alignment 设置对齐
|
||||
child: widget.widget1, // 显示传入的 widget1
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user