A liquid progress indicator for Flutter

Overview

liquid_progress_indicator

Liquid progress indicator for Flutter.

Features

  • Liquid circular progress indicator.
  • Liquid linear progress indicator.
  • Liquid custom progress indicator.
  • Works similarly to Flutters own ProgressIndicator.
  • Customise colors, borders, direction, etc.

Usage

import 'package:liquid_progress_indicator/liquid_progress_indicator.dart';

LiquidCircularProgressIndicator

LiquidCircularProgressIndicator(
  value: 0.25, // Defaults to 0.5.
  valueColor: AlwaysStoppedAnimation(Colors.pink), // Defaults to the current Theme's accentColor.
  backgroundColor: Colors.white, // Defaults to the current Theme's backgroundColor.
  borderColor: Colors.red,
  borderWidth: 5.0,
  direction: Axis.horizontal, // The direction the liquid moves (Axis.vertical = bottom to top, Axis.horizontal = left to right). Defaults to Axis.vertical.
  center: Text("Loading..."),
);

LiquidLinearProgressIndicator

LiquidLinearProgressIndicator(
  value: 0.25, // Defaults to 0.5.
  valueColor: AlwaysStoppedAnimation(Colors.pink), // Defaults to the current Theme's accentColor.
  backgroundColor: Colors.white, // Defaults to the current Theme's backgroundColor.
  borderColor: Colors.red,
  borderWidth: 5.0,
  borderRadius: 12.0,
  direction: Axis.vertical, // The direction the liquid moves (Axis.vertical = bottom to top, Axis.horizontal = left to right). Defaults to Axis.horizontal.
  center: Text("Loading..."),
);

LiquidCustomProgressIndicator

