更新日历样式
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
|
||||
),
|
||||
),
|
||||
|
||||
@@ -89,7 +89,7 @@ class SegmentedCircleWithCenterWidget extends StatelessWidget {
|
||||
centerWidget, // 放置自定义的中心 Widget
|
||||
Positioned(
|
||||
bottom: 140.rpx,
|
||||
right: 60.rpx, // 放置在右侧
|
||||
right: 50.rpx, // 放置在右侧
|
||||
child: SvgPicture.asset(
|
||||
_getTrendIcon(trend),
|
||||
width: trend != 0 ? 14.rpx : 18.rpx,
|
||||
|
||||
Reference in New Issue
Block a user