Browse Source

订单

null_safety
fmk 4 years ago
parent
commit
176f7c22ab
  1. 44
      lib/generated/intl/messages_en.dart
  2. 44
      lib/generated/intl/messages_zh_CN.dart
  3. 44
      lib/generated/intl/messages_zh_TW.dart
  4. 400
      lib/home/founder_story_page.dart
  5. 12
      lib/login/login_page.dart
  6. 68
      lib/main.dart
  7. 2
      lib/view_widget/new_coupon_widget.dart
  8. 2
      pubspec.yaml

44
lib/generated/intl/messages_en.dart

@ -57,27 +57,25 @@ class MessageLookup extends MessageLookupByLibrary {
static m18(jifen) => "实付积分 ${jifen}积分"; static m18(jifen) => "实付积分 ${jifen}积分";
static m19(date) => "使用日期${date}"; static m19(sui) => "${sui}";
static m20(sui) => "${sui}"; static m20(num) => "完成${num}";
static m21(num) => "完成${num}"; static m21(time) => "下单时间${time}";
static m22(time) => "下单时间${time}"; static m22(time) => "下单时间:${time}";
static m23(time) => "下单时间:${time}"; static m23(jian) => "已兑换${jian}";
static m24(jian) => "已兑换${jian}"; static m24(time) => "营业时间: ${time}";
static m25(time) => "营业时间: ${time}"; static m25(date) => "有效期至${date}";
static m26(date) => "有效期至${date}"; static m26(yuan) => "${yuan}";
static m27(yuan) => "${yuan}"; static m27(yue) => "余额${yue}";
static m28(yue) => "余额${yue}"; static m28(zuozhe) => "作者${zuozhe}";
static m29(zuozhe) => "作者${zuozhe}";
final messages = _notInlinedMessages(_notInlinedMessages); final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> { static _notInlinedMessages(_) => <String, Function> {
@ -280,7 +278,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shimingrenzheng" : MessageLookupByLibrary.simpleMessage("实名认证"), "shimingrenzheng" : MessageLookupByLibrary.simpleMessage("实名认证"),
"shixiaoquan" : MessageLookupByLibrary.simpleMessage("失效券"), "shixiaoquan" : MessageLookupByLibrary.simpleMessage("失效券"),
"shixiaoyouhuiquan" : MessageLookupByLibrary.simpleMessage("失效优惠券"), "shixiaoyouhuiquan" : MessageLookupByLibrary.simpleMessage("失效优惠券"),
"shiyongriqi" : m19, "shiyongriqi" : MessageLookupByLibrary.simpleMessage("使用日期"),
"shiyongshuoming" : MessageLookupByLibrary.simpleMessage("使用说明"), "shiyongshuoming" : MessageLookupByLibrary.simpleMessage("使用说明"),
"shiyongtiaojian" : MessageLookupByLibrary.simpleMessage("使用条件"), "shiyongtiaojian" : MessageLookupByLibrary.simpleMessage("使用条件"),
"shouhuodizhi" : MessageLookupByLibrary.simpleMessage("收货地址"), "shouhuodizhi" : MessageLookupByLibrary.simpleMessage("收货地址"),
@ -291,7 +289,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shuaxinyue" : MessageLookupByLibrary.simpleMessage("刷新余额"), "shuaxinyue" : MessageLookupByLibrary.simpleMessage("刷新余额"),
"shuaxinzhong" : MessageLookupByLibrary.simpleMessage("刷新中...."), "shuaxinzhong" : MessageLookupByLibrary.simpleMessage("刷新中...."),
"shuruzhifumima" : MessageLookupByLibrary.simpleMessage("输入支付密码"), "shuruzhifumima" : MessageLookupByLibrary.simpleMessage("输入支付密码"),
"sui" : m20, "sui" : m19,
"tijiao" : MessageLookupByLibrary.simpleMessage("提交"), "tijiao" : MessageLookupByLibrary.simpleMessage("提交"),
"tingchewei" : MessageLookupByLibrary.simpleMessage("停车位"), "tingchewei" : MessageLookupByLibrary.simpleMessage("停车位"),
"tixian" : MessageLookupByLibrary.simpleMessage("提现"), "tixian" : MessageLookupByLibrary.simpleMessage("提现"),
@ -302,7 +300,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"), "tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"), "waisong" : MessageLookupByLibrary.simpleMessage("外送"),
"wancheng" : MessageLookupByLibrary.simpleMessage("完成"), "wancheng" : MessageLookupByLibrary.simpleMessage("完成"),
"wancheng_" : m21, "wancheng_" : m20,
"wanchengyicixiadan" : MessageLookupByLibrary.simpleMessage("完成一次下单"), "wanchengyicixiadan" : MessageLookupByLibrary.simpleMessage("完成一次下单"),
"wanshanshengrixinxi_nl" : MessageLookupByLibrary.simpleMessage("完善生日信息后自动生成"), "wanshanshengrixinxi_nl" : MessageLookupByLibrary.simpleMessage("完善生日信息后自动生成"),
"wanshanshengrixinxi_yhq" : MessageLookupByLibrary.simpleMessage("完善生日信息得专属优惠劵"), "wanshanshengrixinxi_yhq" : MessageLookupByLibrary.simpleMessage("完善生日信息得专属优惠劵"),
@ -320,8 +318,8 @@ class MessageLookup extends MessageLookupByLibrary {
"wodeshengri" : MessageLookupByLibrary.simpleMessage("我的生日"), "wodeshengri" : MessageLookupByLibrary.simpleMessage("我的生日"),
"wodexiaoxi" : MessageLookupByLibrary.simpleMessage("我的消息"), "wodexiaoxi" : MessageLookupByLibrary.simpleMessage("我的消息"),
"wuliuxinxi" : MessageLookupByLibrary.simpleMessage("物流信息"), "wuliuxinxi" : MessageLookupByLibrary.simpleMessage("物流信息"),
"xiadanshijian" : m22, "xiadanshijian" : m21,
"xiadanshijian_" : m23, "xiadanshijian_" : m22,
"xialashuaxin" : MessageLookupByLibrary.simpleMessage("下拉刷新"), "xialashuaxin" : MessageLookupByLibrary.simpleMessage("下拉刷新"),
"xiangji" : MessageLookupByLibrary.simpleMessage("相机"), "xiangji" : MessageLookupByLibrary.simpleMessage("相机"),
"xiangjitishixinxi" : MessageLookupByLibrary.simpleMessage("为了您可以在使用过程中进行分享,希望您使用HISAPP时让我们使用相机功能"), "xiangjitishixinxi" : MessageLookupByLibrary.simpleMessage("为了您可以在使用过程中进行分享,希望您使用HISAPP时让我们使用相机功能"),
@ -336,11 +334,11 @@ class MessageLookup extends MessageLookupByLibrary {
"xitongxiaoxi" : MessageLookupByLibrary.simpleMessage("系统消息"), "xitongxiaoxi" : MessageLookupByLibrary.simpleMessage("系统消息"),
"xuni" : MessageLookupByLibrary.simpleMessage("虚拟"), "xuni" : MessageLookupByLibrary.simpleMessage("虚拟"),
"yiduihuan" : MessageLookupByLibrary.simpleMessage("已兑换"), "yiduihuan" : MessageLookupByLibrary.simpleMessage("已兑换"),
"yiduihuanjian" : m24, "yiduihuanjian" : m23,
"yifahuo" : MessageLookupByLibrary.simpleMessage("已发货"), "yifahuo" : MessageLookupByLibrary.simpleMessage("已发货"),
"yihujiaoqishou" : MessageLookupByLibrary.simpleMessage("已呼叫骑手"), "yihujiaoqishou" : MessageLookupByLibrary.simpleMessage("已呼叫骑手"),
"yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"), "yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"),
"yingyeshijian" : m25, "yingyeshijian" : m24,
"yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"), "yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"),
"yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "), "yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "),
"yishijiao" : MessageLookupByLibrary.simpleMessage("已失效"), "yishijiao" : MessageLookupByLibrary.simpleMessage("已失效"),
@ -358,10 +356,10 @@ class MessageLookup extends MessageLookupByLibrary {
"youhuiquan" : MessageLookupByLibrary.simpleMessage("优惠券"), "youhuiquan" : MessageLookupByLibrary.simpleMessage("优惠券"),
"youhuiquanlingqu" : MessageLookupByLibrary.simpleMessage("优惠券领取"), "youhuiquanlingqu" : MessageLookupByLibrary.simpleMessage("优惠券领取"),
"youhuiquanwufajileijifen" : MessageLookupByLibrary.simpleMessage("优惠金额无法累积积分,订单撤销或其他原因造成的未成功支付的订单,无法获得对应的积分。"), "youhuiquanwufajileijifen" : MessageLookupByLibrary.simpleMessage("优惠金额无法累积积分,订单撤销或其他原因造成的未成功支付的订单,无法获得对应的积分。"),
"youxiaoqizhi" : m26, "youxiaoqizhi" : m25,
"yuan" : m27, "yuan" : m26,
"yue" : MessageLookupByLibrary.simpleMessage("余额"), "yue" : MessageLookupByLibrary.simpleMessage("余额"),
"yue_" : m28, "yue_" : m27,
"yuemingxi" : MessageLookupByLibrary.simpleMessage("余额明细"), "yuemingxi" : MessageLookupByLibrary.simpleMessage("余额明细"),
"yuyan" : MessageLookupByLibrary.simpleMessage("语言"), "yuyan" : MessageLookupByLibrary.simpleMessage("语言"),
"zaixiankefu" : MessageLookupByLibrary.simpleMessage("在线客服"), "zaixiankefu" : MessageLookupByLibrary.simpleMessage("在线客服"),
@ -382,6 +380,6 @@ class MessageLookup extends MessageLookupByLibrary {
"zitishijian" : MessageLookupByLibrary.simpleMessage("自提时间"), "zitishijian" : MessageLookupByLibrary.simpleMessage("自提时间"),
"zuanshihuiyuan" : MessageLookupByLibrary.simpleMessage("钻石会员"), "zuanshihuiyuan" : MessageLookupByLibrary.simpleMessage("钻石会员"),
"zuorenwudejifen" : MessageLookupByLibrary.simpleMessage("做任务得积分"), "zuorenwudejifen" : MessageLookupByLibrary.simpleMessage("做任务得积分"),
"zuozhe" : m29 "zuozhe" : m28
}; };
} }

