Fix decryptData null type error and live analytics overflow
This commit is contained in:
@@ -137,6 +137,7 @@ class _StatCard extends StatelessWidget {
|
||||
border: Border.all(color: AppColor.divider),
|
||||
),
|
||||
child: Column(
|
||||
mainAxisSize: MainAxisSize.min,
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
children: [
|
||||
Row(
|
||||
@@ -150,22 +151,30 @@ class _StatCard extends StatelessWidget {
|
||||
style: const TextStyle(
|
||||
fontSize: 11,
|
||||
color: AppColor.textMuted,
|
||||
fontWeight: FontWeight.w600)),
|
||||
fontWeight: FontWeight.w600),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis),
|
||||
),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 8),
|
||||
Text(value,
|
||||
style: const TextStyle(
|
||||
fontSize: 24,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: AppColor.textPrimary)),
|
||||
const SizedBox(height: 4),
|
||||
FittedBox(
|
||||
fit: BoxFit.scaleDown,
|
||||
alignment: Alignment.centerRight,
|
||||
child: Text(value,
|
||||
style: const TextStyle(
|
||||
fontSize: 22,
|
||||
fontWeight: FontWeight.w700,
|
||||
color: AppColor.textPrimary)),
|
||||
),
|
||||
if (sub != null) ...[
|
||||
const SizedBox(height: 4),
|
||||
const SizedBox(height: 2),
|
||||
Text(sub!,
|
||||
style: TextStyle(
|
||||
fontSize: 11,
|
||||
color: subColor ?? AppColor.textSecondary)),
|
||||
fontSize: 10,
|
||||
color: subColor ?? AppColor.textSecondary),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis),
|
||||
],
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user