Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

フォロー中などをCard上に表示するように #548

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 32 additions & 18 deletions lib/view/user_page/user_list_item.dart
Original file line number Diff line number Diff line change
Expand Up @@ -54,33 +54,47 @@ class UserListItem extends ConsumerWidget {
child: Wrap(
alignment: WrapAlignment.end,
runAlignment: WrapAlignment.end,
runSpacing: 5.0,
spacing: 5.0,
children: [
if ((user as UserDetailedNotMeWithRelations)
.isFollowing)
Text(
S.of(context).following,
style: Theme.of(context).textTheme.bodySmall,
),
Card(
child: Padding(
padding: const EdgeInsets.all(5),
child: Text(
S.of(context).following,
style: Theme.of(context).textTheme.bodySmall),
),
),
if ((user as UserDetailedNotMeWithRelations)
.isFollowed)
Text(
S.of(context).followed,
style: Theme.of(context).textTheme.bodySmall,
),
Card(
child: Padding(
padding: const EdgeInsets.all(5),
child: Text(
S.of(context).followed,
style: Theme.of(context).textTheme.bodySmall),
),
),
if ((user as UserDetailedNotMeWithRelations)
.isMuted)
Text(
" ${S.of(context).muting} ",
style: Theme.of(context).textTheme.bodySmall,
),
Card(
child: Padding(
padding: const EdgeInsets.all(5),
child: Text(
S.of(context).muting,
style: Theme.of(context).textTheme.bodySmall),
),
),
if ((user as UserDetailedNotMeWithRelations)
.isBlocking)
Text(
" ${S.of(context).blocking} ",
style: Theme.of(context).textTheme.bodySmall,
),
Card(
child: Padding(
padding: const EdgeInsets.all(5),
child: Text(
S.of(context).blocking,
style: Theme.of(context).textTheme.bodySmall),
),
),
],
),
),
Expand Down
Loading