Skip to content

Commit eb85e19

Browse files
committed
move tail blog above coshub and set coshub url
1 parent f013348 commit eb85e19

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

lib/Backend/firebase.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Future<List<CosHubPost>> getCosHubPosts(Ref ref) async {
6666
.data();
6767
CosHubPost cosHubPost = CosHubPost(
6868
id: postData["id"],
69-
url: " ",
69+
url: "https://onelink.to/coshub",
7070
thumbnailUrl: postData["postImageUrls"][0],
7171
profileThumbnailUrl: userData["profilePicture"],
7272
username: userData["username"],

lib/Frontend/pages/home.dart

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -93,28 +93,29 @@ class _HomeState extends ConsumerState<Home> {
9393
),
9494
ListTile(
9595
title: Text(
96-
convertToUwU(homeCosHubTitle()),
96+
convertToUwU(homeNewsTitle()),
9797
style: Theme.of(context).textTheme.titleLarge,
9898
),
99-
trailing: Image.asset(
100-
Assets.cosHubBT.path,
101-
width: 24,
102-
height: 24,
103-
),
99+
trailing: Icon(Icons.newspaper),
104100
),
105101
SizedBox(
106102
height: 350,
107-
child: CoshubFeed(),
103+
child: TailBlog(),
108104
),
109105
ListTile(
110106
title: Text(
111-
convertToUwU(homeNewsTitle()),
107+
convertToUwU(homeCosHubTitle()),
112108
style: Theme.of(context).textTheme.titleLarge,
113109
),
110+
trailing: Image.asset(
111+
Assets.cosHubBT.path,
112+
width: 24,
113+
height: 24,
114+
),
114115
),
115116
SizedBox(
116117
height: 350,
117-
child: TailBlog(),
118+
child: CoshubFeed(),
118119
),
119120
],
120121
);

lib/Frontend/pages/more.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class _MoreState extends ConsumerState<More> {
5454
height: 24,
5555
),
5656
onTap: () async {
57-
await launchExternalUrl(url: "https://coshub.com", analyticsLabel: "CosHub");
57+
await launchExternalUrl(url: "https://onelink.to/coshub", analyticsLabel: "CosHub");
5858
},
5959
),
6060
ListTile(

0 commit comments

Comments
 (0)