Skip to content

Commit 8663dc0

Browse files
committed
Formatting
1 parent 2577afb commit 8663dc0

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

docs_code_snippets/04_03_follows.dart

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Future<void> followsAndUnfollows() async {
2323

2424
Future<void> queryFollows() async {
2525
// Do I follow a list of feeds
26-
// My feed is timeline:john
26+
// My feed is timeline:john
2727
const followQuery = FollowsQuery(
2828
filter: Filter.and([
2929
Filter.equal(FollowsFilterField.sourceFeed, 'timeline:john'),
@@ -34,8 +34,8 @@ Future<void> queryFollows() async {
3434
final page1 = await followList.get();
3535
final page2 = await followList.queryMoreFollows();
3636
final page1And2 = followList.state.follows;
37-
// Paginating through followers for a feed
38-
// My feed is timeline:john
37+
// Paginating through followers for a feed
38+
// My feed is timeline:john
3939
const followerQuery = FollowsQuery(
4040
filter: Filter.equal(FollowsFilterField.targetFeed, 'timeline:john'),
4141
);
@@ -52,17 +52,17 @@ Future<void> followRequests() async {
5252
final saraFeed = saraClient.feedFromQuery(saraFeedQuery);
5353
await saraFeed.getOrCreate();
5454

55-
// Adam requesting to follow the feed
55+
// Adam requesting to follow the feed
5656
final adamTimeline = adamClient.feed(group: 'timeline', id: 'adam');
5757
await adamTimeline.getOrCreate();
5858
final followRequest =
5959
await adamTimeline.follow(targetFid: saraFeed.fid); // user:sara
6060
print(followRequest.getOrNull()?.status); // .pending
61-
// Sara accepting
61+
// Sara accepting
6262
await saraFeed.acceptFollow(
6363
sourceFid: adamTimeline.fid, // timeline:adam
6464
role: 'feed_member', // optional
6565
);
66-
// or rejecting the request
66+
// or rejecting the request
6767
await saraFeed.rejectFollow(sourceFid: adamTimeline.fid); // timeline:adam
6868
}

docs_code_snippets/05_06_notification_feeds.dart

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@ Future<void> creatingNotificationActivities() async {
2020
// Eric comments on Jane's activity
2121
await ericFeed.addComment(
2222
request: ActivityAddCommentRequest(
23-
comment: 'Agree!',
24-
activityId: janeActivity.activityId,
25-
createNotificationActivity:
26-
true, // When true Jane's notification feed will be updated with comment activity
27-
),
23+
comment: 'Agree!',
24+
activityId: janeActivity.activityId,
25+
createNotificationActivity:
26+
true, // When true Jane's notification feed will be updated with comment activity
27+
),
2828
);
2929
// Eric reacts to Jane's activity
3030
await ericFeed.addReaction(
3131
activityId: janeActivity.activityId,
3232
request: const AddReactionRequest(
33-
type: 'like',
34-
createNotificationActivity:
35-
true, // When true Jane's notification feed will be updated with reaction activity
36-
),
33+
type: 'like',
34+
createNotificationActivity:
35+
true, // When true Jane's notification feed will be updated with reaction activity
36+
),
3737
);
3838
// Eric reacts to a comment posted to Jane's activity by Sara
3939
await ericFeed.addCommentReaction(

sample_app/lib/navigation/app_router.gr.dart

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)