Liquify your buttons, web demo at website

Overview


Logo Liquid Button

Pub

Hi, Introducing Liquid Button for Flutter. It supports Web and Mobile, not tested on Ios. Inspired by Liquid Button in JS.

Preview

Live Demo

Download sample apk as shown in example from releases.

Get it from Github Releases

Experience Live Demo on (not on mobile) : https://iamsahdeep.github.io/liquid_button/#/

Getting Started

  • Add this to your pubspec.yaml

    dependencies:
    liquid_button: 1.0.0
    
    
  • Get the package from Pub:

    flutter packages get
    
  • Import it in your file

    import 'package:liquid_button/liquid_button.dart';
    

Example

  • Look for complete example in example folder.
  • Remember to wrap it with GestureDetector or InkWell, might include in next version.
                LiquidButton(
                  expandFactor: 20,
                  backgroundColor: Colors.black87,
                  height: 100,
                  child: Text(
                    "Liquid Button",
                    style: TextStyle(
                        fontSize: 30,
                        color: Colors.white,
                        fontWeight: FontWeight.bold),
                  ),
                  gradientColor: Colors.black54,
                  width: 400,
                ),

Attributes

Currently we have 3 buttons : RoundClothButton(poor naming :p), ClothButton and LiquidButton. Here are some of the attributes in which height,width and background color is the required. Rest can be left to have default values.

  • expandFactor : (double) Allows you to decide Expansion of the button while animating. Should be less than 50.
  • backgroundColor : (Color) Color of the button.
  • gradientColor : (Color) If you want gradient effect onHover, if not given no color effect will be there.
  • retainGradient : (bool) If you want to retain the gradient effect when mouse leaves the button area. Default is false.
  • gap : (int) Integer to provide gap between subsequent point while painting the line. Do experiment with it, Should not be greater that height/2.

Known Issues

  • Lag on Web - It generally happens when we are using multiple Liquid Buttons on same screen due to usage of MouseRegion.You might experience the same on the live demo also. Check this issue https://github.com/flutter/flutter/issues/41194
  • Gesture not working on Web on Mobile - Need to work on it..
  • Note : Please report any kind of bugs you are experiencing.

Author & support

This project is created by Sahdeep Singh but with lots of support and help.

If you appreciate my work, consider buying me a cup of to keep me recharged 🤘

Or you can also endorse me on LinkedIn to keep me motivated.

I love my work and I'm available for freelance work. Contact me on my email: [email protected]

You might also like...

IEEE DTU's Vihaan 5.0 website.

vihaan2022 IEEE DTU's Vihaan 5.0 website. Getting Started This project is a starting point for a Flutter application. A few resources to get you start

Dec 27, 2021

Fully Functional IOS/Android App for WordPress Website with Flutter

Fully Functional IOS/Android App for WordPress Website with Flutter

WordPress App with Flutter IOS/Android Native App for WordPress Website/Blog built using Flutter. No additional Plugins required for WordPress. Built

Dec 30, 2022

Jisho - A multiplatform Application for jisho.org website for those who does not want to bother with the browser and distractions

Jisho - A multiplatform Application for jisho.org website for those who does not want to bother with the browser and distractions

Jisho.org Jisho.org Application Getting Started I am frustrated to go back and f

Feb 21, 2022

Tesla Website - A part of a #100flutterprojects

Tesla Website - A part of a #100flutterprojects

Tesla Website - A part of a #100flutterprojects

Feb 18, 2022

A free tool to convert any website into a cross platform native application.

A free tool to convert any website into a cross platform native application.

SWAB (Spyxpo Web to App Builder) Convert any website into an iOS/Android/Windows/macOS/Linux app. This is a preview build for testing purposes major u

Jan 1, 2023

A mobile-responsive blockchain website built with flutter. NB: For educational purposes.

A mobile-responsive blockchain website built with flutter.      NB: For educational purposes.

Excursy A mobile-responsive blockchain website built with flutter. Build flutter build web --web-renderer html --release or flutter build web --web-re

Oct 25, 2022

Implements GTK Widgets, themes and titlebar buttons in Flutter. Based on the GNOME HIG

Implements GTK Widgets, themes and titlebar buttons in Flutter. Based on the GNOME HIG

GTK ❤️ Flutter Unofficial implementation of GTK Widgets, themes and titlebar buttons in Flutter. Based on the GNOME Human Interface Guidelines. Featur

Dec 26, 2022

A control pad with a virtual joystick and buttons.

A control pad with a virtual joystick and buttons.

control_pad A virtual pad with joystick controller and configurable buttons. Features Joystick controller Pad's buttons Configurable events interval C

Dec 7, 2022

A cross-platform Flutter widget for displaying websites. Optional navigation buttons.

Overview Gives you a cross-platform Flutter widget for displaying websites and other web content. Licensed under the Apache License 2.0. Links Github

Oct 23, 2022
Releases(v0.0.1)
Web3-demo-flutter - A demo for the flutter web3 library.

web3_demo_flutter A new Flutter project. Getting Started This project is a starting point for a Flutter application. A few resources to get you starte

Tommaso Azzalin 0 Oct 7, 2022
Today we will show you how you can create your developer portfolio website and app using flutter.

Responsive and Animated Portfolio Website & App - Flutter UI Live Preview Watch it on YouTube Packages we are using: flutter_svg: link goole_fonts: li

Abu Anwar 198 Dec 30, 2022
flutter 2.0 web demo

web_demo Flutter 2.0 快速构建的一个站点样例 在线预览:http://webdemo.loveli.site github ci构建的版本(每次代码提交,自动构建):http://webdemo.oldbird.run, 采用 hash 路由策略 更多精彩,请关注官方微信公众号:

swiftdo 46 Dec 29, 2022
Demo of web banner in Flutter

web_carousel How to implement a Web Banner the right way in Flutter. Screenshots Desk: Mobile: Medium Article Here is the Medium Article via the frien

Fred Grott 0 Mar 18, 2022
Personal Website built using Flutter

Personal Website built using Flutter

Sai Rajendra Immadi 5 Oct 9, 2022
✔️ Flutter Portofolio Website

✔️ Flutter Portofolio Website A Flutter app based on the design of the Flutter Portofolio Website, created by Achmad Rizki Nur Fauzie, Features Respon

Achmad Rizki Nur Fauzie 6 Nov 6, 2022
My Portfolio Website. It's fully created with Flutter.

portfolio A new Flutter application. Getting Started This project is a starting point for a Flutter application. A few resources to get you started if

Payam Zahedi 11 Oct 24, 2022
Mobile, desktop and website Apps with the same code

Mobile, desktop and website Apps with the same code This project shows how the source code can be architectured to run on multiple devices. As of now,

Benoit VALLON 5.2k Jan 1, 2023
A token auction website made by Flutter thats interacts with Ethereum web3 through flutter_web3 package.

flutter_web3_auction A token auction website made by Flutter thats interacts with Ethereum web3 through flutter_web3 package. This flutter web package

yoisha 26 Dec 26, 2022