Skip to content

Commit

Permalink
add search button to profile view, which finds tweets from current user.
Browse files Browse the repository at this point in the history
  • Loading branch information
alotbsol555 committed May 16, 2024
1 parent b0f9572 commit 57d23b9
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion lib/profile/profile.dart
Original file line number Diff line number Diff line change
Expand Up @@ -520,7 +520,17 @@ class _ProfileScreenBodyState extends State<ProfileScreenBody> with TickerProvid
Container(
alignment: Alignment.topRight,
margin: EdgeInsets.fromLTRB(128, profileImageTop + 64, 16, 16),
child: FollowButton(user: UserSubscription.fromUser(user), color: Colors.white),
child: Row(
mainAxisAlignment: MainAxisAlignment.end,
children:[
IconButton(
icon: const Icon(Symbols.search),
color: Colors.white,
onPressed: () => pushNamedRoute(context, routeSearch, SearchArguments(1, focusInputOnOpen: true, query: 'from:@${(user.screenName!)} ')),
),
FollowButton(user: UserSubscription.fromUser(user), color: Colors.white),
],
),
),
Container(
alignment: Alignment.topLeft,
Expand Down

0 comments on commit 57d23b9

Please sign in to comment.