为桌面端添加返回按钮

This commit is contained in:
toly
2021-12-04 09:15:24 +08:00
parent 11f1ffa09e
commit e77f8717d5
8 changed files with 72 additions and 41 deletions

View File

@@ -44,6 +44,7 @@ class _WidgetDetailPageState extends State<WidgetDetailPage> {
return Scaffold(
endDrawer: CategoryEndDrawer(widget: _modelStack.last),
appBar: AppBar(
leading: BackButton(),
title: Text(_modelStack.last.name),
actions: <Widget>[
_buildToHome(),