Skip to content

Commit 28d680d

Browse files
committed
♻️ code refactor
♻️ Convert appicons data type from int to IconData. 🚛 Move page folder into ui folder. 🚛 Move theme class data under theme folder.
1 parent 9ff11b4 commit 28d680d

File tree

78 files changed

+1280
-1089
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+1280
-1089
lines changed

lib/helper/constant.dart

Lines changed: 15 additions & 61 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,16 @@
1-
String dummyProfilePic = 'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6TaCLCqU4K0ieF27ayjl51NmitWaJAh_X0r1rLX4gMvOe0MDaYw&s';
2-
String appFont = 'HelveticaNeuea';
3-
List<String> dummyProfilePicList = [
4-
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6TaCLCqU4K0ieF27ayjl51NmitWaJAh_X0r1rLX4gMvOe0MDaYw&s',
5-
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTFDjXj1F8Ix-rRFgY_r3GerDoQwfiOMXVt-tZdv_Mcou_yIlUC&s',
6-
'http://www.azembelani.co.za/wp-content/uploads/2016/07/20161014_58006bf6e7079-3.png',
7-
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRzDG366qY7vXN2yng09wb517WTWqp-oua-mMsAoCadtncPybfQ&s',
8-
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTq7BgpG1CwOveQ_gEFgOJASWjgzHAgVfyozkIXk67LzN1jnj9I&s',
9-
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRPxjRIYT8pG0zgzKTilbko-MOv8pSnmO63M9FkOvfHoR9FvInm&s',
10-
'https://cdn5.f-cdn.com/contestentries/753244/11441006/57c152cc68857_thumb900.jpg',
11-
'https://cdn6.f-cdn.com/contestentries/753244/20994643/57c189b564237_thumb900.jpg'
12-
];
1+
import 'package:flutter/material.dart';
132

14-
class AppIcon{
15-
static final int fabTweet = 0xf029;
16-
static final int messageEmpty = 0xf187;
17-
static final int messageFill = 0xf554;
18-
static final int search = 0xf058;
19-
static final int searchFill = 0xf558;
20-
static final int notification = 0xf055;
21-
static final int notificationFill = 0xf019;
22-
static final int messageFab = 0xf053;
23-
static final int home = 0xf053;
24-
static final int homeFill = 0xF553;
25-
static final int heartEmpty = 0xf148;
26-
static final int heartFill = 0xf015;
27-
static final int settings = 0xf059;
28-
static final int adTheRate = 0xf064;
29-
static final int reply = 0xf151;
30-
static final int retweet = 0xf152;
31-
static final int image = 0xf109;
32-
static final int camera = 0xf110;
33-
static final int arrowDown = 0xf196;
34-
static final int blueTick = 0xf099;
35-
36-
static final int link = 0xf098;
37-
static final int unFollow = 0xf097;
38-
static final int mute = 0xf101;
39-
static final int viewHidden = 0xf156;
40-
static final int block = 0xe609;
41-
static final int report = 0xf038;
42-
static final int pin = 0xf088;
43-
static final int delete = 0xf154;
44-
45-
static final int profile = 0xf056;
46-
static final int lists = 0xf094;
47-
static final int bookmark = 0xf155;
48-
static final int moments = 0xf160;
49-
static final int twitterAds = 0xf504;
50-
static final int bulb = 0xf567;
51-
static final int newMessage = 0xf035;
52-
53-
static final int sadFace = 0xf430;
54-
static final int bulbOn = 0xf066;
55-
static final int bulbOff = 0xf567;
56-
static final int follow = 0xf175;
57-
static final int thumbpinFill = 0xf003;
58-
static final int calender = 0xf203;
59-
static final int locationPin = 0xf031;
60-
static final int edit = 0xf112;
61-
62-
}
3+
class Constants {
4+
static String dummyProfilePic =
5+
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6TaCLCqU4K0ieF27ayjl51NmitWaJAh_X0r1rLX4gMvOe0MDaYw&s';
6+
static List<String> dummyProfilePicList = [
7+
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQ6TaCLCqU4K0ieF27ayjl51NmitWaJAh_X0r1rLX4gMvOe0MDaYw&s',
8+
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTFDjXj1F8Ix-rRFgY_r3GerDoQwfiOMXVt-tZdv_Mcou_yIlUC&s',
9+
'http://www.azembelani.co.za/wp-content/uploads/2016/07/20161014_58006bf6e7079-3.png',
10+
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRzDG366qY7vXN2yng09wb517WTWqp-oua-mMsAoCadtncPybfQ&s',
11+
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTq7BgpG1CwOveQ_gEFgOJASWjgzHAgVfyozkIXk67LzN1jnj9I&s',
12+
'https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRPxjRIYT8pG0zgzKTilbko-MOv8pSnmO63M9FkOvfHoR9FvInm&s',
13+
'https://cdn5.f-cdn.com/contestentries/753244/11441006/57c152cc68857_thumb900.jpg',
14+
'https://cdn6.f-cdn.com/contestentries/753244/20994643/57c189b564237_thumb900.jpg'
15+
];
16+
}

lib/helper/enum.dart

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,22 @@ enum AuthStatus {
33
NOT_LOGGED_IN,
44
LOGGED_IN,
55
}
6-
enum TweetType{
6+
enum TweetType {
77
Tweet,
88
Detail,
99
Reply,
10-
ParentTweet
10+
ParentTweet,
1111
}
1212

13-
enum SortUser{
14-
ByVerified,
15-
ByAlphabetically,
16-
ByNewest,
17-
ByOldest,
18-
ByMaxFollower
13+
enum SortUser {
14+
Verified,
15+
Alphabetically,
16+
Newest,
17+
Oldest,
18+
MaxFollower,
1919
}
2020

21-
enum NotificationType{
21+
enum NotificationType {
2222
NOT_DETERMINED,
2323
Message,
2424
Tweet,
@@ -27,4 +27,4 @@ enum NotificationType{
2727
Follow,
2828
Mention,
2929
Like
30-
}
30+
}

0 commit comments

Comments
 (0)