Skip to content

Commit

Permalink
add: slightly better subscriptions screen
Browse files Browse the repository at this point in the history
  • Loading branch information
mrhcjones committed Apr 19, 2024
1 parent f8e4300 commit 4158c72
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/subscriptions/subscriptions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class SubscriptionsScreen extends StatelessWidget {
],
),
body: ListView(
shrinkWrap: true,
controller: scrollController,
children: [
SubscriptionGroups(
scrollController: scrollController,
Expand Down
11 changes: 5 additions & 6 deletions lib/user.dart
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import 'package:dart_twitter_api/src/utils/date_utils.dart';
import 'package:dart_twitter_api/twitter_api.dart';
import 'package:dynamic_color/dynamic_color.dart';
import 'package:extended_image/extended_image.dart';
import 'package:flutter/material.dart';
import 'package:flutter_triple/flutter_triple.dart';
Expand Down Expand Up @@ -77,20 +78,18 @@ class UserTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ListTile(
dense: true,
shape: RoundedRectangleBorder(borderRadius: BorderRadius.circular(12.0)),
leading: UserAvatar(uri: user.profileImageUrlHttps),
title: Row(
children: [
Flexible(child: Text(user.name, maxLines: 1, overflow: TextOverflow.ellipsis)),
if (user.verified) const SizedBox(width: 6),
if (user.verified) const Icon(Icons.verified, size: 14, color: Colors.blue)
if (user.verified)
Icon(Icons.verified, size: 14, color: Colors.blue.harmonizeWith(Theme.of(context).colorScheme.primary))
],
),
subtitle: Text('@${user.screenName}', maxLines: 1, overflow: TextOverflow.ellipsis),
trailing: SizedBox(
width: 36,
child: FollowButton(user: user),
),
trailing: FollowButton(user: user),
onTap: () {
Navigator.pushNamed(context, routeProfile, arguments: ProfileScreenArguments(user.id, user.screenName));
},
Expand Down

0 comments on commit 4158c72

Please sign in to comment.