Popup Page implemented and Community toolkit nuget package installed.
This commit is contained in:
parent
09a0424120
commit
cafe47abd4
@ -103,6 +103,7 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="CommunityToolkit.Maui" Version="1.4.0" />
|
||||
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.2.0-preview2" />
|
||||
<PackageReference Include="Plugin.FirebasePushNotification" Version="3.4.35" />
|
||||
<PackageReference Include="QRCoder" Version="1.4.3" />
|
||||
@ -121,6 +122,12 @@
|
||||
<MauiXaml Update="Views\AdminPasswordPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</MauiXaml>
|
||||
<MauiXaml Update="Views\AppPermissiontSetDialogPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</MauiXaml>
|
||||
<MauiXaml Update="Views\BatteryOptimisationAlertDialogPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</MauiXaml>
|
||||
<MauiXaml Update="Views\CouponHistoryPage.xaml">
|
||||
<Generator>MSBuild:Compile</Generator>
|
||||
</MauiXaml>
|
||||
|
@ -1,4 +1,6 @@
|
||||
namespace GMCabsDriverAssistantSolution;
|
||||
using CommunityToolkit.Maui;
|
||||
|
||||
namespace GMCabsDriverAssistantSolution;
|
||||
|
||||
public static class MauiProgram
|
||||
{
|
||||
@ -7,6 +9,7 @@ public static class MauiProgram
|
||||
var builder = MauiApp.CreateBuilder();
|
||||
builder
|
||||
.UseMauiApp<App>()
|
||||
.UseMauiCommunityToolkit()
|
||||
.ConfigureFonts(fonts =>
|
||||
{
|
||||
fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
|
||||
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="GMCabsDriverAssistantSolution.Views.AppPermissiontSetDialogPage"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
Size="300,300">
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
Text="AppPermissiontSetDialogPage"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center" />
|
||||
</VerticalStackLayout>
|
||||
</toolkit:Popup>
|
@ -0,0 +1,11 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace GMCabsDriverAssistantSolution.Views;
|
||||
|
||||
public partial class AppPermissiontSetDialogPage : Popup
|
||||
{
|
||||
public AppPermissiontSetDialogPage(Page page, string flag)
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -0,0 +1,13 @@
|
||||
<?xml version="1.0" encoding="utf-8" ?>
|
||||
<toolkit:Popup xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||
x:Class="GMCabsDriverAssistantSolution.Views.BatteryOptimisationAlertDialogPage"
|
||||
xmlns:toolkit="http://schemas.microsoft.com/dotnet/2022/maui/toolkit"
|
||||
Size="300,300">
|
||||
<VerticalStackLayout>
|
||||
<Label
|
||||
Text="BatteryOptimisationAlertDialogPage"
|
||||
VerticalOptions="Center"
|
||||
HorizontalOptions="Center" />
|
||||
</VerticalStackLayout>
|
||||
</toolkit:Popup>
|
@ -0,0 +1,11 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
|
||||
namespace GMCabsDriverAssistantSolution.Views;
|
||||
|
||||
public partial class BatteryOptimisationAlertDialogPage : Popup
|
||||
{
|
||||
public BatteryOptimisationAlertDialogPage()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
}
|
@ -1,3 +1,4 @@
|
||||
using CommunityToolkit.Maui.Views;
|
||||
using GMCabsDriverAssistant.Messages;
|
||||
using GMCabsDriverAssistant.Models;
|
||||
using GMCabsDriverAssistant.Services;
|
||||
@ -101,7 +102,7 @@ public partial class HomePage : ContentPage
|
||||
#region Events
|
||||
private void SettingsRequired_Tapped(object sender, EventArgs e)
|
||||
{
|
||||
// Navigation.ShowPopup(new AppPermissiontSetDialogPage(this, Constant.FROM_HOME_PAGE));
|
||||
this.ShowPopup(new AppPermissiontSetDialogPage(this, Constant.FROM_HOME_PAGE));
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user