Skip to content

samirgcofficial/Plugin.Maui.ProgressView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Plugin.Maui.MauiProgressView

The Plugin.Maui.MauiProgressView is a .NET MAUI plugin that provides customizable progress bars for use in mobile applications. This component allows users to display progress in a visually appealing circular format, with additional features such as a thumb indicator and customizable colors.

Inspired from dribbble

Refer here

Progress Views

Progress Ring View

The Progress Ring View offers two different types of circular progress displays:

ArcCircle FullCircle
Arc Circle Full Circle

Progress Bar View

The Progress Bar View supports multiple types of progress displays:

  • Bar
Bar
Bar

☕️ Fuel the Development with a Coffee!

If you find this plugin helpful and want to support its continuous development, consider buying me a coffee! Your support means a lot and helps keep the project alive and growing. Every cup of coffee boosts my productivity and fuels new features and improvements. Buy Me A Coffee

Thank you for your support! 🙌

Getting Started

Installation

You can install the plugin via NuGet:

   dotnet add package Plugin.Maui.MauiProgressView --version 0.0.3 

Dotnet MAUI Implementation

 xmlns:progress="clr-namespace:Plugin.Maui.MauiProgressView;assembly=Plugin.Maui.MauiProgressView"
  <VerticalStackLayout HorizontalOptions="Center" VerticalOptions="Center">
        <progress:ProgressRingView
                    CircleType="Arc"
                    HeightRequest="280"
                    HorizontalOptions="Center"
                    IsThumbVisible="True"
                    Maximum="1"
                    Minimum="0"
                    Progress="{Binding Progress}"
                    RingColor="#4e8fee"
                    Thickness="80"
                    ThumbColor="#2c5c8a"
                    ThumbRadius="30"
                    VerticalOptions="Center"
                    WidthRequest="350" />
    
      <progress:ProgressBarView
                    BarHeight="50"
                    CornerRadius="25"
                    HeightRequest="120"
                    Maximum="1"
                    Minimum="0"
                    Outline="True"
                    OutlineColor="LightGray"
                    OutlineThickness="2"
                    Progress="{Binding Progress, Mode=TwoWay}"
                    ProgressColor="CornflowerBlue"
                    ProgressType="Bar" />
   </VerticalStackLayout>

Enable SkiaSharp in MauiProgram.cs

To use SkiaSharp in your MAUI project, add the .UseSkiaSharp() line in your MauiProgram.cs file. You may also need to install the SkiaSharp.Views.Maui.Controls package via NuGet.

Step 1: Add the Package Add the following package reference to your project file (.csproj):

<PackageReference Include="SkiaSharp.Views.Maui.Controls" Version="2.88.8" />

Step 2: Update MauiProgram.cs Insert .UseSkiaSharp() in the CreateMauiApp() method, as shown below:

 public static MauiApp CreateMauiApp()
        {
            var builder = MauiApp.CreateBuilder();
            builder
                .UseMauiApp<App>()
                .UseSkiaSharp()
                .ConfigureFonts(fonts =>
                {
                    fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                    fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                });

#if DEBUG
    		builder.Logging.AddDebug();
#endif

            return builder.Build();
        }

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages