Skip to content

Commit

Permalink
Show 'open in new' icon for app rating
Browse files Browse the repository at this point in the history
  • Loading branch information
Xennis committed Jul 18, 2024
1 parent 1401acb commit 710d753
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions green_walking/lib/widgets/navigation_drawer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -92,11 +92,16 @@ class _RateAppListTile extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (Platform.isAndroid) {
final AppLocalizations l10n = AppLocalizations.of(context)!;
final AppLocalizations locale = AppLocalizations.of(context)!;
return ListTile(
leading: const Icon(Icons.star),
title: Text(l10n.rateApp),
onTap: () => launchUrl(appPlayStoreUrl, mode: LaunchMode.externalApplication));
leading: const Icon(Icons.star),
title: Text(locale.rateApp),
onTap: () => launchUrl(appPlayStoreUrl, mode: LaunchMode.externalApplication),
trailing: Icon(
Icons.open_in_new,
semanticLabel: locale.openInBrowserSemanticLabel,
),
);
}
return Container();
}
Expand Down

0 comments on commit 710d753

Please sign in to comment.