44
lib/generated/intl/messages_zh_CN.dart

@ -57,27 +57,25 @@ class MessageLookup extends MessageLookupByLibrary {
static m18(jifen) => "实付积分 ${jifen}积分"; static m18(jifen) => "实付积分 ${jifen}积分";
static m19(date) => "使用日期${date}"; static m19(sui) => "${sui}";
static m20(sui) => "${sui}"; static m20(num) => "完成${num}";
static m21(num) => "完成${num}"; static m21(time) => "下单时间${time}";
static m22(time) => "下单时间${time}"; static m22(time) => "下单时间:${time}";
static m23(time) => "下单时间:${time}"; static m23(jian) => "已兑换${jian}";
static m24(jian) => "已兑换${jian}"; static m24(time) => "营业时间: ${time}";
static m25(time) => "营业时间: ${time}"; static m25(date) => "有效期至${date}";
static m26(date) => "有效期至${date}"; static m26(yuan) => "${yuan}";
static m27(yuan) => "${yuan}"; static m27(yue) => "余额${yue}";
static m28(yue) => "余额${yue}"; static m28(zuozhe) => "作者${zuozhe}";
static m29(zuozhe) => "作者${zuozhe}";
final messages = _notInlinedMessages(_notInlinedMessages); final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> { static _notInlinedMessages(_) => <String, Function> {
@ -280,7 +278,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shimingrenzheng" : MessageLookupByLibrary.simpleMessage("实名认证"), "shimingrenzheng" : MessageLookupByLibrary.simpleMessage("实名认证"),
"shixiaoquan" : MessageLookupByLibrary.simpleMessage("失效券"), "shixiaoquan" : MessageLookupByLibrary.simpleMessage("失效券"),
"shixiaoyouhuiquan" : MessageLookupByLibrary.simpleMessage("失效优惠券"), "shixiaoyouhuiquan" : MessageLookupByLibrary.simpleMessage("失效优惠券"),
"shiyongriqi" : m19, "shiyongriqi" : MessageLookupByLibrary.simpleMessage("使用日期"),
"shiyongshuoming" : MessageLookupByLibrary.simpleMessage("使用说明"), "shiyongshuoming" : MessageLookupByLibrary.simpleMessage("使用说明"),
"shiyongtiaojian" : MessageLookupByLibrary.simpleMessage("使用条件"), "shiyongtiaojian" : MessageLookupByLibrary.simpleMessage("使用条件"),
"shouhuodizhi" : MessageLookupByLibrary.simpleMessage("收货地址"), "shouhuodizhi" : MessageLookupByLibrary.simpleMessage("收货地址"),
@ -291,7 +289,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shuaxinyue" : MessageLookupByLibrary.simpleMessage("刷新余额"), "shuaxinyue" : MessageLookupByLibrary.simpleMessage("刷新余额"),
"shuaxinzhong" : MessageLookupByLibrary.simpleMessage("刷新中...."), "shuaxinzhong" : MessageLookupByLibrary.simpleMessage("刷新中...."),
"shuruzhifumima" : MessageLookupByLibrary.simpleMessage("输入支付密码"), "shuruzhifumima" : MessageLookupByLibrary.simpleMessage("输入支付密码"),
"sui" : m20, "sui" : m19,
"tijiao" : MessageLookupByLibrary.simpleMessage("提交"), "tijiao" : MessageLookupByLibrary.simpleMessage("提交"),
"tingchewei" : MessageLookupByLibrary.simpleMessage("停车位"), "tingchewei" : MessageLookupByLibrary.simpleMessage("停车位"),
"tixian" : MessageLookupByLibrary.simpleMessage("提现"), "tixian" : MessageLookupByLibrary.simpleMessage("提现"),
@ -302,7 +300,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"), "tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"), "waisong" : MessageLookupByLibrary.simpleMessage("外送"),
"wancheng" : MessageLookupByLibrary.simpleMessage("完成"), "wancheng" : MessageLookupByLibrary.simpleMessage("完成"),
"wancheng_" : m21, "wancheng_" : m20,
"wanchengyicixiadan" : MessageLookupByLibrary.simpleMessage("完成一次下单"), "wanchengyicixiadan" : MessageLookupByLibrary.simpleMessage("完成一次下单"),
"wanshanshengrixinxi_nl" : MessageLookupByLibrary.simpleMessage("完善生日信息后自动生成"), "wanshanshengrixinxi_nl" : MessageLookupByLibrary.simpleMessage("完善生日信息后自动生成"),
"wanshanshengrixinxi_yhq" : MessageLookupByLibrary.simpleMessage("完善生日信息得专属优惠劵"), "wanshanshengrixinxi_yhq" : MessageLookupByLibrary.simpleMessage("完善生日信息得专属优惠劵"),
@ -320,8 +318,8 @@ class MessageLookup extends MessageLookupByLibrary {
"wodeshengri" : MessageLookupByLibrary.simpleMessage("我的生日"), "wodeshengri" : MessageLookupByLibrary.simpleMessage("我的生日"),
"wodexiaoxi" : MessageLookupByLibrary.simpleMessage("我的消息"), "wodexiaoxi" : MessageLookupByLibrary.simpleMessage("我的消息"),
"wuliuxinxi" : MessageLookupByLibrary.simpleMessage("物流信息"), "wuliuxinxi" : MessageLookupByLibrary.simpleMessage("物流信息"),
"xiadanshijian" : m22, "xiadanshijian" : m21,
"xiadanshijian_" : m23, "xiadanshijian_" : m22,
"xialashuaxin" : MessageLookupByLibrary.simpleMessage("下拉刷新"), "xialashuaxin" : MessageLookupByLibrary.simpleMessage("下拉刷新"),
"xiangji" : MessageLookupByLibrary.simpleMessage("相机"), "xiangji" : MessageLookupByLibrary.simpleMessage("相机"),
"xiangjitishixinxi" : MessageLookupByLibrary.simpleMessage("为了您可以在使用过程中进行分享,希望您使用HISAPP时让我们使用相机功能"), "xiangjitishixinxi" : MessageLookupByLibrary.simpleMessage("为了您可以在使用过程中进行分享,希望您使用HISAPP时让我们使用相机功能"),
@ -336,11 +334,11 @@ class MessageLookup extends MessageLookupByLibrary {
"xitongxiaoxi" : MessageLookupByLibrary.simpleMessage("系统消息"), "xitongxiaoxi" : MessageLookupByLibrary.simpleMessage("系统消息"),
"xuni" : MessageLookupByLibrary.simpleMessage("虚拟"), "xuni" : MessageLookupByLibrary.simpleMessage("虚拟"),
"yiduihuan" : MessageLookupByLibrary.simpleMessage("已兑换"), "yiduihuan" : MessageLookupByLibrary.simpleMessage("已兑换"),
"yiduihuanjian" : m24, "yiduihuanjian" : m23,
"yifahuo" : MessageLookupByLibrary.simpleMessage("已发货"), "yifahuo" : MessageLookupByLibrary.simpleMessage("已发货"),
"yihujiaoqishou" : MessageLookupByLibrary.simpleMessage("已呼叫骑手"), "yihujiaoqishou" : MessageLookupByLibrary.simpleMessage("已呼叫骑手"),
"yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"), "yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"),
"yingyeshijian" : m25, "yingyeshijian" : m24,
"yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"), "yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"),
"yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "), "yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "),
"yishijiao" : MessageLookupByLibrary.simpleMessage("已失效"), "yishijiao" : MessageLookupByLibrary.simpleMessage("已失效"),
@ -358,10 +356,10 @@ class MessageLookup extends MessageLookupByLibrary {
"youhuiquan" : MessageLookupByLibrary.simpleMessage("优惠券"), "youhuiquan" : MessageLookupByLibrary.simpleMessage("优惠券"),
"youhuiquanlingqu" : MessageLookupByLibrary.simpleMessage("优惠券领取"), "youhuiquanlingqu" : MessageLookupByLibrary.simpleMessage("优惠券领取"),
"youhuiquanwufajileijifen" : MessageLookupByLibrary.simpleMessage("优惠金额无法累积积分,订单撤销或其他原因造成的未成功支付的订单,无法获得对应的积分。"), "youhuiquanwufajileijifen" : MessageLookupByLibrary.simpleMessage("优惠金额无法累积积分,订单撤销或其他原因造成的未成功支付的订单,无法获得对应的积分。"),
"youxiaoqizhi" : m26, "youxiaoqizhi" : m25,
"yuan" : m27, "yuan" : m26,
"yue" : MessageLookupByLibrary.simpleMessage("余额"), "yue" : MessageLookupByLibrary.simpleMessage("余额"),
"yue_" : m28, "yue_" : m27,
"yuemingxi" : MessageLookupByLibrary.simpleMessage("余额明细"), "yuemingxi" : MessageLookupByLibrary.simpleMessage("余额明细"),
"yuyan" : MessageLookupByLibrary.simpleMessage("语言"), "yuyan" : MessageLookupByLibrary.simpleMessage("语言"),
"zaixiankefu" : MessageLookupByLibrary.simpleMessage("在线客服"), "zaixiankefu" : MessageLookupByLibrary.simpleMessage("在线客服"),
@ -382,6 +380,6 @@ class MessageLookup extends MessageLookupByLibrary {
"zitishijian" : MessageLookupByLibrary.simpleMessage("自提时间"), "zitishijian" : MessageLookupByLibrary.simpleMessage("自提时间"),
"zuanshihuiyuan" : MessageLookupByLibrary.simpleMessage("钻石会员"), "zuanshihuiyuan" : MessageLookupByLibrary.simpleMessage("钻石会员"),
"zuorenwudejifen" : MessageLookupByLibrary.simpleMessage("做任务得积分"), "zuorenwudejifen" : MessageLookupByLibrary.simpleMessage("做任务得积分"),
"zuozhe" : m29 "zuozhe" : m28
}; };
} }

