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 { String get yilingqu {
return Intl.message( return Intl.message(

252
lib/home/founder_story_page.dart

@ -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,

101
lib/home/huixiang_brand_page.dart

@ -454,18 +454,40 @@ class _BrandPage extends State<BrandPage>
), ),
Column( Column(
children: [ children: [
//
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
// crossAxisAlignment: CrossAxisAlignment.center,
// children: buildIdea(),
// ),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
crossAxisAlignment: CrossAxisAlignment.center, _ideaWidget("友爱",
children: buildIdea(), "assets/image/icon_idea_ya.png"),
_ideaWidget("纯净",
"assets/image/icon_idea_cj.png"),
_ideaWidget("健康",
"assets/image/icon_idea_jk.png"),
],
), ),
SizedBox( SizedBox(
height: 18, height: 18,
), ),
//
// Row(
// mainAxisAlignment: MainAxisAlignment.spaceEvenly,
// crossAxisAlignment: CrossAxisAlignment.center,
// children: buildIdea(),
// ),
Row( Row(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
crossAxisAlignment: CrossAxisAlignment.center, _ideaWidget("有机",
children: buildIdea(), "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 []; // List<Widget> buildIdea() {
var ideas = <Widget>[]; // if (brandData == null) return [];
(brandData.ideals as Map<String, dynamic>).forEach((key, value) { // var ideas = <Widget>[];
ideas.add(idea(key, value)); // (brandData.ideals as Map<String, dynamic>).forEach((key, value) {
}); // ideas.add(idea(key, value));
return ideas; // });
// 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() { banner() {

Loading…
Cancel
Save