From 57d23b92d41fcba746bd1b0d00290c8acb9ee7a9 Mon Sep 17 00:00:00 2001 From: alotbsol555 <159767443+alotbsol555@users.noreply.github.com> Date: Thu, 16 May 2024 16:47:28 +0200 Subject: [PATCH] add search button to profile view, which finds tweets from current user. --- lib/profile/profile.dart | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/lib/profile/profile.dart b/lib/profile/profile.dart index 92fae5bb..a16adb0b 100644 --- a/lib/profile/profile.dart +++ b/lib/profile/profile.dart @@ -520,7 +520,17 @@ class _ProfileScreenBodyState extends State 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,