using Blahblah.FlowerApp.Controls; using Blahblah.FlowerApp.Data; //using CommunityToolkit.Maui; #if DEBUG using Microsoft.Extensions.Logging; #endif namespace Blahblah.FlowerApp; public static class MauiProgram { public static MauiApp CreateMauiApp() { var builder = MauiApp.CreateBuilder(); builder .UseMauiApp() //.UseMauiCommunityToolkit() .ConfigureFonts(fonts => { fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); fonts.AddFont("fa-light-300.ttf", "FontAwesomeLight"); fonts.AddFont("fa-regular-400.ttf", "FontAwesome"); fonts.AddFont("fa-solid-900.ttf", "FontAwesomeSolid"); }) .ConfigureMauiHandlers(handlers => { #if IOS handlers.AddHandler(); handlers.AddHandler(); handlers.AddHandler(); #elif ANDROID handlers.AddHandler(); #endif }); #if DEBUG builder.Logging.AddDebug(); #endif builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddSingleton(); builder.Services.AddLocalization(); return builder.Build(); } }