From 8ac828224529efaf87785434b80a4ea1cac8b199 Mon Sep 17 00:00:00 2001 From: absuleahman_abusnea Date: Wed, 20 Mar 2024 17:13:59 +0000 Subject: [PATCH] git commit --- lib/ui/page/feed/feedPage.dart | 1 + lib/ui/page/feed/feedPostDetail.dart | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/ui/page/feed/feedPage.dart b/lib/ui/page/feed/feedPage.dart index 297d5b15..d2f61573 100644 --- a/lib/ui/page/feed/feedPage.dart +++ b/lib/ui/page/feed/feedPage.dart @@ -39,6 +39,7 @@ class FeedPage extends StatelessWidget { Widget build(BuildContext context) { return Scaffold( floatingActionButton: _floatingActionButton(context), + // background Color backgroundColor: TwitterColor.mystic, body: SafeArea( child: SizedBox( diff --git a/lib/ui/page/feed/feedPostDetail.dart b/lib/ui/page/feed/feedPostDetail.dart index 1f15a27e..12e6fe80 100644 --- a/lib/ui/page/feed/feedPostDetail.dart +++ b/lib/ui/page/feed/feedPostDetail.dart @@ -47,6 +47,7 @@ class _FeedPostDetailState extends State { } Widget _commentRow(FeedModel model) { + // Tweet return Tweet( model: model, type: TweetType.Reply, @@ -56,6 +57,7 @@ class _FeedPostDetailState extends State { ); } +// Tweet Details Widget _tweetDetail(FeedModel model) { return Tweet( model: model, @@ -66,16 +68,19 @@ class _FeedPostDetailState extends State { ); } +// Addong a like to a comment void addLikeToComment(String commentId) { var state = Provider.of(context, listen: false); var authState = Provider.of(context, listen: false); state.addLikeToTweet(state.tweetDetailModel!.last, authState.userId); } + // opening an image void openImage() async { Navigator.pushNamed(context, '/ImageViewPge'); } +// deleting a tweet void deleteTweet(TweetType type, String tweetId, {required String parentkey}) { var state = Provider.of(context, listen: false);