|
|
@ -46,7 +46,7 @@ class _FounderStoryPage extends State<FounderStoryPage> { |
|
|
|
child: Column( |
|
|
|
child: Column( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
margin: EdgeInsets.only(bottom: 20), |
|
|
|
// margin: EdgeInsets.only(bottom: 20), |
|
|
|
padding: EdgeInsets.only(left: 32, right: 32, top: 24), |
|
|
|
padding: EdgeInsets.only(left: 32, right: 32, top: 24), |
|
|
|
decoration: BoxDecoration( |
|
|
|
decoration: BoxDecoration( |
|
|
|
color: Colors.white, |
|
|
|
color: Colors.white, |
|
|
@ -243,11 +243,11 @@ class _FounderStoryPage extends State<FounderStoryPage> { |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
_ideaWidget("友爱", |
|
|
|
_ideaWidget("友爱", |
|
|
|
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), |
|
|
|
"assets/image/icon_idea_ya.png"), |
|
|
|
_ideaWidget("纯净", |
|
|
|
_ideaWidget("纯净", |
|
|
|
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), |
|
|
|
"assets/image/icon_idea_cj.png"), |
|
|
|
_ideaWidget("健康", |
|
|
|
_ideaWidget("健康", |
|
|
|
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), |
|
|
|
"assets/image/icon_idea_jk.png"), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
@ -256,121 +256,121 @@ class _FounderStoryPage extends State<FounderStoryPage> { |
|
|
|
Row( |
|
|
|
Row( |
|
|
|
children: [ |
|
|
|
children: [ |
|
|
|
_ideaWidget("有机", |
|
|
|
_ideaWidget("有机", |
|
|
|
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), |
|
|
|
"assets/image/icon_idea_yj.png"), |
|
|
|
_ideaWidget("环保", |
|
|
|
_ideaWidget("环保", |
|
|
|
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), |
|
|
|
"assets/image/icon_idea_hb.png"), |
|
|
|
_ideaWidget("智慧", |
|
|
|
_ideaWidget("智慧", |
|
|
|
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), |
|
|
|
"assets/image/icon_idea_zh.png"), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
SizedBox( |
|
|
|
SizedBox( |
|
|
|
height: 20, |
|
|
|
height: 42, |
|
|
|
), |
|
|
|
), |
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
Container( |
|
|
|
// Container( |
|
|
|
// margin: EdgeInsets.only(bottom: 20), |
|
|
|
// // margin: EdgeInsets.only(bottom: 20), |
|
|
|
|
|
|
|
// // padding: EdgeInsets.all(16), |
|
|
|
|
|
|
|
// decoration: BoxDecoration( |
|
|
|
|
|
|
|
// color: Colors.white, |
|
|
|
|
|
|
|
// boxShadow: [ |
|
|
|
|
|
|
|
// BoxShadow( |
|
|
|
|
|
|
|
// color: Colors.black.withAlpha(12), |
|
|
|
|
|
|
|
// offset: Offset(0, 2), |
|
|
|
|
|
|
|
// blurRadius: 14, |
|
|
|
|
|
|
|
// spreadRadius: 0) |
|
|
|
|
|
|
|
// ], |
|
|
|
|
|
|
|
// ), |
|
|
|
|
|
|
|
// child: Column( |
|
|
|
|
|
|
|
// mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
|
|
|
|
// children: [ |
|
|
|
|
|
|
|
// Padding( |
|
|
|
// padding: EdgeInsets.all(16), |
|
|
|
// padding: EdgeInsets.all(16), |
|
|
|
decoration: BoxDecoration( |
|
|
|
// child: Text("评论 (58) 喜欢 (58)", |
|
|
|
color: Colors.white, |
|
|
|
// style: TextStyle( |
|
|
|
boxShadow: [ |
|
|
|
// fontSize: 16, |
|
|
|
BoxShadow( |
|
|
|
// fontWeight: FontWeight.bold, |
|
|
|
color: Colors.black.withAlpha(12), |
|
|
|
// color: Color(0xff1A1A1A))), |
|
|
|
offset: Offset(0, 2), |
|
|
|
// ), |
|
|
|
blurRadius: 14, |
|
|
|
// SizedBox( |
|
|
|
spreadRadius: 0) |
|
|
|
// height: 600, |
|
|
|
], |
|
|
|
// child: ListView.builder( |
|
|
|
), |
|
|
|
// itemCount: 6, |
|
|
|
child: Column( |
|
|
|
// scrollDirection: Axis.vertical, |
|
|
|
mainAxisAlignment: MainAxisAlignment.start, |
|
|
|
// physics: BouncingScrollPhysics(), |
|
|
|
crossAxisAlignment: CrossAxisAlignment.start, |
|
|
|
// itemBuilder: (context, position) { |
|
|
|
children: [ |
|
|
|
// return _commentItem(position); |
|
|
|
Padding( |
|
|
|
// }, |
|
|
|
padding: EdgeInsets.all(16), |
|
|
|
// ), |
|
|
|
child: Text("评论 (58) 喜欢 (58)", |
|
|
|
// ), |
|
|
|
style: TextStyle( |
|
|
|
// ], |
|
|
|
fontSize: 16, |
|
|
|
// ), |
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
// ), |
|
|
|
color: Color(0xff1A1A1A))), |
|
|
|
// SizedBox( |
|
|
|
), |
|
|
|
// height: 12, |
|
|
|
SizedBox( |
|
|
|
// ), |
|
|
|
height: 600, |
|
|
|
// Container( |
|
|
|
child: ListView.builder( |
|
|
|
// padding: EdgeInsets.all(16), |
|
|
|
itemCount: 6, |
|
|
|
// decoration: BoxDecoration( |
|
|
|
scrollDirection: Axis.vertical, |
|
|
|
// color: Colors.white, |
|
|
|
physics: BouncingScrollPhysics(), |
|
|
|
// boxShadow: [ |
|
|
|
itemBuilder: (context, position) { |
|
|
|
// BoxShadow( |
|
|
|
return _commentItem(position); |
|
|
|
// color: Colors.black.withAlpha(12), |
|
|
|
}, |
|
|
|
// offset: Offset(0, 2), |
|
|
|
), |
|
|
|
// blurRadius: 14, |
|
|
|
), |
|
|
|
// spreadRadius: 0) |
|
|
|
], |
|
|
|
// ], |
|
|
|
), |
|
|
|
// borderRadius: new BorderRadius.only( |
|
|
|
), |
|
|
|
// topLeft: Radius.circular(8.0), |
|
|
|
SizedBox( |
|
|
|
// topRight: Radius.circular(8.0), |
|
|
|
height: 12, |
|
|
|
// ), |
|
|
|
), |
|
|
|
// ), |
|
|
|
Container( |
|
|
|
// child: Row( |
|
|
|
padding: EdgeInsets.all(16), |
|
|
|
// children: [ |
|
|
|
decoration: BoxDecoration( |
|
|
|
// Expanded( |
|
|
|
color: Colors.white, |
|
|
|
// flex: 1, |
|
|
|
boxShadow: [ |
|
|
|
// child: Container( |
|
|
|
BoxShadow( |
|
|
|
// decoration: new BoxDecoration( |
|
|
|
color: Colors.black.withAlpha(12), |
|
|
|
// color: Color(0xffF2F2F2), |
|
|
|
offset: Offset(0, 2), |
|
|
|
// borderRadius: BorderRadius.circular(2.0)), |
|
|
|
blurRadius: 14, |
|
|
|
// child: Column( |
|
|
|
spreadRadius: 0) |
|
|
|
// children: [ |
|
|
|
], |
|
|
|
// Container( |
|
|
|
borderRadius: new BorderRadius.only( |
|
|
|
// margin: const EdgeInsets.fromLTRB(4, 0, 4, 0), |
|
|
|
topLeft: Radius.circular(8.0), |
|
|
|
// alignment: Alignment.topLeft, |
|
|
|
topRight: Radius.circular(8.0), |
|
|
|
// child: TextField( |
|
|
|
), |
|
|
|
// maxLines: 8, |
|
|
|
), |
|
|
|
// minLines: 1, |
|
|
|
child: Row( |
|
|
|
// decoration: InputDecoration( |
|
|
|
children: [ |
|
|
|
// border: InputBorder.none, |
|
|
|
Expanded( |
|
|
|
// hintText: "留下您精彩的评论吧~", |
|
|
|
flex: 1, |
|
|
|
// hintStyle: TextStyle( |
|
|
|
child: Container( |
|
|
|
// fontSize: 14, |
|
|
|
decoration: new BoxDecoration( |
|
|
|
// color: Color(0xffCDCCCC), |
|
|
|
color: Color(0xffF2F2F2), |
|
|
|
// ), |
|
|
|
borderRadius: BorderRadius.circular(2.0)), |
|
|
|
// ), |
|
|
|
child: Column( |
|
|
|
// ), |
|
|
|
children: [ |
|
|
|
// ), |
|
|
|
Container( |
|
|
|
// ], |
|
|
|
margin: const EdgeInsets.fromLTRB(4, 0, 4, 0), |
|
|
|
// ), |
|
|
|
alignment: Alignment.topLeft, |
|
|
|
// ), |
|
|
|
child: TextField( |
|
|
|
// ), |
|
|
|
maxLines: 8, |
|
|
|
// Padding( |
|
|
|
minLines: 1, |
|
|
|
// padding: EdgeInsets.only(left: 20, right: 20), |
|
|
|
decoration: InputDecoration( |
|
|
|
// child: Text( |
|
|
|
border: InputBorder.none, |
|
|
|
// "发送", |
|
|
|
hintText: "留下您精彩的评论吧~", |
|
|
|
// style: TextStyle( |
|
|
|
hintStyle: TextStyle( |
|
|
|
// fontSize: 16, |
|
|
|
fontSize: 14, |
|
|
|
// fontWeight: FontWeight.bold, |
|
|
|
color: Color(0xffCDCCCC), |
|
|
|
// color: Color(0XFF1A1A1A)), |
|
|
|
), |
|
|
|
// ), |
|
|
|
), |
|
|
|
// ), |
|
|
|
), |
|
|
|
// Image.asset("assets/image/icon_like_h.png") |
|
|
|
), |
|
|
|
// ], |
|
|
|
], |
|
|
|
// ), |
|
|
|
), |
|
|
|
// ), |
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Padding( |
|
|
|
|
|
|
|
padding: EdgeInsets.only(left: 20, right: 20), |
|
|
|
|
|
|
|
child: Text( |
|
|
|
|
|
|
|
"发送", |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 16, |
|
|
|
|
|
|
|
fontWeight: FontWeight.bold, |
|
|
|
|
|
|
|
color: Color(0XFF1A1A1A)), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
Image.asset("assets/image/icon_like_h.png") |
|
|
|
|
|
|
|
], |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
), |
|
|
|
|
|
|
|
], |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
|
), |
|
|
@ -400,7 +400,7 @@ class _FounderStoryPage extends State<FounderStoryPage> { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Widget _ideaWidget(var text, var img) { |
|
|
|
Widget _ideaWidget(var text, String img) { |
|
|
|
return Expanded( |
|
|
|
return Expanded( |
|
|
|
flex: 1, |
|
|
|
flex: 1, |
|
|
|
child: Stack( |
|
|
|
child: Stack( |
|
|
@ -409,19 +409,35 @@ class _FounderStoryPage extends State<FounderStoryPage> { |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
width: 63, |
|
|
|
width: 63, |
|
|
|
height: 63, |
|
|
|
height: 63, |
|
|
|
|
|
|
|
child:Stack( |
|
|
|
|
|
|
|
alignment: Alignment.center, |
|
|
|
|
|
|
|
children: [ |
|
|
|
|
|
|
|
Align( |
|
|
|
child: CircleAvatar( |
|
|
|
child: CircleAvatar( |
|
|
|
|
|
|
|
child: Image.asset( |
|
|
|
|
|
|
|
img), |
|
|
|
radius: 100, |
|
|
|
radius: 100, |
|
|
|
backgroundImage: NetworkImage(img), |
|
|
|
), |
|
|
|
child: Container( |
|
|
|
), |
|
|
|
alignment: Alignment.center, |
|
|
|
Text(text,style:TextStyle( |
|
|
|
child: Text( |
|
|
|
|
|
|
|
text, |
|
|
|
|
|
|
|
style: TextStyle( |
|
|
|
|
|
|
|
fontSize: 18, |
|
|
|
fontSize: 18, |
|
|
|
fontWeight: FontWeight.w300, |
|
|
|
fontWeight: FontWeight.w300, |
|
|
|
color: Colors.white), |
|
|
|
color: Colors.white) ,) |
|
|
|
)), |
|
|
|
], |
|
|
|
), |
|
|
|
), |
|
|
|
|
|
|
|
// CircleAvatar( |
|
|
|
|
|
|
|
// radius: 100, |
|
|
|
|
|
|
|
// backgroundImage: Image.asset(img), |
|
|
|
|
|
|
|
// child: Container( |
|
|
|
|
|
|
|
// alignment: Alignment.center, |
|
|
|
|
|
|
|
// child: Text( |
|
|
|
|
|
|
|
// text, |
|
|
|
|
|
|
|
// style: TextStyle( |
|
|
|
|
|
|
|
// fontSize: 18, |
|
|
|
|
|
|
|
// fontWeight: FontWeight.w300, |
|
|
|
|
|
|
|
// color: Colors.white), |
|
|
|
|
|
|
|
// )), |
|
|
|
|
|
|
|
// ), |
|
|
|
), |
|
|
|
), |
|
|
|
Container( |
|
|
|
Container( |
|
|
|
width: 73, |
|
|
|
width: 73, |
|
|
|