reason

临境

1 +{
2 + "data" : [
3 + {
4 + "head" : "logo.jpg",
5 + "name" : "Sunnytu",
6 + "desc" : "早上好中国的朋友们。宝宝们今天也很早开始一天。我好困\uD83D\uDCA4今天也我会努力",
7 + "pics" : ["banner.jpg"],
8 + "time" : "刚刚"
9 + },
10 + {
11 + "head" : "wyf.jpg",
12 + "name" : "吴亦凡",
13 + "desc" : "作为歌手和音乐制作人,他才华出众; 作为演员和时尚领袖,他光芒闪耀。他有风格,有态度,更有魅力。今天,吴亦凡 @Mr_凡先生 成为首位兰蔻亚太区品牌代言人,为品牌注入更多奢华摩登的新活力,并呈现护肤、彩妆与香水的美丽精彩。不同\"\"响的幸福旅程即将开始!你,准备好了吗? \u200B\u200B\u200B\u200B",
14 + "pics" : ["wyf1.jpg" ,"wyf2.jpg" , "wyf3.jpg"],
15 + "time" : "3分钟前"
16 + },
17 + {
18 + "head" : "lh.jpg",
19 + "name" : "鹿晗",
20 + "desc" : "海淀素材库的密码终于想起来了[笑cry][笑cry][笑cry] \u200B\u200B\u200B\u200B\n",
21 + "pics" : ["lh1.jpg" ,"lh2.jpg" , "lh3.jpg" , "lh4.jpg"],
22 + "time" : "20分钟前"
23 + },
24 + {
25 + "head" : "cxk.jpg",
26 + "name" : "🏀蔡徐坤🏀",
27 + "desc" : "老哥们,看我篮球🏀打的好不好,赶紧点个赞👍",
28 + "pics" : ["cxk1.jpg" ,"cxk2.jpg" ],
29 + "time" : "1小时前"
30 + },
31 + {
32 + "head" : "zyx.jpg",
33 + "name" : "张艺兴",
34 + "desc" : "透过所有非凡成就,预见更为璀璨的未来。\n歌手、音乐制作人、演员张艺兴@努力努力再努力x 从未停下前进的脚步,从亚洲流行乐坛引领M-POP走向世界。\n《VMAN》九月电子刊带你走进封面人物张艺兴的世界,即“兴”而为,涌动新潮。\n《VMAN》官网独家专访",
35 + "pics" : ["zyx1.jpg" ,"zyx2.jpg" , "zyx3.jpg" , "zyx4.jpg","zyx5.jpg" ,"zyx6.jpg" , "zyx7.jpg" , "zyx8.jpg" , "zyx9.jpg"],
36 + "time" : "2小时前"
37 + },
38 + {
39 + "head" : "hsf.jpg",
40 + "name" : "黄诗扶",
41 + "desc" : "喝完大酒撑条船,说今生不靠岸。\n去天涯海角浪个遍,失意当尝鲜。\n神仙掐指算,此去少圆满。\n得来失,聚了散,千万莫求全。",
42 + "pics" : ["hsf1.jpg" ,"hsf2.jpg"],
43 + "time" : "3小时前"
44 + },
45 +
46 +
47 + {
48 + "head" : "logo.jpg",
49 + "name" : "Sunnytu",
50 + "desc" : "早上好中国的朋友们。宝宝们今天也很早开始一天。我好困\uD83D\uDCA4今天也我会努力",
51 + "pics" : ["banner.jpg"],
52 + "time" : "刚刚"
53 + },
54 + {
55 + "head" : "wyf.jpg",
56 + "name" : "吴亦凡",
57 + "desc" : "作为歌手和音乐制作人,他才华出众; 作为演员和时尚领袖,他光芒闪耀。他有风格,有态度,更有魅力。今天,吴亦凡 @Mr_凡先生 成为首位兰蔻亚太区品牌代言人,为品牌注入更多奢华摩登的新活力,并呈现护肤、彩妆与香水的美丽精彩。不同\"\"响的幸福旅程即将开始!你,准备好了吗? \u200B\u200B\u200B\u200B",
58 + "pics" : ["wyf1.jpg" ,"wyf2.jpg" , "wyf3.jpg"],
59 + "time" : "3分钟前"
60 + },
61 + {
62 + "head" : "lh.jpg",
63 + "name" : "鹿晗",
64 + "desc" : "海淀素材库的密码终于想起来了[笑cry][笑cry][笑cry] \u200B\u200B\u200B\u200B\n",
65 + "pics" : ["lh1.jpg" ,"lh2.jpg" , "lh3.jpg" , "lh4.jpg"],
66 + "time" : "20分钟前"
67 + },
68 + {
69 + "head" : "cxk.jpg",
70 + "name" : "🏀蔡徐坤🏀",
71 + "desc" : "老哥们,看我篮球🏀打的好不好,赶紧点个赞👍",
72 + "pics" : ["cxk1.jpg" ,"cxk2.jpg" ],
73 + "time" : "1小时前"
74 + },
75 + {
76 + "head" : "zyx.jpg",
77 + "name" : "张艺兴",
78 + "desc" : "透过所有非凡成就,预见更为璀璨的未来。\n歌手、音乐制作人、演员张艺兴@努力努力再努力x 从未停下前进的脚步,从亚洲流行乐坛引领M-POP走向世界。\n《VMAN》九月电子刊带你走进封面人物张艺兴的世界,即“兴”而为,涌动新潮。\n《VMAN》官网独家专访",
79 + "pics" : ["zyx1.jpg" ,"zyx2.jpg" , "zyx3.jpg" , "zyx4.jpg","zyx5.jpg" ,"zyx6.jpg" , "zyx7.jpg" , "zyx8.jpg" , "zyx9.jpg"],
80 + "time" : "2小时前"
81 + },
82 + {
83 + "head" : "hsf.jpg",
84 + "name" : "黄诗扶",
85 + "desc" : "喝完大酒撑条船,说今生不靠岸。\n去天涯海角浪个遍,失意当尝鲜。\n神仙掐指算,此去少圆满。\n得来失,聚了散,千万莫求全。",
86 + "pics" : ["hsf1.jpg" ,"hsf2.jpg"],
87 + "time" : "3小时前"
88 + },
89 + {
90 + "head" : "logo.jpg",
91 + "name" : "Sunnytu",
92 + "desc" : "早上好中国的朋友们。宝宝们今天也很早开始一天。我好困\uD83D\uDCA4今天也我会努力",
93 + "pics" : ["banner.jpg"],
94 + "time" : "刚刚"
95 + },
96 + {
97 + "head" : "wyf.jpg",
98 + "name" : "吴亦凡",
99 + "desc" : "作为歌手和音乐制作人,他才华出众; 作为演员和时尚领袖,他光芒闪耀。他有风格,有态度,更有魅力。今天,吴亦凡 @Mr_凡先生 成为首位兰蔻亚太区品牌代言人,为品牌注入更多奢华摩登的新活力,并呈现护肤、彩妆与香水的美丽精彩。不同\"\"响的幸福旅程即将开始!你,准备好了吗? \u200B\u200B\u200B\u200B",
100 + "pics" : ["wyf1.jpg" ,"wyf2.jpg" , "wyf3.jpg"],
101 + "time" : "3分钟前"
102 + },
103 + {
104 + "head" : "lh.jpg",
105 + "name" : "鹿晗",
106 + "desc" : "海淀素材库的密码终于想起来了[笑cry][笑cry][笑cry] \u200B\u200B\u200B\u200B\n",
107 + "pics" : ["lh1.jpg" ,"lh2.jpg" , "lh3.jpg" , "lh4.jpg"],
108 + "time" : "20分钟前"
109 + },
110 + {
111 + "head" : "cxk.jpg",
112 + "name" : "🏀蔡徐坤🏀",
113 + "desc" : "老哥们,看我篮球🏀打的好不好,赶紧点个赞👍",
114 + "pics" : ["cxk1.jpg" ,"cxk2.jpg" ],
115 + "time" : "1小时前"
116 + },
117 + {
118 + "head" : "zyx.jpg",
119 + "name" : "张艺兴",
120 + "desc" : "透过所有非凡成就,预见更为璀璨的未来。\n歌手、音乐制作人、演员张艺兴@努力努力再努力x 从未停下前进的脚步,从亚洲流行乐坛引领M-POP走向世界。\n《VMAN》九月电子刊带你走进封面人物张艺兴的世界,即“兴”而为,涌动新潮。\n《VMAN》官网独家专访",
121 + "pics" : ["zyx1.jpg" ,"zyx2.jpg" , "zyx3.jpg" , "zyx4.jpg","zyx5.jpg" ,"zyx6.jpg" , "zyx7.jpg" , "zyx8.jpg" , "zyx9.jpg"],
122 + "time" : "2小时前"
123 + },
124 + {
125 + "head" : "hsf.jpg",
126 + "name" : "黄诗扶",
127 + "desc" : "喝完大酒撑条船,说今生不靠岸。\n去天涯海角浪个遍,失意当尝鲜。\n神仙掐指算,此去少圆满。\n得来失,聚了散,千万莫求全。",
128 + "pics" : ["hsf1.jpg" ,"hsf2.jpg"],
129 + "time" : "3小时前"
130 + },
131 + {
132 + "head" : "logo.jpg",
133 + "name" : "Sunnytu",
134 + "desc" : "早上好中国的朋友们。宝宝们今天也很早开始一天。我好困\uD83D\uDCA4今天也我会努力",
135 + "pics" : ["banner.jpg"],
136 + "time" : "刚刚"
137 + },
138 + {
139 + "head" : "wyf.jpg",
140 + "name" : "吴亦凡",
141 + "desc" : "作为歌手和音乐制作人,他才华出众; 作为演员和时尚领袖,他光芒闪耀。他有风格,有态度,更有魅力。今天,吴亦凡 @Mr_凡先生 成为首位兰蔻亚太区品牌代言人,为品牌注入更多奢华摩登的新活力,并呈现护肤、彩妆与香水的美丽精彩。不同\"\"响的幸福旅程即将开始!你,准备好了吗? \u200B\u200B\u200B\u200B",
142 + "pics" : ["wyf1.jpg" ,"wyf2.jpg" , "wyf3.jpg"],
143 + "time" : "3分钟前"
144 + },
145 + {
146 + "head" : "lh.jpg",
147 + "name" : "鹿晗",
148 + "desc" : "海淀素材库的密码终于想起来了[笑cry][笑cry][笑cry] \u200B\u200B\u200B\u200B\n",
149 + "pics" : ["lh1.jpg" ,"lh2.jpg" , "lh3.jpg" , "lh4.jpg"],
150 + "time" : "20分钟前"
151 + },
152 + {
153 + "head" : "cxk.jpg",
154 + "name" : "🏀蔡徐坤🏀",
155 + "desc" : "老哥们,看我篮球🏀打的好不好,赶紧点个赞👍",
156 + "pics" : ["cxk1.jpg" ,"cxk2.jpg" ],
157 + "time" : "1小时前"
158 + },
159 + {
160 + "head" : "zyx.jpg",
161 + "name" : "张艺兴",
162 + "desc" : "透过所有非凡成就,预见更为璀璨的未来。\n歌手、音乐制作人、演员张艺兴@努力努力再努力x 从未停下前进的脚步,从亚洲流行乐坛引领M-POP走向世界。\n《VMAN》九月电子刊带你走进封面人物张艺兴的世界,即“兴”而为,涌动新潮。\n《VMAN》官网独家专访",
163 + "pics" : ["zyx1.jpg" ,"zyx2.jpg" , "zyx3.jpg" , "zyx4.jpg","zyx5.jpg" ,"zyx6.jpg" , "zyx7.jpg" , "zyx8.jpg" , "zyx9.jpg"],
164 + "time" : "2小时前"
165 + },
166 + {
167 + "head" : "hsf.jpg",
168 + "name" : "黄诗扶",
169 + "desc" : "喝完大酒撑条船,说今生不靠岸。\n去天涯海角浪个遍,失意当尝鲜。\n神仙掐指算,此去少圆满。\n得来失,聚了散,千万莫求全。",
170 + "pics" : ["hsf1.jpg" ,"hsf2.jpg"],
171 + "time" : "3小时前"
172 + }
173 +
174 + ]
175 +}
...\ No newline at end of file ...\ No newline at end of file
...@@ -21,7 +21,7 @@ class _TimelinesPageState extends State<TimelinesPage>{ ...@@ -21,7 +21,7 @@ class _TimelinesPageState extends State<TimelinesPage>{
21 FriendEntity _friendmodelEntity = FriendEntity(); 21 FriendEntity _friendmodelEntity = FriendEntity();
22 22
23 Future<String> loadAsset() async { 23 Future<String> loadAsset() async {
24 - return await rootBundle.loadString('lib/res/timeline/Data.json'); 24 + return await rootBundle.loadString('assets/data/Data.json');
25 } 25 }
26 26
27 @override 27 @override
...@@ -53,7 +53,7 @@ class _TimelinesPageState extends State<TimelinesPage>{ ...@@ -53,7 +53,7 @@ class _TimelinesPageState extends State<TimelinesPage>{
53 } 53 }
54 54
55 Widget _mainListViewBuidler(BuildContext context , int index) { 55 Widget _mainListViewBuidler(BuildContext context , int index) {
56 - return FriendCell(model: _friendmodelEntity.data![index],); 56 + return FriendCell(model: _friendmodelEntity.data[index],);
57 } 57 }
58 58
59 59
...@@ -68,7 +68,7 @@ class _TimelinesPageState extends State<TimelinesPage>{ ...@@ -68,7 +68,7 @@ class _TimelinesPageState extends State<TimelinesPage>{
68 controller: _scrollController, 68 controller: _scrollController,
69 children: <Widget>[ 69 children: <Widget>[
70 const HeaderView(), 70 const HeaderView(),
71 - ListView.builder(padding: const EdgeInsets.only(top: 0), itemBuilder: _mainListViewBuidler , itemCount: _friendmodelEntity.data!.length, shrinkWrap: true, physics:NeverScrollableScrollPhysics(),) 71 + ListView.builder(padding: const EdgeInsets.only(top: 0), itemBuilder: _mainListViewBuidler , itemCount: _friendmodelEntity.data.length, shrinkWrap: true, physics:NeverScrollableScrollPhysics(),)
72 ], 72 ],
73 ), 73 ),
74 Opacity( 74 Opacity(
......
...@@ -20,7 +20,7 @@ class FriendCellState extends State<FriendCell> { ...@@ -20,7 +20,7 @@ class FriendCellState extends State<FriendCell> {
20 if (pics.length == 1) { 20 if (pics.length == 1) {
21 return Container( 21 return Container(
22 margin: EdgeInsets.fromLTRB(0, 10, 50, 10), 22 margin: EdgeInsets.fromLTRB(0, 10, 50, 10),
23 - child: Image.asset("lib/Resourse/" + pics[0] , fit: BoxFit.fill,), 23 + child: Image.asset("assets/data/friends/" + pics[0] , fit: BoxFit.fill,),
24 ); 24 );
25 } else if (pics.length == 4 || pics.length == 2) { 25 } else if (pics.length == 4 || pics.length == 2) {
26 return Container( 26 return Container(
...@@ -29,7 +29,7 @@ class FriendCellState extends State<FriendCell> { ...@@ -29,7 +29,7 @@ class FriendCellState extends State<FriendCell> {
29 spacing: 5, 29 spacing: 5,
30 runSpacing: 5, 30 runSpacing: 5,
31 alignment: WrapAlignment.start, 31 alignment: WrapAlignment.start,
32 - children: pics.map((p) => Image.asset("lib/Resourse/" + p , width: 100 , height: 100 , fit: BoxFit.cover,)).toList() 32 + children: pics.map((p) => Image.asset("assets/data/friends/" + p , width: 100 , height: 100 , fit: BoxFit.cover,)).toList()
33 ) 33 )
34 ); 34 );
35 } else if (pics.length == 3 || pics.length > 4) { 35 } else if (pics.length == 3 || pics.length > 4) {
...@@ -39,7 +39,7 @@ class FriendCellState extends State<FriendCell> { ...@@ -39,7 +39,7 @@ class FriendCellState extends State<FriendCell> {
39 spacing: 5, 39 spacing: 5,
40 runSpacing: 5, 40 runSpacing: 5,
41 alignment: WrapAlignment.start, 41 alignment: WrapAlignment.start,
42 - children: pics.map((p) => Image.asset("lib/Resourse/" + p , width: 70 , height: 70 , fit: BoxFit.cover,)).toList() 42 + children: pics.map((p) => Image.asset("assets/data/friends/" + p , width: 70 , height: 70 , fit: BoxFit.cover,)).toList()
43 ) 43 )
44 ); 44 );
45 } 45 }
...@@ -66,7 +66,7 @@ class FriendCellState extends State<FriendCell> { ...@@ -66,7 +66,7 @@ class FriendCellState extends State<FriendCell> {
66 height: 40, 66 height: 40,
67 margin: EdgeInsets.fromLTRB(15, 20, 15, 0), 67 margin: EdgeInsets.fromLTRB(15, 20, 15, 0),
68 child: ClipRRect( 68 child: ClipRRect(
69 - child: Image.asset("lib/Resourse/" + widget.model.head , fit: BoxFit.fill,), 69 + child: Image.asset("assets/data/friends/" + widget.model.head , fit: BoxFit.fill,),
70 borderRadius: BorderRadius.circular(5), 70 borderRadius: BorderRadius.circular(5),
71 ), 71 ),
72 ), 72 ),
...@@ -167,7 +167,7 @@ class FriendCellState extends State<FriendCell> { ...@@ -167,7 +167,7 @@ class FriendCellState extends State<FriendCell> {
167 onTap: (){ 167 onTap: (){
168 isShow(); 168 isShow();
169 }, 169 },
170 - child: Image.asset("lib/Resourse/button.png" , width: 22, height: 18,) 170 + child: Image.asset("assets/data/friends/button.png" , width: 22, height: 18,)
171 ), 171 ),
172 ], 172 ],
173 ), 173 ),
......
...@@ -18,7 +18,7 @@ class HeaderView extends StatelessWidget { ...@@ -18,7 +18,7 @@ class HeaderView extends StatelessWidget {
18 top: 0, 18 top: 0,
19 bottom: 40, 19 bottom: 40,
20 20
21 - child: Image.asset("lib/Resourse/banner.jpg" , fit: BoxFit.fill,) 21 + child: Image.asset("assets/data/friends/banner.jpg" , fit: BoxFit.fill,)
22 ), 22 ),
23 Positioned( 23 Positioned(
24 right: 15, 24 right: 15,
...@@ -26,7 +26,7 @@ class HeaderView extends StatelessWidget { ...@@ -26,7 +26,7 @@ class HeaderView extends StatelessWidget {
26 child: SizedBox( 26 child: SizedBox(
27 width: 60, 27 width: 60,
28 height: 60, 28 height: 60,
29 - child: ClipRRect(borderRadius:BorderRadius.circular(8) , child: Image.asset("lib/Resourse/logo.jpg" , fit: BoxFit.cover,)) 29 + child: ClipRRect(borderRadius:BorderRadius.circular(8) , child: Image.asset("assets/data/friends/logo.jpg" , fit: BoxFit.cover,))
30 ), 30 ),
31 ), 31 ),
32 const Positioned( 32 const Positioned(
......
...@@ -171,6 +171,8 @@ flutter: ...@@ -171,6 +171,8 @@ flutter:
171 - assets/images/shop/ 171 - assets/images/shop/
172 - assets/images/poem/ 172 - assets/images/poem/
173 - assets/images/poem/ 173 - assets/images/poem/
174 + - assets/data/Data.json
175 + - assets/data/friends/
174 176
175 fonts: 177 fonts:
176 - family: RobotoThin 178 - family: RobotoThin
......