mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: member info widget
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -274,7 +274,7 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
Row(
|
Row(
|
||||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
mainAxisAlignment: MainAxisAlignment.spaceAround,
|
||||||
children: List.generate(
|
children: List.generate(
|
||||||
5,
|
5,
|
||||||
(index) => index % 2 == 0
|
(index) => index % 2 == 0
|
||||||
@@ -305,6 +305,7 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
Row(
|
Row(
|
||||||
mainAxisSize: MainAxisSize.min,
|
mainAxisSize: MainAxisSize.min,
|
||||||
children: [
|
children: [
|
||||||
|
const SizedBox(width: 20),
|
||||||
if (!isOwner)
|
if (!isOwner)
|
||||||
IconButton.outlined(
|
IconButton.outlined(
|
||||||
onPressed: () {
|
onPressed: () {
|
||||||
@@ -338,13 +339,13 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(width: 10),
|
const SizedBox(width: 10),
|
||||||
FilledButton.tonal(
|
Expanded(
|
||||||
|
child: FilledButton.tonal(
|
||||||
onPressed: onFollow,
|
onPressed: onFollow,
|
||||||
style: FilledButton.styleFrom(
|
style: FilledButton.styleFrom(
|
||||||
backgroundColor: relation == -1 || isFollow
|
backgroundColor: relation == -1 || isFollow
|
||||||
? Theme.of(context).colorScheme.onInverseSurface
|
? Theme.of(context).colorScheme.onInverseSurface
|
||||||
: null,
|
: null,
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 50),
|
|
||||||
visualDensity: const VisualDensity(
|
visualDensity: const VisualDensity(
|
||||||
horizontal: -2,
|
horizontal: -2,
|
||||||
vertical: -2,
|
vertical: -2,
|
||||||
@@ -377,11 +378,13 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
: isFollow
|
: isFollow
|
||||||
? ' 已关注'
|
? ' 已关注'
|
||||||
: '关注',
|
: '关注',
|
||||||
)
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
),
|
||||||
|
const SizedBox(width: 20),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
|
|||||||
@@ -737,7 +737,7 @@ class _VideoInfoState extends State<VideoInfo> with TickerProviderStateMixin {
|
|||||||
return TextButton(
|
return TextButton(
|
||||||
onPressed: () => videoIntroController.actionRelationMod(context),
|
onPressed: () => videoIntroController.actionRelationMod(context),
|
||||||
style: TextButton.styleFrom(
|
style: TextButton.styleFrom(
|
||||||
visualDensity: const VisualDensity(horizontal: -2, vertical: -3),
|
visualDensity: const VisualDensity(vertical: -3),
|
||||||
foregroundColor: attr != 0
|
foregroundColor: attr != 0
|
||||||
? t.colorScheme.outline
|
? t.colorScheme.outline
|
||||||
: t.colorScheme.onSecondaryContainer,
|
: t.colorScheme.onSecondaryContainer,
|
||||||
|
|||||||
Reference in New Issue
Block a user