44
lib/generated/intl/messages_zh_TW.dart

@ -57,27 +57,25 @@ class MessageLookup extends MessageLookupByLibrary {
static m18(jifen) => "實付積分 ${jifen}積分"; static m18(jifen) => "實付積分 ${jifen}積分";
static m19(date) => "使用日期${date}"; static m19(sui) => "${sui}";
static m20(sui) => "${sui}"; static m20(num) => "完成${num}";
static m21(num) => "完成${num}"; static m21(time) => "下單時間${time}";
static m22(time) => "下單時間${time}"; static m22(time) => "下單時間:${time}";
static m23(time) => "下單時間:${time}"; static m23(jian) => "已兌換${jian}";
static m24(jian) => "已兌換${jian}"; static m24(time) => "營業時間: ${time}";
static m25(time) => "營業時間: ${time}"; static m25(date) => "有效期至${date}";
static m26(date) => "有效期至${date}"; static m26(yuan) => "${yuan}";
static m27(yuan) => "${yuan}"; static m27(yue) => "餘額${yue}";
static m28(yue) => "餘額${yue}"; static m28(zuozhe) => "作者${zuozhe}";
static m29(zuozhe) => "作者${zuozhe}";
final messages = _notInlinedMessages(_notInlinedMessages); final messages = _notInlinedMessages(_notInlinedMessages);
static _notInlinedMessages(_) => <String, Function> { static _notInlinedMessages(_) => <String, Function> {
@ -280,7 +278,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shimingrenzheng" : MessageLookupByLibrary.simpleMessage("實名認證"), "shimingrenzheng" : MessageLookupByLibrary.simpleMessage("實名認證"),
"shixiaoquan" : MessageLookupByLibrary.simpleMessage("失效券"), "shixiaoquan" : MessageLookupByLibrary.simpleMessage("失效券"),
"shixiaoyouhuiquan" : MessageLookupByLibrary.simpleMessage("失效优惠券"), "shixiaoyouhuiquan" : MessageLookupByLibrary.simpleMessage("失效优惠券"),
"shiyongriqi" : m19, "shiyongriqi" : MessageLookupByLibrary.simpleMessage("使用日期"),
"shiyongshuoming" : MessageLookupByLibrary.simpleMessage("使用说明"), "shiyongshuoming" : MessageLookupByLibrary.simpleMessage("使用说明"),
"shiyongtiaojian" : MessageLookupByLibrary.simpleMessage("使用条件"), "shiyongtiaojian" : MessageLookupByLibrary.simpleMessage("使用条件"),
"shouhuodizhi" : MessageLookupByLibrary.simpleMessage("收貨地址"), "shouhuodizhi" : MessageLookupByLibrary.simpleMessage("收貨地址"),
@ -291,7 +289,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shuaxinyue" : MessageLookupByLibrary.simpleMessage("刷新餘額"), "shuaxinyue" : MessageLookupByLibrary.simpleMessage("刷新餘額"),
"shuaxinzhong" : MessageLookupByLibrary.simpleMessage("刷新中...."), "shuaxinzhong" : MessageLookupByLibrary.simpleMessage("刷新中...."),
"shuruzhifumima" : MessageLookupByLibrary.simpleMessage("輸入支付密碼"), "shuruzhifumima" : MessageLookupByLibrary.simpleMessage("輸入支付密碼"),
"sui" : m20, "sui" : m19,
"tijiao" : MessageLookupByLibrary.simpleMessage("提交"), "tijiao" : MessageLookupByLibrary.simpleMessage("提交"),
"tingchewei" : MessageLookupByLibrary.simpleMessage("停車位"), "tingchewei" : MessageLookupByLibrary.simpleMessage("停車位"),
"tixian" : MessageLookupByLibrary.simpleMessage("提現"), "tixian" : MessageLookupByLibrary.simpleMessage("提現"),
@ -302,7 +300,7 @@ class MessageLookup extends MessageLookupByLibrary {
"tuikuan" : MessageLookupByLibrary.simpleMessage("退款"), "tuikuan" : MessageLookupByLibrary.simpleMessage("退款"),
"waisong" : MessageLookupByLibrary.simpleMessage("外送"), "waisong" : MessageLookupByLibrary.simpleMessage("外送"),
"wancheng" : MessageLookupByLibrary.simpleMessage("完成"), "wancheng" : MessageLookupByLibrary.simpleMessage("完成"),
"wancheng_" : m21, "wancheng_" : m20,
"wanchengyicixiadan" : MessageLookupByLibrary.simpleMessage("完成一次下單"), "wanchengyicixiadan" : MessageLookupByLibrary.simpleMessage("完成一次下單"),
"wanshanshengrixinxi_nl" : MessageLookupByLibrary.simpleMessage("完善生日資訊後自動生成 "), "wanshanshengrixinxi_nl" : MessageLookupByLibrary.simpleMessage("完善生日資訊後自動生成 "),
"wanshanshengrixinxi_yhq" : MessageLookupByLibrary.simpleMessage("完善生日資訊得專屬優惠劵 "), "wanshanshengrixinxi_yhq" : MessageLookupByLibrary.simpleMessage("完善生日資訊得專屬優惠劵 "),
@ -320,8 +318,8 @@ class MessageLookup extends MessageLookupByLibrary {
"wodeshengri" : MessageLookupByLibrary.simpleMessage("我的生日"), "wodeshengri" : MessageLookupByLibrary.simpleMessage("我的生日"),
"wodexiaoxi" : MessageLookupByLibrary.simpleMessage("我的消息"), "wodexiaoxi" : MessageLookupByLibrary.simpleMessage("我的消息"),
"wuliuxinxi" : MessageLookupByLibrary.simpleMessage("物流信息"), "wuliuxinxi" : MessageLookupByLibrary.simpleMessage("物流信息"),
"xiadanshijian" : m22, "xiadanshijian" : m21,
"xiadanshijian_" : m23, "xiadanshijian_" : m22,
"xialashuaxin" : MessageLookupByLibrary.simpleMessage("下拉刷新"), "xialashuaxin" : MessageLookupByLibrary.simpleMessage("下拉刷新"),
"xiangji" : MessageLookupByLibrary.simpleMessage("相機"), "xiangji" : MessageLookupByLibrary.simpleMessage("相機"),
"xiangjitishixinxi" : MessageLookupByLibrary.simpleMessage("為了您可以在使用過程中進行分享,希望您使用HISAPP時讓我們使用相機功能 "), "xiangjitishixinxi" : MessageLookupByLibrary.simpleMessage("為了您可以在使用過程中進行分享,希望您使用HISAPP時讓我們使用相機功能 "),
@ -336,11 +334,11 @@ class MessageLookup extends MessageLookupByLibrary {
"xitongxiaoxi" : MessageLookupByLibrary.simpleMessage("系統消息"), "xitongxiaoxi" : MessageLookupByLibrary.simpleMessage("系統消息"),
"xuni" : MessageLookupByLibrary.simpleMessage("虛擬"), "xuni" : MessageLookupByLibrary.simpleMessage("虛擬"),
"yiduihuan" : MessageLookupByLibrary.simpleMessage("已兌換"), "yiduihuan" : MessageLookupByLibrary.simpleMessage("已兌換"),
"yiduihuanjian" : m24, "yiduihuanjian" : m23,
"yifahuo" : MessageLookupByLibrary.simpleMessage("已發貨"), "yifahuo" : MessageLookupByLibrary.simpleMessage("已發貨"),
"yihujiaoqishou" : MessageLookupByLibrary.simpleMessage("已呼叫騎手"), "yihujiaoqishou" : MessageLookupByLibrary.simpleMessage("已呼叫騎手"),
"yikexiao" : MessageLookupByLibrary.simpleMessage("已核銷"), "yikexiao" : MessageLookupByLibrary.simpleMessage("已核銷"),
"yingyeshijian" : m25, "yingyeshijian" : m24,
"yiqiandao" : MessageLookupByLibrary.simpleMessage("已簽到"), "yiqiandao" : MessageLookupByLibrary.simpleMessage("已簽到"),
"yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "), "yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "),
"yishijiao" : MessageLookupByLibrary.simpleMessage("已失效"), "yishijiao" : MessageLookupByLibrary.simpleMessage("已失效"),
@ -358,10 +356,10 @@ class MessageLookup extends MessageLookupByLibrary {
"youhuiquan" : MessageLookupByLibrary.simpleMessage("優惠券"), "youhuiquan" : MessageLookupByLibrary.simpleMessage("優惠券"),
"youhuiquanlingqu" : MessageLookupByLibrary.simpleMessage("優惠券領取"), "youhuiquanlingqu" : MessageLookupByLibrary.simpleMessage("優惠券領取"),
"youhuiquanwufajileijifen" : MessageLookupByLibrary.simpleMessage("優惠金額無法累積積分,訂單撤銷或其他原因造成的未成功支付的訂單,無法獲得對應的積分。"), "youhuiquanwufajileijifen" : MessageLookupByLibrary.simpleMessage("優惠金額無法累積積分,訂單撤銷或其他原因造成的未成功支付的訂單,無法獲得對應的積分。"),
"youxiaoqizhi" : m26, "youxiaoqizhi" : m25,
"yuan" : m27, "yuan" : m26,
"yue" : MessageLookupByLibrary.simpleMessage("餘額"), "yue" : MessageLookupByLibrary.simpleMessage("餘額"),
"yue_" : m28, "yue_" : m27,
"yuemingxi" : MessageLookupByLibrary.simpleMessage("餘額明細"), "yuemingxi" : MessageLookupByLibrary.simpleMessage("餘額明細"),
"yuyan" : MessageLookupByLibrary.simpleMessage("語言"), "yuyan" : MessageLookupByLibrary.simpleMessage("語言"),
"zaixiankefu" : MessageLookupByLibrary.simpleMessage("在線客服"), "zaixiankefu" : MessageLookupByLibrary.simpleMessage("在線客服"),
@ -382,6 +380,6 @@ class MessageLookup extends MessageLookupByLibrary {
"zitishijian" : MessageLookupByLibrary.simpleMessage("自提時間"), "zitishijian" : MessageLookupByLibrary.simpleMessage("自提時間"),
"zuanshihuiyuan" : MessageLookupByLibrary.simpleMessage("鑽石會員"), "zuanshihuiyuan" : MessageLookupByLibrary.simpleMessage("鑽石會員"),
"zuorenwudejifen" : MessageLookupByLibrary.simpleMessage("做任務得積分"), "zuorenwudejifen" : MessageLookupByLibrary.simpleMessage("做任務得積分"),
"zuozhe" : m29 "zuozhe" : m28
}; };
} }

400
lib/home/founder_story_page.dart

@ -1,8 +1,8 @@
import 'package:flutter/cupertino.dart'; import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart'; import 'package:flutter/material.dart';
import 'package:huixiang/generated/l10n.dart';
import 'package:huixiang/utils/MyPainter.dart'; import 'package:huixiang/utils/MyPainter.dart';
import 'package:huixiang/view_widget/separator.dart'; import 'package:huixiang/view_widget/separator.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
class FounderStoryPage extends StatefulWidget { class FounderStoryPage extends StatefulWidget {
@override @override
@ -27,7 +27,7 @@ class _FounderStoryPage extends State<FounderStoryPage> {
}, },
child: Container( child: Container(
alignment: Alignment.centerRight, alignment: Alignment.centerRight,
margin: EdgeInsets.only(left: 10), margin: EdgeInsets.only(left: 10.w),
padding: EdgeInsets.all(6), padding: EdgeInsets.all(6),
child: Icon( child: Icon(
Icons.arrow_back_ios, Icons.arrow_back_ios,
@ -36,8 +36,8 @@ class _FounderStoryPage extends State<FounderStoryPage> {
), ),
), ),
), ),
titleSpacing: 2, titleSpacing: 2.w,
leadingWidth: 56, leadingWidth: 56.w,
automaticallyImplyLeading: true, automaticallyImplyLeading: true,
), ),
body: Container( body: Container(
@ -47,7 +47,7 @@ class _FounderStoryPage extends State<FounderStoryPage> {
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,
boxShadow: [ boxShadow: [
@ -62,74 +62,101 @@ class _FounderStoryPage extends State<FounderStoryPage> {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Image.asset("assets/image/icon_story_bj.png",alignment: Alignment.center,), Image.asset(
"assets/image/icon_story_bj.png",
alignment: Alignment.center,
),
SizedBox( SizedBox(
height: 16, height: 16,
), ),
Text("关于创始人", Text("关于创始人",
style: TextStyle( style:
fontSize: 24, TextStyle(fontSize: 24, color: Color(0xff565656))),
color: Color(0xff565656))),
SizedBox( SizedBox(
height: 18, height: 18,
), ),
Container( Container(
width: double.infinity, width: double.infinity,
child:Stack( child: Stack(
children: [ children: [
RichText( RichText(
textAlign: TextAlign.start, textAlign: TextAlign.start,
text: TextSpan( text: TextSpan(
text: "1993年,台胞李旭清在台湾创建“一心回乡”团队,吸引包括蔡三益在内的30余位伙伴加入。" text:
"他们致力于实践自然生态农耕,创造与环境共存共荣的绿色发展模式。经过多年探索,形成三产融合的完整产业链和成熟运营模式。", "1993年,台胞李旭清在台湾创建“一心回乡”团队,吸引包括蔡三益在内的30余位伙伴加入。"
style: TextStyle(color:Color(0xFF1A1A1A), fontSize: 12,height: 1.5), "他们致力于实践自然生态农耕,创造与环境共存共荣的绿色发展模式。经过多年探索,形成三产融合的完整产业链和成熟运营模式。",
)), style: TextStyle(
Padding(padding: EdgeInsets.only(top: 50),child: Align( color: Color(0xFF1A1A1A),
alignment: Alignment.bottomRight, fontSize: 12,
child:Image.asset("assets/image/icon_story_1.png",width: 222,height: 52,), height: 1.5),
),), )),
], Padding(
padding: EdgeInsets.only(top: 50),
child: Align(
alignment: Alignment.bottomRight,
child: Image.asset(
"assets/image/icon_story_1.png",
width: 222,
height: 52,
),
),
), ),
), ],
),
),
SizedBox( SizedBox(
height: 16, height: 16,
), ),
RichText( RichText(
text: TextSpan( text: TextSpan(
text: "2018年在台湾生活了五十七年的李旭清女士决定回到父亲的家乡湖北寻根。在这里为了延续台湾回乡的经验,李姐在湖北武汉创立了,与此同行的还有李姐的两个女儿。" text:
"为了推广更多的好食物,让更多的人参与到环境保护中,一心回乡遇到了知音,在大力支持下,“海峡姐妹餐饮诞生了!", "2018年在台湾生活了五十七年的李旭清女士决定回到父亲的家乡湖北寻根。在这里为了延续台湾回乡的经验,李姐在湖北武汉创立了,与此同行的还有李姐的两个女儿。"
style: TextStyle(color:Color(0xFF1A1A1A), fontSize: 12,height: 1.5), "为了推广更多的好食物,让更多的人参与到环境保护中,一心回乡遇到了知音,在大力支持下,“海峡姐妹餐饮诞生了!",
)), style: TextStyle(
Image.asset("assets/image/icon_story_2.png",alignment: Alignment.centerRight,), color: Color(0xFF1A1A1A), fontSize: 12, height: 1.5),
)),
Image.asset(
"assets/image/icon_story_2.png",
alignment: Alignment.centerRight,
),
SizedBox( SizedBox(
height: 16, height: 16,
), ),
Image.asset("assets/image/laoban.png", Image.asset(
"assets/image/laoban.png",
fit: BoxFit.cover, fit: BoxFit.cover,
width: double.infinity, width: double.infinity,
height: 228,), height: 228,
),
SizedBox( SizedBox(
height: 50, height: 50,
), ),
Image.asset("assets/image/icon_story_bj.png",alignment: Alignment.center,), Image.asset(
"assets/image/icon_story_bj.png",
alignment: Alignment.center,
),
SizedBox( SizedBox(
height: 16, height: 16,
), ),
Text("回乡之路", Text("回乡之路",
style: TextStyle( style:
fontSize: 24, TextStyle(fontSize: 24, color: Color(0xff565656))),
color: Color(0xff565656))),
SizedBox( SizedBox(
height: 20, height: 20,
), ),
_textWidget("1994年,为推广生机饮食,在台中逢甲大学开台湾第一家「青青小镇」自然蔬食餐厅。"), _textWidget("1994年,为推广生机饮食,在台中逢甲大学开台湾第一家「青青小镇」自然蔬食餐厅。"),
_textWidget("1997年,为了实践减碳生活,邀约一群大学应届毕业生共同生活彼此学习,落实自然饮食新生活,开始推动有机小铺与小区讲座的教育推广模式。"), _textWidget(
_textWidget("2000年 为推广自然饮食概念,及照顾有机农民,开始做保价保证,成立「甘露自然蔬食餐厅」。"), "1997年,为了实践减碳生活,邀约一群大学应届毕业生共同生活彼此学习,落实自然饮食新生活,开始推动有机小铺与小区讲座的教育推广模式。"),
_textWidget("2005年,不忍农村凋零、土地被农药化肥毒化,带领年轻伙伴回乡购地,成立「回乡有机生活农场」,实践自然生态农耕,以复育生态、改良土壤为目的,创造一个与万物和谐共生的农耕模式。"), _textWidget(
Padding(padding: EdgeInsets.only(bottom: 20,left: 18),child:Text("", "2000年 为推广自然饮食概念,及照顾有机农民,开始做保价保证,成立「甘露自然蔬食餐厅」。"),
style: TextStyle( _textWidget(
fontSize: 16, "2005年,不忍农村凋零、土地被农药化肥毒化,带领年轻伙伴回乡购地,成立「回乡有机生活农场」,实践自然生态农耕,以复育生态、改良土壤为目的,创造一个与万物和谐共生的农耕模式。"),
color: Color(0xff565656))),), Padding(
padding: EdgeInsets.only(bottom: 20, left: 18),
child: Text("",
style: TextStyle(
fontSize: 16, color: Color(0xff565656))),
),
_textWidget("2019年,在武汉成立湖北海峡姐妹餐饮有限公司。" _textWidget("2019年,在武汉成立湖北海峡姐妹餐饮有限公司。"
"成为百年川椒火锅(光谷店)运营方,通过“素食煮义”和“蔬食之力”推广有机永续美好生活," "成为百年川椒火锅(光谷店)运营方,通过“素食煮义”和“蔬食之力”推广有机永续美好生活,"
"打造“新国民火锅”。在“未来之光”和“创意天地”开设的「海峡姐妹」茶吧,坚持纯天然的食材," "打造“新国民火锅”。在“未来之光”和“创意天地”开设的「海峡姐妹」茶吧,坚持纯天然的食材,"
@ -137,26 +164,32 @@ class _FounderStoryPage extends State<FounderStoryPage> {
_textWidget("2019年,在武汉江夏成立旭清回乡生态农业发展有限公司," _textWidget("2019年,在武汉江夏成立旭清回乡生态农业发展有限公司,"
"在山坡街拥有1200亩农业生产基地," "在山坡街拥有1200亩农业生产基地,"
"将台湾实践多年并有成功经验的生态农法, 天然食品加工技术, 农业旅游输出落地。"), "将台湾实践多年并有成功经验的生态农法, 天然食品加工技术, 农业旅游输出落地。"),
Image.asset("assets/image/icon_story_bj.png",alignment: Alignment.center,), Image.asset(
"assets/image/icon_story_bj.png",
alignment: Alignment.center,
),
SizedBox( SizedBox(
height: 16, height: 16,
), ),
Text("早期团队", Text("早期团队",
style: TextStyle( style:
fontSize: 24, TextStyle(fontSize: 24, color: Color(0xff565656))),
color: Color(0xff565656))),
SizedBox( SizedBox(
height: 26, height: 26,
), ),
Image.asset("assets/image/icon_story_td.png", Image.asset(
"assets/image/icon_story_td.png",
fit: BoxFit.cover, fit: BoxFit.cover,
width: double.infinity, width: double.infinity,
height: 228,), height: 228,
),
SizedBox( SizedBox(
height: 24, height: 24,
), ),
Padding( Padding(
padding: EdgeInsets.only(top: 10,), padding: EdgeInsets.only(
top: 10,
),
child: MySeparator( child: MySeparator(
width: 5, width: 5,
height: 2, height: 2,
@ -179,15 +212,19 @@ class _FounderStoryPage extends State<FounderStoryPage> {
spreadRadius: 0) spreadRadius: 0)
], ],
), ),
child:RichText( child: RichText(
text: TextSpan( text: TextSpan(
text: "回乡有机团队(早期照片),当年,他们也都是企业高管、IT精英、大学毕业生。日出而作,日落而息,结婚生子," text:
"子女们一起玩耍,上学读书。转眼间,孩子们都已长大,有些大学毕业后也加入了“回乡”。", "回乡有机团队(早期照片),当年,他们也都是企业高管、IT精英、大学毕业生。日出而作,日落而息,结婚生子,"
style: TextStyle(color:Colors.white, fontSize: 12,height: 1.5), "子女们一起玩耍,上学读书。转眼间,孩子们都已长大,有些大学毕业后也加入了“回乡”。",
)), style: TextStyle(
color: Colors.white, fontSize: 12, height: 1.5),
)),
), ),
Padding( Padding(
padding: EdgeInsets.only(top: 10,), padding: EdgeInsets.only(
top: 10,
),
child: MySeparator( child: MySeparator(
width: 5, width: 5,
height: 2, height: 2,
@ -198,17 +235,19 @@ class _FounderStoryPage extends State<FounderStoryPage> {
height: 27, height: 27,
), ),
Text("传递理念", Text("传递理念",
style: TextStyle( style:
fontSize: 24, TextStyle(fontSize: 24, color: Color(0xff565656))),
color: Color(0xff565656))),
SizedBox( SizedBox(
height: 20, height: 20,
), ),
Row( Row(
children: [ children: [
_ideaWidget("友爱", "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), _ideaWidget("友爱",
_ideaWidget("友爱", "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"),
_ideaWidget("友爱", "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), _ideaWidget("友爱",
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"),
_ideaWidget("友爱",
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"),
], ],
), ),
SizedBox( SizedBox(
@ -216,9 +255,12 @@ class _FounderStoryPage extends State<FounderStoryPage> {
), ),
Row( Row(
children: [ children: [
_ideaWidget("友爱", "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), _ideaWidget("友爱",
_ideaWidget("友爱", "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"),
_ideaWidget("友爱", "https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"), _ideaWidget("友爱",
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"),
_ideaWidget("友爱",
"https://tva1.sinaimg.cn/large/006y8mN6gy1g7aa03bmfpj3069069mx8.jpg"),
], ],
), ),
SizedBox( SizedBox(
@ -244,11 +286,14 @@ class _FounderStoryPage extends State<FounderStoryPage> {
mainAxisAlignment: MainAxisAlignment.start, mainAxisAlignment: MainAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
children: [ children: [
Padding(padding: EdgeInsets.all(16),child:Text("评论 (58) 喜欢 (58)", Padding(
style: TextStyle( padding: EdgeInsets.all(16),
fontSize: 16, child: Text("评论 (58) 喜欢 (58)",
fontWeight: FontWeight.bold, style: TextStyle(
color: Color(0xff1A1A1A))),), fontSize: 16,
fontWeight: FontWeight.bold,
color: Color(0xff1A1A1A))),
),
SizedBox( SizedBox(
height: 600, height: 600,
child: ListView.builder( child: ListView.builder(
@ -257,11 +302,9 @@ class _FounderStoryPage extends State<FounderStoryPage> {
physics: BouncingScrollPhysics(), physics: BouncingScrollPhysics(),
itemBuilder: (context, position) { itemBuilder: (context, position) {
return _commentItem(position); return _commentItem(position);
}, },
), ),
), ),
], ],
), ),
), ),
@ -335,122 +378,141 @@ class _FounderStoryPage extends State<FounderStoryPage> {
); );
} }
Widget _textWidget(var text){ Widget _textWidget(var text) {
return Padding(padding: EdgeInsets.only(bottom: 20),child: Row( return Padding(
mainAxisAlignment: MainAxisAlignment.start, padding: EdgeInsets.only(bottom: 20),
crossAxisAlignment: CrossAxisAlignment.start, child: Row(
children: [ mainAxisAlignment: MainAxisAlignment.start,
Text("",style: TextStyle(fontSize: 10,color: Color(0xff32A060)),), crossAxisAlignment: CrossAxisAlignment.start,
SizedBox( children: [
width: 5, Text(
), "",
Expanded(child: Text(text,style: TextStyle(fontSize: 12,color: Colors.black))), style: TextStyle(fontSize: 10, color: Color(0xff32A060)),
], ),
),); SizedBox(
width: 5,
),
Expanded(
child: Text(text,
style: TextStyle(fontSize: 12, color: Colors.black))),
],
),
);
} }
Widget _ideaWidget(var text,var img){ Widget _ideaWidget(var text, var img) {
return Expanded( return Expanded(
flex: 1, flex: 1,
child: Stack( child: Stack(
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
Container( Container(
width: 63, width: 63,
height: 63, height: 63,
child:CircleAvatar( child: CircleAvatar(
radius: 100, radius: 100,
backgroundImage: NetworkImage(img), backgroundImage: NetworkImage(img),
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
child: Text(text,style: TextStyle(fontSize:18,fontWeight: FontWeight.w300,color: Colors.white),) child: Text(
text,
style: TextStyle(
fontSize: 18,
fontWeight: FontWeight.w300,
color: Colors.white),
)),
), ),
), ),
), Container(
Container( width: 73,
width: 73, height: 73,
height: 73, child: CustomPaint(
child: CustomPaint( painter: MyPainter(
painter:MyPainter(lineColor: Color(0xff32A060),width:2,isDividerRound:true), lineColor: Color(0xff32A060), width: 2, isDividerRound: true),
), ),
) )
], ],
),); ),
);
} }
Widget _commentItem(var position) { Widget _commentItem(var position) {
return Container( return Container(
child: Column( child: Column(
children: [ children: [
Padding(padding: EdgeInsets.all(16),child: Row( Padding(
mainAxisAlignment: MainAxisAlignment.spaceBetween, padding: EdgeInsets.all(16),
crossAxisAlignment: CrossAxisAlignment.center, child: Row(
children: [ mainAxisAlignment: MainAxisAlignment.spaceBetween,
ClipOval( crossAxisAlignment: CrossAxisAlignment.center,
child: Image.network( children: [
"https://t7.baidu.com/it/u=2841334870,333581502&fm=193&f=GIF", ClipOval(
fit: BoxFit.cover, child: Image.network(
width: 40, "https://t7.baidu.com/it/u=2841334870,333581502&fm=193&f=GIF",
height: 40, fit: BoxFit.cover,
width: 40,
height: 40,
),
clipBehavior: Clip.hardEdge,
), ),
clipBehavior: Clip.hardEdge, SizedBox(
), width: 12,
SizedBox( ),
width: 12, Expanded(
), child: Container(
Expanded( height: 60,
child: Container( child: Column(
height: 60, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
child: Column( crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.spaceEvenly, children: [
crossAxisAlignment: CrossAxisAlignment.start, Text.rich(
children: [ TextSpan(children: [
Text.rich( TextSpan(
TextSpan(children: [ text: "张三",
TextSpan( style: TextStyle(
text: "张三", fontWeight: FontWeight.bold,
style: TextStyle( fontSize: 14,
fontWeight: FontWeight.bold, color: Colors.black),
fontSize: 14, ),
color: Colors.black), ]),
textDirection: TextDirection.ltr,
),
Text(
"2021.04.12 12:12",
overflow: TextOverflow.ellipsis,
maxLines: 2,
style: TextStyle(
fontSize: 12,
color: Color(0xff808080),
), ),
]), ),
textDirection: TextDirection.ltr, ],
),
),
flex: 1,
),
Container(
alignment: Alignment.topRight,
child: Row(
children: [
Image.asset(
"assets/image/icon_like.png",
width: 16,
height: 16,
), ),
Text( Text(
"2021.04.12 12:12", "58",
overflow: TextOverflow.ellipsis, style:
maxLines: 2, TextStyle(fontSize: 12, color: Color(0xff1A1A1A)),
style: TextStyle(
fontSize: 12,
color: Color(0xff808080),
),
), ),
], ],
), ),
), ),
flex: 1, ],
), ),
Container( ),
alignment: Alignment.topRight,
child: Row(
children: [
Image.asset(
"assets/image/icon_like.png",
width: 16,
height: 16,
),
Text(
"58",
style: TextStyle(fontSize: 12, color: Color(0xff1A1A1A)),
),
],
),
),
],
),),
Padding( Padding(
padding: EdgeInsets.only(left: 68,right: 16), padding: EdgeInsets.only(left: 68, right: 16),
child: Text( child: Text(
"文本,是指书面语言的表现形式,从文学角度说,通常是具有完整、系统含义(Mess…", "文本,是指书面语言的表现形式,从文学角度说,通常是具有完整、系统含义(Mess…",
style: TextStyle(fontSize: 14, color: Color(0xff1A1A1A)), style: TextStyle(fontSize: 14, color: Color(0xff1A1A1A)),
@ -461,7 +523,7 @@ class _FounderStoryPage extends State<FounderStoryPage> {
), ),
Container( Container(
width: double.infinity, width: double.infinity,
margin: EdgeInsets.only(left: 68,right: 16), margin: EdgeInsets.only(left: 68, right: 16),
decoration: new BoxDecoration( decoration: new BoxDecoration(
color: Color(0xffF2F2F2), color: Color(0xffF2F2F2),
borderRadius: BorderRadius.circular(2.0), borderRadius: BorderRadius.circular(2.0),

12
lib/login/login_page.dart

@ -15,7 +15,7 @@ import 'package:huixiang/generated/l10n.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:huixiang/view_widget/loading_view.dart'; import 'package:huixiang/view_widget/loading_view.dart';
// import 'package:photo_view/photo_view.dart'; import 'package:photo_view/photo_view.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
class LoginPage extends StatefulWidget { class LoginPage extends StatefulWidget {
@ -375,11 +375,11 @@ class _MyLoginPageState extends State<LoginPage> with TickerProviderStateMixin {
child: Stack( child: Stack(
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
// PhotoView( PhotoView(
// imageProvider: AssetImage("assets/image/laoban.png"), imageProvider: AssetImage("assets/image/laoban.png"),
// initialScale: Platform.isAndroid ? 1.02 : 1.2, initialScale: Platform.isAndroid ? 1.02 : 1.2,
// basePosition: alignmentProgress, basePosition: alignmentProgress,
// ), ),
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
color: Color(0xFF32A060).withAlpha(changeAlpha), color: Color(0xFF32A060).withAlpha(changeAlpha),

68
lib/main.dart

@ -217,71 +217,3 @@ Map<String, WidgetBuilder> routers = <String, WidgetBuilder>{
// '/router/hot_article_details_page': (context, {arguments}) => HotArticleDetailsPage(), // '/router/hot_article_details_page': (context, {arguments}) => HotArticleDetailsPage(),
// '/router/ui_test': (context, {arguments}) => UITest(), // '/router/ui_test': (context, {arguments}) => UITest(),
}; };
EventBus eventBus = EventBus(sync: true);
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return ScreenUtilInit(
designSize: Size(375, 812),
builder: () => MaterialApp(
debugShowCheckedModeBanner: false,
theme: ThemeData(
primarySwatch: Colors.blue,
textTheme: TextTheme(
button: TextStyle(fontSize: 24.sp),
bodyText1: TextStyle(fontSize: 12.sp),
bodyText2: TextStyle(fontSize: 16.sp),
),
),
// locale: locale,
localeResolutionCallback: (locale, supportedLocales) {
print("locale: $locale");
print("supportedLocales: $supportedLocales");
// Localizations.maybeLocaleOf(context)
return Locale.fromSubtags(languageCode: 'zh', countryCode: 'TW');
},
localizationsDelegates: [
GlobalMaterialLocalizations.delegate,
GlobalCupertinoLocalizations.delegate,
GlobalWidgetsLocalizations.delegate,
S.delegate
],
supportedLocales: S.delegate.supportedLocales,
home: LoginPage(),
onGenerateRoute: (settings) {
final String name = settings.name;
final Function pageContentBuilder = routers[name];
if (pageContentBuilder != null) {
final Route route = MaterialPageRoute(
builder: (context) {
return pageContentBuilder(context,
arguments: settings.arguments);
},
settings: settings,
);
return route;
}
return MaterialPageRoute(
//
builder: (context) {
return LoginPage();
},
settings: settings,
);
},
),
);
}
}
// : zh_Hans_TW
// : zh_Hant_TW
// : zh_Hant_HK
// : zh_Hant_CN
// : zh_Hans_CN
// : en_TW

2
lib/view_widget/new_coupon_widget.dart

@ -173,7 +173,7 @@ class NewCouponWidget extends StatelessWidget {
mainAxisAlignment: MainAxisAlignment.spaceBetween, mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [ children: [
Text( Text(
S.of(context).shiyongriqi(""), S.of(context).shiyongriqi,
style: TextStyle( style: TextStyle(
color: Color(0xFF353535), color: Color(0xFF353535),
fontSize: 10.sp, fontSize: 10.sp,

2
pubspec.yaml

@ -71,7 +71,7 @@ dependencies:
cached_network_image: ^2.0.0 cached_network_image: ^2.0.0
flutter_html: ^1.3.0 #2.1.0 flutter_html: ^1.3.0 #2.1.0
# photo_view: ^0.11.1 photo_view: ^0.11.1
chewie: ^0.12.2 chewie: ^0.12.2
video_player: ^1.0.1 video_player: ^1.0.1

Loading…
Cancel
Save