Browse Source

Merge branches 'dev' and 'master' of https://git.lotus-wallet.com/fmk/huixiang_app

 Conflicts:
	lib/generated/l10n.dart
	lib/l10n/intl_en.arb
	lib/l10n/intl_zh_CN.arb
	lib/l10n/intl_zh_TW.arb
null_safety
fmk 4 years ago
parent
commit
baddf94a9f
  1. BIN
      assets/image/2x/icon_idea_cj.png
  2. BIN
      assets/image/2x/icon_idea_hb.png
  3. BIN
      assets/image/2x/icon_idea_jk.png
  4. BIN
      assets/image/2x/icon_idea_ya.png
  5. BIN
      assets/image/2x/icon_idea_yj.png
  6. BIN
      assets/image/2x/icon_idea_zh.png
  7. BIN
      assets/image/3x/icon_idea_cj.png
  8. BIN
      assets/image/3x/icon_idea_hb.png
  9. BIN
      assets/image/3x/icon_idea_jk.png
  10. BIN
      assets/image/3x/icon_idea_ya.png
  11. BIN
      assets/image/3x/icon_idea_yj.png
  12. BIN
      assets/image/3x/icon_idea_zh.png
  13. BIN
      assets/image/icon_idea_cj.png
  14. BIN
      assets/image/icon_idea_hb.png
  15. BIN
      assets/image/icon_idea_jk.png
  16. BIN
      assets/image/icon_idea_ya.png
  17. BIN
      assets/image/icon_idea_yj.png
  18. BIN
      assets/image/icon_idea_zh.png
  19. 9
      lib/generated/l10n.dart
  20. 252
      lib/home/founder_story_page.dart
  21. 101
      lib/home/huixiang_brand_page.dart

BIN
assets/image/2x/icon_idea_cj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
assets/image/2x/icon_idea_hb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

BIN
assets/image/2x/icon_idea_jk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
assets/image/2x/icon_idea_ya.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
assets/image/2x/icon_idea_yj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 37 KiB

BIN
assets/image/2x/icon_idea_zh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

BIN
assets/image/3x/icon_idea_cj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

BIN
assets/image/3x/icon_idea_hb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 48 KiB

BIN
assets/image/3x/icon_idea_jk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
assets/image/3x/icon_idea_ya.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 66 KiB

BIN
assets/image/3x/icon_idea_yj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

BIN
assets/image/3x/icon_idea_zh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

BIN
assets/image/icon_idea_cj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

BIN
assets/image/icon_idea_hb.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

BIN
assets/image/icon_idea_jk.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.1 KiB

BIN
assets/image/icon_idea_ya.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
assets/image/icon_idea_yj.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

BIN
assets/image/icon_idea_zh.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

9
lib/generated/l10n.dart

@ -3335,6 +3335,15 @@ class S {
);
}
/// ``
String get yinsizhengce {
return Intl.message(
'隐私政策',
name: 'yinsizhengce',
desc: '',
args: [],
);
}
/// ``
String get yilingqu {
return Intl.message(

252
lib/home/founder_story_page.dart

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

101
lib/home/huixiang_brand_page.dart

@ -454,18 +454,40 @@ class _BrandPage extends State<BrandPage>
),
Column(
children: [
//
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
// crossAxisAlignment: CrossAxisAlignment.center,
// children: buildIdea(),
// ),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: buildIdea(),
children: [
_ideaWidget("友爱",
"assets/image/icon_idea_ya.png"),
_ideaWidget("纯净",
"assets/image/icon_idea_cj.png"),
_ideaWidget("健康",
"assets/image/icon_idea_jk.png"),
],
),
SizedBox(
height: 18,
),
//
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
// crossAxisAlignment: CrossAxisAlignment.center,
// children: buildIdea(),
// ),
Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.center,
children: buildIdea(),
children: [
_ideaWidget("有机",
"assets/image/icon_idea_yj.png"),
_ideaWidget("环保",
"assets/image/icon_idea_hb.png"),
_ideaWidget("智慧",
"assets/image/icon_idea_zh.png"),
],
),
],
),
@ -474,13 +496,66 @@ class _BrandPage extends State<BrandPage>
);
}
List<Widget> buildIdea() {
if (brandData == null) return [];
var ideas = <Widget>[];
(brandData.ideals as Map<String, dynamic>).forEach((key, value) {
ideas.add(idea(key, value));
});
return ideas;
//
// List<Widget> buildIdea() {
// if (brandData == null) return [];
// var ideas = <Widget>[];
// (brandData.ideals as Map<String, dynamic>).forEach((key, value) {
// ideas.add(idea(key, value));
// });
// return ideas;
// }
Widget _ideaWidget(var text, String img) {
return Expanded(
flex: 1,
child: Stack(
alignment: Alignment.center,
children: [
Container(
width: 63,
height: 63,
child:Stack(
alignment: Alignment.center,
children: [
Align(
child: CircleAvatar(
child: Image.asset(
img),
radius: 100,
),
),
Text(text,style:TextStyle(
fontSize: 18,
fontWeight: FontWeight.w300,
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(
width: 73,
height: 73,
child: CustomPaint(
painter: MyPainter(
lineColor: Color(0xff32A060), width: 2, isDividerRound: true),
),
)
],
),
);
}
banner() {

Loading…
Cancel
Save