factor:布局颜色重构

This commit is contained in:
2025-11-21 14:11:35 +08:00
parent 8f0f641d37
commit e38e26e685
18 changed files with 572 additions and 179 deletions

View File

@@ -43,7 +43,7 @@ class _BlogDetailPageState extends State<BlogDetailPage> {
return FloatingActionButton(
onPressed: () => setState(() => _showToc = !_showToc),
mini: true,
backgroundColor: Theme.of(context).primaryColor,
backgroundColor: Theme.of(context).colorScheme.primary,
child: Icon(_showToc ? Icons.close : Icons.list, color: Colors.white),
);
} else {
@@ -73,7 +73,11 @@ class _BlogDetailPageState extends State<BlogDetailPage> {
),
],
),
buildTocPanel(tocController: tocController, showToc: _showToc),
buildTocPanel(
context: context,
tocController: tocController,
showToc: _showToc,
),
],
);
}