Skip to content
Open
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions lib/ui/page/feed/feedPage.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
5 changes: 5 additions & 0 deletions lib/ui/page/feed/feedPostDetail.dart
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ class _FeedPostDetailState extends State<FeedPostDetail> {
}

Widget _commentRow(FeedModel model) {
// Tweet
return Tweet(
model: model,
type: TweetType.Reply,
Expand All @@ -56,6 +57,7 @@ class _FeedPostDetailState extends State<FeedPostDetail> {
);
}

// Tweet Details
Widget _tweetDetail(FeedModel model) {
return Tweet(
model: model,
Expand All @@ -66,16 +68,19 @@ class _FeedPostDetailState extends State<FeedPostDetail> {
);
}

// Addong a like to a comment
void addLikeToComment(String commentId) {
var state = Provider.of<FeedState>(context, listen: false);
var authState = Provider.of<AuthState>(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<FeedState>(context, listen: false);
Expand Down