Privacy policy Issue fixed

This commit is contained in:
Kaustav Chaudhuri 2023-05-30 14:28:51 +05:30
parent 51a1dd5db5
commit 33ace30e6b
3 changed files with 8 additions and 5 deletions

View File

@ -8,6 +8,7 @@ using Microsoft.Maui;
using Microsoft.Maui.Controls; using Microsoft.Maui.Controls;
using GMCabsDriverAssistantSolution.ViewModels; using GMCabsDriverAssistantSolution.ViewModels;
using GMCabsDriverAssistant.Models; using GMCabsDriverAssistant.Models;
using CommunityToolkit.Maui.Views;
namespace GMCabsDriverAssistant.ViewModels namespace GMCabsDriverAssistant.ViewModels
{ {
@ -116,7 +117,8 @@ namespace GMCabsDriverAssistant.ViewModels
private void OnPrivacyPolicyClicked(object obj) private void OnPrivacyPolicyClicked(object obj)
{ {
Shell.Current.FlyoutIsPresented = false; Shell.Current.FlyoutIsPresented = false;
// _page.Navigation.ShowPopup(new PrivacyPolicyDialogPage()); // _page.Navigation.ShowPopup(new PrivacyPolicyDialogPage());
Shell.Current.ShowPopup(new PrivacyPolicyDialogPage());
} }
#endregion #endregion
} }

View File

@ -3,7 +3,7 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="GMCabsDriverAssistantSolution.Views.PrivacyPolicyDialogPage" x:Class="GMCabsDriverAssistantSolution.Views.PrivacyPolicyDialogPage"
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit" xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
Size="300,300" Size="{OnIdiom Phone='350,520',Tablet='800,500'}"
Color="Transparent"> Color="Transparent">
<Frame BackgroundColor="White" CornerRadius="10"> <Frame BackgroundColor="White" CornerRadius="10">
<StackLayout Orientation="Vertical"> <StackLayout Orientation="Vertical">
@ -15,7 +15,7 @@
</Label> </Label>
</StackLayout> </StackLayout>
<StackLayout VerticalOptions="CenterAndExpand"> <StackLayout VerticalOptions="CenterAndExpand">
<WebView x:Name="privacyPolicyView" WidthRequest="1000" HeightRequest="1000" /> <WebView x:Name="privacyPolicyView" WidthRequest="1900" HeightRequest="1900" />
</StackLayout> </StackLayout>
</StackLayout> </StackLayout>
</Frame> </Frame>

View File

@ -7,10 +7,11 @@ public partial class PrivacyPolicyDialogPage : Popup
public PrivacyPolicyDialogPage() public PrivacyPolicyDialogPage()
{ {
InitializeComponent(); InitializeComponent();
} privacyPolicyView.Source = "https://gmcabs.com.au/privacy-policy/";
}
private void lblClose_Tapped(object sender, EventArgs e) private void lblClose_Tapped(object sender, EventArgs e)
{ {
//Dismiss(null); //Dismiss(null);
Close(); this.Close();
} }
} }