opt: member info widget

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2024-12-30 11:56:12 +08:00
parent 753fdeea03
commit bef7a28229
2 changed files with 42 additions and 39 deletions

View File

@@ -274,7 +274,7 @@ class UserInfoCard extends StatelessWidget {
mainAxisSize: MainAxisSize.min,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: List.generate(
5,
(index) => index % 2 == 0
@@ -305,6 +305,7 @@ class UserInfoCard extends StatelessWidget {
Row(
mainAxisSize: MainAxisSize.min,
children: [
const SizedBox(width: 20),
if (!isOwner)
IconButton.outlined(
onPressed: () {
@@ -338,13 +339,13 @@ class UserInfoCard extends StatelessWidget {
),
),
const SizedBox(width: 10),
FilledButton.tonal(
Expanded(
child: FilledButton.tonal(
onPressed: onFollow,
style: FilledButton.styleFrom(
backgroundColor: relation == -1 || isFollow
? Theme.of(context).colorScheme.onInverseSurface
: null,
padding: const EdgeInsets.symmetric(horizontal: 50),
visualDensity: const VisualDensity(
horizontal: -2,
vertical: -2,
@@ -377,11 +378,13 @@ class UserInfoCard extends StatelessWidget {
: isFollow
? ' 已关注'
: '关注',
)
),
],
),
),
),
),
const SizedBox(width: 20),
],
),
],

View File

@@ -737,7 +737,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
return TextButton(
onPressed: () => videoIntroController.actionRelationMod(context),
style: TextButton.styleFrom(
visualDensity: const VisualDensity(horizontal: -2, vertical: -3),
visualDensity: const VisualDensity(vertical: -3),
foregroundColor: attr != 0
? t.colorScheme.outline
: t.colorScheme.onSecondaryContainer,