glass_fish_button 0.1.2 copy "glass_fish_button: ^0.1.2" to clipboard
glass_fish_button: ^0.1.2 copied to clipboard

A glassmorphism-inspired Flutter button widget with switchable light and dark themes.

glass_fish_button #

A screenshot of the project

A Flutter package that recreates the glassmorphism download button pictured in the prompt. Choose between light and dark variants at the call-site via the brightness parameter.

Getting started #

Add the package to your pubspec.yaml (set it up for local development or publish to pub). Then import the library and drop the widget in your tree:

import 'package:glass_fish_button/glass_fish_button.dart';

GlassFishButton(
  label: 'Download for Mac',
  brightness: GlassFishButtonBrightness.light,
  onPressed: () {},
);

Flip the look to the darker treatment by setting brightness to GlassFishButtonBrightness.dark.

An example app that toggles between both themes lives under example/lib/main.dart.

0
likes
135
points
30
downloads

Publisher

unverified uploader

Weekly Downloads

A glassmorphism-inspired Flutter button widget with switchable light and dark themes.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on glass_fish_button