|
@@ -279,7 +279,7 @@ class _StakingOrderCard extends StatelessWidget {
|
|
|
return AppColors.brand;
|
|
return AppColors.brand;
|
|
|
}
|
|
}
|
|
|
if (order.status == 2) {
|
|
if (order.status == 2) {
|
|
|
- return const Color(0xFF8E949F);
|
|
|
|
|
|
|
+ return const Color(0xFF12161C);
|
|
|
}
|
|
}
|
|
|
return const Color(0xFF12161C);
|
|
return const Color(0xFF12161C);
|
|
|
}
|
|
}
|
|
@@ -289,7 +289,7 @@ class _StakingOrderCard extends StatelessWidget {
|
|
|
return const Color(0xFF12161C);
|
|
return const Color(0xFF12161C);
|
|
|
}
|
|
}
|
|
|
if (order.status == 2) {
|
|
if (order.status == 2) {
|
|
|
- return const Color(0xFF12161C);
|
|
|
|
|
|
|
+ return AppColors.brand;
|
|
|
}
|
|
}
|
|
|
return AppColors.brand;
|
|
return AppColors.brand;
|
|
|
}
|
|
}
|
|
@@ -385,14 +385,27 @@ class _StakingOrderCard extends StatelessWidget {
|
|
|
color: _statusBackgroundColor(),
|
|
color: _statusBackgroundColor(),
|
|
|
borderRadius: BorderRadius.circular(999),
|
|
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(),
|
|
|
|
|
+ ),
|
|
|
|
|
+ ],
|
|
|
|
|
+ ],
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
],
|
|
],
|