Posts

Showing posts from October, 2023

Food Delivery App - Cart Page

Image
Please, support my blog by clicking on our sponsors ad!  CartTemplate.xaml <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FoodDeliveryApp.Pages.Products.Template.CartTemplate"> <Grid Padding="5" ColumnSpacing="10" RowDefinitions="Auto" RowSpacing="0" ColumnDefinitions="150,*"> <Frame Padding="0" CornerRadius="10" Grid.Row="0" Grid.Column="0" Grid.RowSpan="4"> <Image Source="{Binding Image}" HeightRequest="80" Aspect="AspectFill"></Image> </Frame> <StackLayout Grid.Row="0" Grid.Column="1" VerticalOptions="CenterAndExpand"> <Label Text="{Binding Name}" TextColor="{x:Stat

Food Delivery App - Product List Page

Image
  Food Delivery App - Product ListPage Please, support my blog by clicking on our sponsors ad! ListTemplate.xaml <ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FoodDeliveryApp.Pages.Products.Template.ListTemplate" xmlns:fontawesome="clr-namespace:FoodDeliveryApp.Utilities"> <StackLayout Padding="5"> <Frame CornerRadius="20" Padding="15" WidthRequest="300"> <Grid ColumnDefinitions="6*,4*" RowSpacing="5" RowDefinitions="Auto,Auto,Auto,Auto,Auto,Auto" HorizontalOptions="FillAndExpand"> <Image Grid.Row="0" Grid.Column="0" HorizontalOptions="Start" Source="https://png.pngtree.com/png-clipart/20221013/original/pngtree-bestseller-label-png-imag

Food Delivery App - Filter Page

Image
  Food Delivery App - Filter Page Please, support my blog by clicking on our sponsors ad! watch video to understand code. Create Model for filter ProductFilterViewModel.cs public class ProductFilterViewModel : BaseViewModel { public Command LoadProductCommand { get; set; } private ObservableCollection<MenuModel> menuVM; private string filterText; private bool _isVisible = false; private bool _recentSearchIsVisible = true; private MenuModel _selectedItem; public Command ItemSelectedCommand { get; set; } public ProductFilterViewModel() { ItemSelectedCommand = new Command<MenuModel>(OnItemSelected); } public ObservableCollection<MenuModel> vm { get { return menuVM; } set { SetProperty(ref menuVM, value); } } public bool IsVisi

Food Delivery App - Basic Setup

App.xaml <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:local="clr-namespace:FoodDeliveryApp" x:Class="FoodDeliveryApp.App"> <Application.Resources> <ResourceDictionary> <ResourceDictionary.MergedDictionaries> <ResourceDictionary Source="Resources/Styles/Colors.xaml" /> <ResourceDictionary Source="Resources/Styles/Styles.xaml" /> </ResourceDictionary.MergedDictionaries> <Color x:Key="BackgroundColor">#F1EFEF</Color> <Color x:Key="Primary">#004AAD</Color> <Color x:Key="Secondary">#FF914D</Color> <Color x:Key="OldLace">#FDF7E4</Color> <Color x:Key="

Home Page - Food Delivery App in Maui

Image
  Home Page - Food Delivery App in MAUI Please, support my blog by clicking on our sponsors ad! Follow basic setup from here You will get all page of this app from FoodDeliveryApp Menu on top. Let's Create Model MenuModel public class MenuModel { public string Name { get; set; } public decimal Price { get; set; } public string Description { get; set; } public ImageSource Image { get; set; } } RestaurantModel public class RestaurantModel { public string Name { get; set; } public string Description { get; set; } public string Rating { get; set; } public ImageSource Image { get; set; } public List<MenuModel> Menus { get; set; } = new List<MenuModel>(); } BannerModel public class BannerModel { public ImageSource Image { get; set; } } BaseViewModel public class BaseViewModel : INotifyPropertyChanged { bool isBusy = false;

Food Delivery - Login Page with animation

Image
Login page with animation Food Delivery app - animated login page Please, support my blog by clicking on our sponsors ad! Follow basic setup from  here You will get all page of this app from FoodDeliveryApp Menu on top. <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" x:Class="FoodDeliveryApp.Pages.Authentication.Login" xmlns:mct="clr-namespace:CommunityToolkit.Maui.Behaviors;assembly=CommunityToolkit.Maui" Title="Login" BackgroundColor="{x:StaticResource BackgroundColor}" Shell.NavBarIsVisible="False"> <ContentPage.Behaviors> <mct:StatusBarBehavior StatusBarColor="{x:StaticResource Primary}"></mct:StatusBarBehavior> </ContentPage.Behaviors> <Grid RowDefinitions="Auto,Auto,Auto,Auto,Auto&