refactor(client): widgets 颜色迁移到 context.tokens

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
wangjia
2026-06-24 23:12:20 +08:00
parent 1671edd913
commit b37c46fb9c
20 changed files with 151 additions and 137 deletions
+5 -5
View File
@@ -1,5 +1,5 @@
import 'package:flutter/material.dart';
import '../core/theme/app_theme.dart';
import '../core/theme/context_tokens.dart';
class PageScaffold extends StatefulWidget {
final String title;
@@ -54,14 +54,14 @@ class _PageScaffoldState extends State<PageScaffold>
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Container(
color: AppTheme.surface,
color: context.tokens.surface,
child: TabBar(
controller: _controller,
isScrollable: true,
tabAlignment: TabAlignment.start,
labelColor: AppTheme.primary,
unselectedLabelColor: AppTheme.textSecondary,
indicatorColor: AppTheme.primary,
labelColor: context.tokens.primary,
unselectedLabelColor: context.tokens.muted,
indicatorColor: context.tokens.primary,
indicatorWeight: 2,
labelStyle:
const TextStyle(fontSize: 14, fontWeight: FontWeight.w500),