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 GMCabsDriverAssistantSolution.ViewModels;
using GMCabsDriverAssistant.Models;
using CommunityToolkit.Maui.Views;
namespace GMCabsDriverAssistant.ViewModels
{
@ -117,6 +118,7 @@ namespace GMCabsDriverAssistant.ViewModels
{
Shell.Current.FlyoutIsPresented = false;
// _page.Navigation.ShowPopup(new PrivacyPolicyDialogPage());
Shell.Current.ShowPopup(new PrivacyPolicyDialogPage());
}
#endregion
}

View File

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

View File

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