optimize style of peer card

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2022-08-24 11:01:58 +08:00
parent 7c9f799f05
commit bb64690ac9
8 changed files with 363 additions and 310 deletions

View File

@@ -107,9 +107,10 @@ class _DesktopHomePageState extends State<DesktopHomePage>
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
height: 15,
height: 25,
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(
translate("ID"),
@@ -133,7 +134,7 @@ class _DesktopHomePageState extends State<DesktopHomePage>
readOnly: true,
decoration: InputDecoration(
border: InputBorder.none,
contentPadding: EdgeInsets.only(bottom: 8),
contentPadding: EdgeInsets.only(bottom: 18),
),
style: TextStyle(
fontSize: 22,
@@ -239,26 +240,17 @@ class _DesktopHomePageState extends State<DesktopHomePage>
}
},
child: Obx(
() => Container(
decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(10),
shape: BoxShape.circle,
boxShadow: [
BoxShadow(
color: hover.value
? MyTheme.color(context).grayBg!
: MyTheme.color(context).bg!,
spreadRadius: 2)
],
),
child: Center(
child: Icon(
Icons.more_vert_outlined,
size: 20,
color: hover.value
? MyTheme.color(context).text
: MyTheme.color(context).lightText,
),
() => CircleAvatar(
radius: 12,
backgroundColor: hover.value
? MyTheme.color(context).grayBg!
: MyTheme.color(context).bg!,
child: Icon(
Icons.more_vert_outlined,
size: 20,
color: hover.value
? MyTheme.color(context).text
: MyTheme.color(context).lightText,
),
),
),