From fd9120bcaab62114c59b6e1676ceb0886ee2e1a5 Mon Sep 17 00:00:00 2001 From: alichen Date: Sat, 6 Oct 2018 23:11:46 +0800 Subject: [PATCH] change leading in topic --- lib/widget/topic.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/widget/topic.dart b/lib/widget/topic.dart index 0d9a940..46499e4 100644 --- a/lib/widget/topic.dart +++ b/lib/widget/topic.dart @@ -29,7 +29,7 @@ class TopicState extends State with SingleTickerProviderStateMixin{ elevation: 0.0, title: _renderTitle(context, vm), leading: new IconButton(icon: const Icon(Icons.arrow_back, color: Colors.white, size: 20.0), onPressed: () { - Navigator.maybePop(context); + Navigator.of(context).maybePop(); }), actions: [ new IconButton(