generated from dellevin/template
优化统计界面
This commit is contained in:
@@ -108,17 +108,6 @@ class EncounterPage extends StatelessWidget {
|
||||
child: Column(
|
||||
mainAxisAlignment: MainAxisAlignment.end,
|
||||
children: [
|
||||
Divider(color: colors.outlineVariant, thickness: 0.5),
|
||||
const SizedBox(height: 24),
|
||||
Row(
|
||||
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
||||
children: [
|
||||
_statItem(context, '${movies.length}', '影视', Icons.movie_outlined),
|
||||
_statItem(context, '${books.length}', '书籍', Icons.menu_book_outlined),
|
||||
_statItem(context, '${notes.length}', '笔记', Icons.note_outlined),
|
||||
],
|
||||
),
|
||||
const SizedBox(height: 24),
|
||||
Divider(color: colors.outlineVariant, thickness: 0.5),
|
||||
const SizedBox(height: 24),
|
||||
Text(
|
||||
@@ -161,25 +150,6 @@ class EncounterPage extends StatelessWidget {
|
||||
return '$count';
|
||||
}
|
||||
|
||||
Widget _statItem(BuildContext context, String value, String label, IconData icon) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
return Column(
|
||||
children: [
|
||||
Icon(icon, size: 20, color: colors.onSurface.withValues(alpha: 0.3)),
|
||||
const SizedBox(height: 8),
|
||||
Text(
|
||||
value,
|
||||
style: TextStyle(fontSize: 22, fontWeight: FontWeight.w700, color: colors.onSurface),
|
||||
),
|
||||
const SizedBox(height: 4),
|
||||
Text(
|
||||
label,
|
||||
style: TextStyle(fontSize: 11, color: colors.onSurface.withValues(alpha: 0.4)),
|
||||
),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Widget _recordItem(BuildContext context, String value, String label) {
|
||||
final colors = Theme.of(context).colorScheme;
|
||||
return Column(
|
||||
|
||||
Reference in New Issue
Block a user