Browse Source

[new]修改首页充值入口

zk 1 year ago
parent
commit
dd532e40fc
3 changed files with 18 additions and 22 deletions
  1. BIN
      assets/images/icon_home_charge.webp
  2. 1 1
      assets/string/base/string.xml
  3. 17 21
      lib/module/home/view.dart

BIN
assets/images/icon_home_charge.webp


+ 1 - 1
assets/string/base/string.xml

@@ -93,7 +93,7 @@
     <string name="record_notification_channel_id">record</string>
     <string name="record_notification_channel_name">录音</string>
     <string name="record_notification_channel_description">用于展示录音状态</string>
-    <string name="home_charge_txt">充电</string>
+    <string name="home_charge_txt">去充值</string>
     <string name="file_choice_size_limit">文件最大不能超过500MB</string>
     <string name="file_audio_duration_cannot_obtained">录音时长无法获取</string>
     <string name="file_audio_duration_limit">录音时长不能超过5小时</string>

+ 17 - 21
lib/module/home/view.dart

@@ -266,28 +266,24 @@ class HomePage extends BasePage<HomePageController> {
 
   GestureDetector buildGoStore() {
     return GestureDetector(
-        child: DecoratedBox(
-            decoration: BoxDecoration(
-              color: "#F6F5F8".toColor(),
-              borderRadius: BorderRadius.circular(32),
+        child: Container(
+          decoration: BoxDecoration(
+            gradient: LinearGradient(
+              colors: ['#FFD3A8'.color, '#FFEDE1'.color, '#FFDBC2'.color],
+              stops: const [0, 0.5, 1.0],
+              begin: Alignment.bottomLeft,
+              end: Alignment.topRight,
             ),
-            child: Padding(
-              padding:
-                  const EdgeInsets.symmetric(horizontal: 10, vertical: 5).w,
-              child: Row(
-                crossAxisAlignment: CrossAxisAlignment.center,
-                children: [
-                  SizedBox(
-                      width: 20.w,
-                      height: 20.w,
-                      child: Assets.images.iconHomeCharge.image()),
-                  SizedBox(width: 2.w),
-                  Text(StringName.homeChargeTxt.tr,
-                      style: TextStyle(
-                          fontSize: 15.sp, color: ColorName.primaryTextColor)),
-                ],
-              ),
-            )),
+            borderRadius: BorderRadius.circular(100),
+          ),
+          padding: const EdgeInsets.symmetric(horizontal: 12, vertical: 8).w,
+          child: Text(StringName.homeChargeTxt.tr,
+              style: TextStyle(
+                  height: 1,
+                  fontSize: 13.sp,
+                  color: '#773C23'.color,
+                  fontWeight: FontWeight.bold)),
+        ),
         onTap: () {
           // accountRepository.logout();
           // ToastUtil.showToast('GoStore');