Skip to content

Commit 5354cfb

Browse files
Merge pull request #1 from nb312/master
pulling updates
2 parents c1f0f4d + 45c4aca commit 5354cfb

Some content is hidden

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

55 files changed

+880
-104
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ build/
5151
**/ios/**/Icon?
5252
**/ios/**/Pods/
5353
**/ios/**/.symlinks/
54-
**/ios/**/profile
54+
**/ios/**/ui.profile
5555
**/ios/**/xcuserdata
5656
**/ios/.generated/
5757
**/ios/Flutter/App.framework

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,23 @@
33
The project is developing,please wait.
44
This project will comply with many people.
55
If you interest in this project please let me know.[My Facebook](https://www.facebook.com/profile.php?id=100018259667795)
6-
<img src="doc/part3.jpg"/>
6+
7+
<img src="doc/01-signup.jpg" height="100"/>
8+
9+
<img src="doc/02-walk_through.jpg" height="120"/>
10+
11+
<img src="doc/03-navigation.jpg" height="140"/>
12+
13+
<img src="doc/04-profile.jpg" height="160"/>
14+
15+
<img src="doc/05-feed.jpg" height="160"/>
16+
17+
<img src="doc/06-chat.jpg" height="120"/>
18+
19+
<img src="doc/07-shopping.jpg" height="120"/>
20+
21+
<img src="doc/08-statistics.jpg" height="120"/>
22+
23+
<img src="doc/09-media.jpg" height="120"/>
24+
25+
<img src="doc/10-camera.jpg" height="120"/>
Loading
Loading
Loading
Loading
Loading

doc/01-signup.jpg

453 KB
Loading

doc/02-walk_through.jpg

792 KB
Loading

doc/03-navigation.jpg

727 KB
Loading

doc/04-profile.jpg

1 MB
Loading

doc/05-feed.jpg

1.07 MB
Loading

doc/06-chat.jpg

522 KB
Loading

doc/07-shopping.jpg

1.06 MB
Loading

doc/08-statistics.jpg

756 KB
Loading

doc/09-media.jpg

438 KB
Loading

doc/10-camera.jpg

558 KB
Loading

doc/part3.jpg

-4.62 MB
Binary file not shown.

images/camera/ic_launcher.png

157 KB
Loading

images/chat/ic_launcher.png

157 KB
Loading

images/feed/ic_launcher.png

157 KB
Loading

images/main/ic_launcher.png

157 KB
Loading

images/main/main_background.png

419 KB
Loading

images/media/ic_launcher.png

157 KB
Loading

images/navigation/ic_launcher.png

157 KB
Loading

images/profile/ic_launcher.png

157 KB
Loading

images/shopping/ic_launcher.png

157 KB
Loading

images/signup/ic_launcher.png

157 KB
Loading

images/statistics/ic_launcher.png

157 KB
Loading

images/walkthrough/ic_launcher.png

157 KB
Loading

lib/const/color_const.dart

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
///
2+
/// Created by NieBin on 18-12-14
3+
/// Github: https://github.com/nb312
4+
/// Email: niebin312@gmail.com
5+
///
6+
import "package:flutter/material.dart";
7+
8+
const MAIN_COLOR = Color(0xFF303030);
9+
const DARK_COLOR = Color(0xFFBDBDBD);
10+
const BOTTOM_COLORS = [MAIN_COLOR, DARK_COLOR];
11+
const YELLOW = Color(0xfffbed96);
12+
const BLUE = Color(0xffabecd6);
13+
const PURPLE = Color(0xffccc3fc);
14+
const RED = Color(0xffffb6b3);

lib/const/images_const.dart

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
///
2+
/// Created by NieBin on 18-12-15
3+
/// Github: https://github.com/nb312
4+
/// Email: niebin312@gmail.com
5+
///
6+
7+
class ImagePath {
8+
//images
9+
static const String imageDir = "images";
10+
static const String pkImage = "$imageDir/pk.jpg";
11+
static const String profileImage = "$imageDir/ui.profile.jpg";
12+
static const String blankImage = "$imageDir/blank.jpg";
13+
static const String dashboardImage = "$imageDir/dashboard.jpg";
14+
static const String loginImage = "$imageDir/login.jpg";
15+
static const String paymentImage = "$imageDir/payment.jpg";
16+
static const String settingsImage = "$imageDir/setting.jpeg";
17+
static const String shoppingImage = "$imageDir/ui.shopping.jpeg";
18+
static const String timelineImage = "$imageDir/timeline.jpeg";
19+
static const String verifyImage = "$imageDir/verification.jpg";
20+
static const String nbImage = "$imageDir/nb.jpeg";
21+
}
22+
23+
class MainImagePath {
24+
static const String image_path = "images/main";
25+
static const String image_app = "$image_path/ic_launcher.png";
26+
static const String image_header= "$image_path/main_background.png";
27+
static const String image_sign_up = "$image_path/main_background.png";
28+
static const String image_walk_through = "$image_path/main_background.png";
29+
static const String image_navigation = "$image_path/main_background.png";
30+
static const String image_profile = "$image_path/main_background.png";
31+
static const String image_feed = "$image_path/main_background.png";
32+
static const String image_chat = "$image_path/main_background.png";
33+
static const String image_shopping = "$image_path/main_background.png";
34+
static const String image_statistic = "$image_path/main_background.png";
35+
static const String image_media = "$image_path/main_background.png";
36+
static const String image_camera = "$image_path/main_background.png";
37+
}

lib/const/page_str_const.dart

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
///
2+
/// Created by NieBin on 2018/12/24
3+
/// Github: https://github.com/nb312
4+
/// Email: niebin312@gmail.com
5+
///
6+
///
7+
const SIGN_UP_PAGES = [
8+
"Sign up page 01",
9+
"Sign up page 02",
10+
"Sign up page 03",
11+
"Sign up page 04",
12+
13+
/// fixme you could add by your group one name fit one page.
14+
];
15+
const WALK_THROUGH_PAGES = [
16+
"Walk through page 01",
17+
"Walk through page 02",
18+
"Walk through page 03",
19+
"Walk through page 04",
20+
"Walk through page 05",
21+
"Walk through page 06",
22+
23+
/// fixme you could add by your group one name fit one page.
24+
];
25+
const NAVIGATION_PAGES = [
26+
"Navigation page 01",
27+
"Navigation page 02",
28+
"Navigation page 03",
29+
"Navigation page 04",
30+
"Navigation page 05",
31+
32+
/// fixme you could add by your group one name fit one page.
33+
];
34+
const PROFILE_PAGES = [
35+
"Profile page 01",
36+
"Profile page 02",
37+
"Profile page 03",
38+
39+
/// fixme you could add by your group one name fit one page.
40+
];
41+
const FEED_PAGES = [
42+
"Feed page 01",
43+
"Feed page 02",
44+
"Feed page 03",
45+
46+
/// fixme you could add by your group one name fit one page.
47+
];
48+
const CHAT_PAGES = [
49+
"Chat page 01",
50+
"Chat page 02",
51+
"Chat page 03",
52+
53+
/// fixme you could add by your group one name fit one page.
54+
];
55+
const SHOPPING_PAGES = [
56+
"Shopping page 01",
57+
"Shopping page 02",
58+
"Shopping page 03",
59+
60+
/// fixme you could add by your group one name fit one page.
61+
];
62+
const STATISTIC_PAGES = [
63+
"Statistic page 01",
64+
"Statistic page 02",
65+
"Statistic page 03",
66+
67+
/// fixme you could add by your group one name fit one page.
68+
];
69+
const MEDIA_PAGES = [
70+
"Media page 01",
71+
"Media page 02",
72+
"Media page 03",
73+
74+
/// fixme you could add by your group one name fit one page.
75+
];
76+
77+
const CAMERA_PAGES = [
78+
"Camera page 01",
79+
80+
/// fixme you could add by your group one name fit one page.
81+
];

lib/const/size_const.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
///
2+
/// Created by NieBin on 18-12-14
3+
/// Github: https://github.com/nb312
4+
/// Email: niebin312@gmail.com
5+
///
6+
const TEXT_LARGE_SIZE = 22.0;
7+
const TEXT_NORMAL_SIZE = 14.0;
8+
const TEXT_SMALL_SIZE = 10.0;

lib/const/string_const.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
///
2+
/// Created by NieBin on 18-12-14
3+
/// Github: https://github.com/nb312
4+
/// Email: niebin312@gmail.com
5+
///
6+
///
7+
8+
///TODO need international.
9+
class StringConst {
10+
//strings
11+
static const String APP_NAME = "Flutter UI Nice";
12+
static const String CREATE_BY = "Created By Volunteer";
13+
static const String DEVELOPER = "Volunteer";
14+
static const String PROFESSION = "Flutter Developer";
15+
static const String DEV_EMAIL = "niebin312@gmail.com";
16+
}

lib/item/Menu.dart

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
///
2+
/// Created by NieBin on 18-12-15
3+
/// Github: https://github.com/nb312
4+
/// Email: niebin312@gmail.com
5+
///
6+
import 'package:flutter/material.dart';
7+
8+
class Menu {
9+
String title;
10+
IconData icon;
11+
String image;
12+
List<String> items;
13+
BuildContext context;
14+
Color menuColor;
15+
16+
Menu(
17+
{this.title,
18+
this.icon,
19+
this.image,
20+
this.items,
21+
this.context,
22+
this.menuColor});
23+
}

lib/item/menu_stream.dart

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,90 @@
1+
///
2+
/// Created by NieBin on 18-12-15
3+
/// Github: https://github.com/nb312
4+
/// Email: niebin312@gmail.com
5+
///
6+
import 'dart:async';
7+
import 'package:flutter/material.dart';
8+
import 'package:flutter_ui_nice/item/Menu.dart';
9+
import 'package:flutter_ui_nice/const/images_const.dart';
10+
import 'package:flutter_ui_nice/const/page_str_const.dart';
11+
12+
const _MENU_STRINGS = [
13+
{'title': "Sign Up", 'items': SIGN_UP_PAGES},
14+
{'title': "Walk Through", 'items': WALK_THROUGH_PAGES},
15+
{'title': "Navigation", 'items': NAVIGATION_PAGES},
16+
{'title': "Profile", 'items': PROFILE_PAGES},
17+
{'title': "Feed", 'items': FEED_PAGES},
18+
{'title': "Chat", 'items': CHAT_PAGES},
19+
{'title': "Shoppig", 'items': SHOPPING_PAGES},
20+
{'title': "Statistics", 'items': STATISTIC_PAGES},
21+
{'title': "Media", 'items': MEDIA_PAGES},
22+
{'title': "Camera", 'items': CAMERA_PAGES},
23+
];
24+
const _MENU_COLORS = [
25+
0xff050505,
26+
0xffc8c4bd,
27+
0xffc7d8f4,
28+
0xff7f5741,
29+
0xff261d33,
30+
0xff2a8ccf,
31+
0xffe19b6b,
32+
0xffe19b6b,
33+
0xffddcec2,
34+
0xff261d33,
35+
];
36+
const _MENU_ICONS = [
37+
Icons.airplanemode_active,
38+
Icons.live_help,
39+
Icons.location_on,
40+
Icons.account_box,
41+
Icons.feedback,
42+
Icons.chat,
43+
Icons.shopping_cart,
44+
Icons.all_inclusive,
45+
Icons.play_circle_outline,
46+
Icons.linked_camera,
47+
];
48+
const _IMAGE_PATHS = [
49+
MainImagePath.image_sign_up,
50+
MainImagePath.image_walk_through,
51+
MainImagePath.image_navigation,
52+
MainImagePath.image_profile,
53+
MainImagePath.image_feed,
54+
MainImagePath.image_chat,
55+
MainImagePath.image_shopping,
56+
MainImagePath.image_statistic,
57+
MainImagePath.image_media,
58+
MainImagePath.image_camera,
59+
];
60+
61+
class MenuController {
62+
final controller = StreamController<List<Menu>>();
63+
64+
Stream<List<Menu>> get menuItems => controller.stream;
65+
66+
MenuController({List<Menu> menus}) {
67+
controller.add(menus ?? _defaultMenus());
68+
}
69+
70+
static String _title(index) {
71+
return _MENU_STRINGS[index % _MENU_STRINGS.length]['title'];
72+
}
73+
74+
static List<String> _items(index) {
75+
return _MENU_STRINGS[index % _MENU_STRINGS.length]['items'];
76+
}
77+
78+
List<Menu> _defaultMenus() {
79+
var list = List<Menu>();
80+
for (int i = 0; i < _MENU_STRINGS.length; i++) {
81+
list.add(Menu(
82+
title: _title(i),
83+
icon: _MENU_ICONS[i],
84+
menuColor: Color(_MENU_COLORS[i]),
85+
image: _IMAGE_PATHS[i],
86+
items: _items(i)));
87+
}
88+
return list;
89+
}
90+
}

0 commit comments

Comments
 (0)