diff --git a/lib/my_route.dart b/lib/my_route.dart index e8393d86..0da2e64d 100644 --- a/lib/my_route.dart +++ b/lib/my_route.dart @@ -6,7 +6,13 @@ import 'package:url_launcher/url_launcher.dart' as url_launcher; import 'package:widget_with_codeview/widget_with_codeview.dart'; import './constants.dart' - show APP_NAME, APP_VERSION, GITHUB_URL, kAppIcon, kIsOnMobile, PlatformType; + show + APP_NAME, + APP_VERSION, + GITHUB_URL, + PlatformType, + kAppIcon, + kPlatformType; import './my_app_settings.dart'; import './my_route_search_delegate.dart'; import './routes/about.dart'; @@ -50,13 +56,13 @@ class MyRoute extends StatelessWidget { @override Widget build(BuildContext context) { - final appbarLeading = - (kIsOnMobile || this.routeName == Navigator.defaultRouteName) - ? null - : IconButton( - icon: const Icon(Icons.arrow_back), - onPressed: () => Navigator.of(context).pop(), - ); + final appbarLeading = (kPlatformType == PlatformType.Android || + this.routeName == Navigator.defaultRouteName) + ? null + : IconButton( + icon: const Icon(Icons.arrow_back), + onPressed: () => Navigator.of(context).pop(), + ); return BackdropScaffold( appBar: BackdropAppBar( title: SingleChildScrollView(