auth dialog app info component ui change

This commit is contained in:
DASHU
2024-09-06 00:51:28 +08:00
parent f908387049
commit 651141f800

View File

@@ -49,10 +49,7 @@ class _AuthAppInfoComponent extends State<AuthAppInfoComponent> {
)); ));
} }
return Stack( return Container(
alignment: Alignment.center,
children: [
Container(
width: double.infinity, width: double.infinity,
height: 64, height: 64,
child: Card( child: Card(
@@ -62,8 +59,7 @@ class _AuthAppInfoComponent extends State<AuthAppInfoComponent> {
crossAxisAlignment: CrossAxisAlignment.center, crossAxisAlignment: CrossAxisAlignment.center,
children: [ children: [
Container( Container(
margin: margin: const EdgeInsets.only(right: Base.BASE_PADDING_HALF),
const EdgeInsets.only(right: Base.BASE_PADDING_HALF),
child: StringUtil.isBlank(widget.app.image) child: StringUtil.isBlank(widget.app.image)
? const Icon( ? const Icon(
Icons.image, Icons.image,
@@ -75,21 +71,24 @@ class _AuthAppInfoComponent extends State<AuthAppInfoComponent> {
height: 40, height: 40,
), ),
), ),
Column( Expanded(
child: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: rightList, children: rightList,
) ),
),
Container(
margin: EdgeInsets.only(
left: Base.BASE_PADDING_HALF,
right: Base.BASE_PADDING_HALF,
),
child: AppTypeComponent(widget.app.appType!),
),
], ],
), ),
), ),
), ),
),
Positioned(
right: 16,
child: AppTypeComponent(AppType.WEB),
)
],
); );
} }
} }