fix thread back button behaviour

This commit is contained in:
Salvatore Giordano
2020-11-25 12:50:46 +01:00
parent 9fd7a6a7f8
commit d59e89c700
+1 -1
View File
@@ -85,7 +85,7 @@ class ThreadHeader extends StatelessWidget implements PreferredSizeWidget {
? AspectRatio(
aspectRatio: 1,
child: IconButton(
onPressed: onBackPressed,
onPressed: onBackPressed ?? () => Navigator.pop(context),
icon: StreamSvgIcon.close(
size: 24,
color: Theme.of(context).brightness == Brightness.dark