LiquidCustomProgressIndicator(
  value: 0.2 // Defaults to 0.5.
  valueColor: AlwaysStoppedAnimation(Colors.pink), // Defaults to the current Theme's accentColor.
  backgroundColor: Colors.white, // Defaults to the current Theme's backgroundColor.
  direction: Axis.vertical, // The direction the liquid moves (Axis.vertical = bottom to top, Axis.horizontal = left to right).
  shapePath: _buildBoatPath(), // A Path object used to draw the shape of the progress indicator. The size of the progress indicator is created from the bounds of this path.
)
Comments
  • Migrate to null safety

    Migrate to null safety

    opened by nilsreichardt 11
  • Error: Could not resolve the package 'liquid_progress_indicator' in 'package:liquid_progress_indicator/liquid_progress_indicator.dart'

    Error: Could not resolve the package 'liquid_progress_indicator' in 'package:liquid_progress_indicator/liquid_progress_indicator.dart'

    When importing the file and trying to run the application I am getting this error: Compiler message: Error: Could not resolve the package 'liquid_progress_indicator' in 'package:liquid_progress_indicator/liquid_progress_indicator.dart'. lib/UI/Pages/GymSubPages/ExerciseListPage.dart:8:8: Error: Not found: 'package:liquid_progress_indicator/liquid_progress_indicator.dart' import 'package:liquid_progress_indicator/liquid_progress_indicator.dart';

    opened by mrhuseyinahmet 2
  • Text not visible in the centre of the widget.

    Text not visible in the centre of the widget.

    Hi,

    Thank you very much for this widget. However, I'm unable to get the text to show up in the middle of the widget. Please help. The following is my code.

    LiquidCustomProgressIndicator(
                            value: 0.45,
                            // Defaults to 0.5.
                            valueColor: AlwaysStoppedAnimation(Colors.red),
                            // Defaults to the current Theme's accentColor.
                            backgroundColor: Colors.white,
                            // Defaults to the current Theme's backgroundColor.
                            direction: Axis.vertical,
                            center: Text(
                              "45%",
                              style: TextStyle(
                                  fontSize: 12.0,
                                  fontWeight: FontWeight.w600,
                                  color: Colors.black),
                            ),
    
                            // The direction the liquid moves (Axis.vertical = bottom to top, Axis.horizontal = left to right).
                            shapePath:
                                getHeartPath(), // A Path object used to draw the shape of the progress indicator. The size of the progress indicator is created from the bounds of this path.
                          ),
    

    And the getHeartPath() function.

    getHeartPath() {
        double width = 100;
        double height = 100;
        Path path = Path();
        path.moveTo(0.5 * width, height * 0.35);
        path.cubicTo(0.2 * width, height * 0.1, -0.25 * width, height * 0.6,
            0.5 * width, height);
        path.moveTo(0.5 * width, height * 0.35);
        path.cubicTo(0.8 * width, height * 0.1, 1.25 * width, height * 0.6,
            0.5 * width, height);
        return path;
      }
    
    opened by jagadishnallappa 1
  • Provide Example on how to use valueColor

    Provide Example on how to use valueColor

    I would like have the wave go from red to blue over time... but I can't get it to work eventhough I am using the flutter suggested methods as indicated here https://flutter.dev/docs/development/ui/animations/tutorial

    opened by b-cancel 1
  • ShapePath for LiquidCustomProgressIndicator

    ShapePath for LiquidCustomProgressIndicator

    Thanks for the wonderful plugin. I tried using a relative canvas context dimension for its shapepath but it does not work. Pls what am i doing wrong? i.e. Path _battery(BuildContext context) { Size size = MediaQuery.of(context).size; return Path() ..moveTo(size.width / 3.1, size.height / 1.25) ..lineTo(size.width / 1.48, size.height / 1.25) ..lineTo(size.width / 1.48, size.height / 4.27) ..lineTo(size.width / 1.78, size.height / 4.27) ..lineTo(size.width / 1.78, size.height / 5.12) ..lineTo(size.width / 2.0, size.height / 5.12) ..lineTo(size.width / 2.27, size.height / 5.12) ..lineTo(size.width / 2.27, size.height / 4.27) ..lineTo(size.width / 3.1, size.height / 4.27) //..lineTo(size.width / 3.1, size.height / 1.25) ..close(); }

    bug 
    opened by fujoos 1
  • How to give max value.

    How to give max value.

    i am not using animation because i have no fix time..i want to display only for progress.it has value field but not max value. so how to figure out it from how many, current progress.

    opened by HetalGohil 0
  • Wave direction

    Wave direction

    Is there a way to choose the wave direction more than horizontal or vertical?

    I have this rectangle and I would like to add a progress bar in this "diagonal" direction: liquidprogressbar

    opened by anderlopz 0
  • Question: Heart size changed

    Question: Heart size changed

    Hi, thanks for this widget but i have a question which is in custom liquid heart shape size is very small if i want to change the size of heart shape kindly look into this request thanks

    opened by itsdani121 0
  • Reanimate progress

    Reanimate progress

    Hello, there! Is there any way to reanimate a circular progress indicator when complete its cycle? I'm using LiquidCircularProgressIndicator with TweenAnimationBuilder and set Tween(begin: 0, end: 1)

    opened by mrarty55 0
Owner
null
Progress State Button - A customizable progress button for Flutter

Progress State Button - A customizable progress button for Flutter

Selim 108 Dec 12, 2022
Flutter Animation liquid 🐱‍👤 Made with algeria By DZ-TM071

Flutter Animated Loading liquid progress ?? ?? ?? screen screen # Usage First you need to add liquid_progress_indicator 0.4.0 Or + in the dependency a

Hmida 8 Jan 10, 2022
Page indicator for flutter, with multiple build-in layouts.

flutter_page_indicators Page indicator for flutter, with multiple build-in layouts. NOTE:This project is forked from flutter_page_indicator, because t

OpenFlutter 12 Jun 29, 2022
Flutter percent indicator library

Percent Indicator Circular and Linear percent indicators Features Circle percent indicator Linear percent indicator Toggle animation Custom duration o

Diego Velásquez López 596 Dec 30, 2022
A Flutter PageView Indicator has Worm animation

Worm Indicator A Flutter PageView indicator insprired by worm animation. It can be easily integrated with any Flutter PageView. Pull requests are welc

Phuc Huynh 11 May 3, 2022
Add an indicator for a progression. You can customize indicators (shape, color, ..)

dots_indicator Widget to display dots indicator to show a position (for a PageView for example). Installation You just need to add dots_indicator as a

Jean-Charles Moussé 139 Dec 1, 2022
A simple custom loading indicator package.

custom_loading_indicator A Flutter package to customise the loading indicators with your organisation's logo. Let's say you're a dentist and your app

Harshad Manglani 3 Aug 10, 2020
A light weight library to easily manage a progress dialog with simple steps whenever you need to do it. You can easily show and hide it.

progress_dialog A light weight package to show progress dialog. As it is a stateful widget, you can change the text shown on the dialog dynamically. T

Mohammad Fayaz 202 Dec 11, 2022
🔔 A flutter package to create cool and beautiful text animations. [Flutter Favorite Package]

Animated Text Kit A flutter package which contains a collection of some cool and awesome text animations. Recommended package for text animations in C

Ayush Agarwal 1.4k Jan 6, 2023
This repository demonstrates use of various widgets in flutter and tricks to create beautiful UI elements in flutter for Android and IOS

AwesomeFlutterUI The purpose of this repository is to demonstrate the use of different widgets and tricks in flutter and how to use them in your proje

Subir Chakraborty 132 Nov 13, 2022
This is a Flutter URL preview plugin for Flutter that previews the content of a URL

flutter_link_preview This is a URL preview plugin that previews the content of a URL Language: English | 中文简体 Special feature Use multi-processing to

yung 67 Nov 2, 2022
A candy sorter game made with Flutter for the march flutter challenge.

A candy sorter game made with Flutter for the march flutter challenge.

Debjeet Das 1 Apr 9, 2022
✨ A collection of loading indicators animated with flutter. Heavily Inspired by http://tobiasahlin.com/spinkit.

✨ Flutter Spinkit A collection of loading indicators animated with flutter. Heavily inspired by @tobiasahlin's SpinKit. ?? Installing dependencies:

Jeremiah Ogbomo 2.7k Dec 30, 2022
A Flutter library for gradually painting SVG path objects on canvas (drawing line animation).

drawing_animation From static SVG assets See more examples in the showcasing app. Dynamically created from Path objects which are animated over time m

null 442 Dec 27, 2022
Flutter package for creating awesome animations.

?? Simple Animations Simple Animations is a powerful package to create beautiful custom animations in no time. ?? fully tested ?? well documented ?? e

Felix Blaschke 879 Dec 31, 2022
Fun canvas animations in Flutter based on time and math functions.

funvas Flutter package that allows creating canvas animations based on time and math (mostly trigonometric) functions. The name "funvas" is based on F

null 472 Jan 9, 2023
A flutter package that adds support for vector data based animations.

animated_vector Description and inspiration A package that adds support for vector data based animations. The data format is heavily inspired from the

Potato Open Sauce Project 6 Apr 26, 2022
Flutter UI Challenges

Introduction ?? Zoo is a small, simple and beautiful app that lists 3d model of animals. Before we start, you can take a look at the app: Usage ?? To

Sanjeev Madhav 58 Dec 22, 2022
A Flutter app with flip animation to view profiles of friends. 🌟

Flip View Made with ?? in India This flutter app is based on the design made Dmytro Prudnikov for Yalantis on Dribble.He describes the design as: Just

Shubham Soni 68 Sep 23, 2022