Forráskód Böngészése

锁仓界面修改

yangjia 1 hónapja
szülő
commit
c2be067c1f
1 módosított fájl, 23 hozzáadás és 10 törlés
  1. 23 10
      lib/presentation/screens/asset/asset_staking_tab.dart

+ 23 - 10
lib/presentation/screens/asset/asset_staking_tab.dart

@@ -279,7 +279,7 @@ class _StakingOrderCard extends StatelessWidget {
       return AppColors.brand;
     }
     if (order.status == 2) {
-      return const Color(0xFF8E949F);
+      return const Color(0xFF12161C);
     }
     return const Color(0xFF12161C);
   }
@@ -289,7 +289,7 @@ class _StakingOrderCard extends StatelessWidget {
       return const Color(0xFF12161C);
     }
     if (order.status == 2) {
-      return const Color(0xFF12161C);
+      return AppColors.brand;
     }
     return AppColors.brand;
   }
@@ -385,14 +385,27 @@ class _StakingOrderCard extends StatelessWidget {
                   color: _statusBackgroundColor(),
                   borderRadius: BorderRadius.circular(999),
                 ),
-                child: Text(
-                  _statusLabel(l10n),
-                  style: TextStyle(
-                    color: _statusTextColor(),
-                    fontSize: 12,
-                    fontWeight: FontWeight.w600,
-                    height: 1,
-                  ),
+                child: Row(
+                  mainAxisSize: MainAxisSize.min,
+                  children: [
+                    Text(
+                      _statusLabel(l10n),
+                      style: TextStyle(
+                        color: _statusTextColor(),
+                        fontSize: 12,
+                        fontWeight: FontWeight.w600,
+                        height: 1,
+                      ),
+                    ),
+                    if (order.status != 0) ...[
+                      const SizedBox(width: 2),
+                      Icon(
+                        Icons.chevron_right,
+                        size: 14,
+                        color: _statusTextColor(),
+                      ),
+                    ],
+                  ],
                 ),
               ),
             ],