From a33cff7406f738ebc0644239b5e28b78cc573eea Mon Sep 17 00:00:00 2001 From: Neeraj Gupta <254676+ua741@users.noreply.github.com> Date: Wed, 4 Sep 2024 11:34:24 +0530 Subject: [PATCH] [mob] Fix icon --- .../ui/notification/update/change_log_page.dart | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/mobile/lib/ui/notification/update/change_log_page.dart b/mobile/lib/ui/notification/update/change_log_page.dart index 02ee66ff39..1c8c69a3d2 100644 --- a/mobile/lib/ui/notification/update/change_log_page.dart +++ b/mobile/lib/ui/notification/update/change_log_page.dart @@ -1,3 +1,5 @@ +import "dart:async"; + import 'package:flutter/material.dart'; import "package:photos/generated/l10n.dart"; import 'package:photos/services/update_service.dart'; @@ -6,7 +8,9 @@ import 'package:photos/ui/components/buttons/button_widget.dart'; import 'package:photos/ui/components/divider_widget.dart'; import 'package:photos/ui/components/models/button_type.dart'; import 'package:photos/ui/components/title_bar_title_widget.dart'; +import "package:photos/ui/growth/referral_screen.dart"; import 'package:photos/ui/notification/update/change_log_entry.dart'; +import "package:photos/utils/navigation_util.dart"; class ChangeLogPage extends StatefulWidget { const ChangeLogPage({ @@ -91,11 +95,16 @@ class _ChangeLogPageState extends State { ButtonWidget( buttonType: ButtonType.trailingIconSecondary, buttonSize: ButtonSize.large, - labelText: S.of(context).rateTheApp, - icon: Icons.favorite_rounded, + labelText: 'Claim referral code', + icon: Icons.arrow_forward_outlined, iconColor: enteColorScheme.primary500, onTap: () async { - await UpdateService.instance.launchReviewUrl(); + unawaited( + routeToPage( + context, + const ReferralScreen(), + ), + ); }, ), const SizedBox(height: 8),