项目作者: tusharthe

项目描述 :
A widget button that can sparkle.
高级语言:
项目地址: git://github.com/tusharthe/sparkler_button.git
创建时间: 2021-06-16T06:38:59Z
项目社区:https://github.com/tusharthe/sparkler_button

开源协议:MIT License

下载


sparkler_button

A widget button that can sparkle.

Getting Started

Installation

Add dependency to pubspec.yaml

  1. dependencies:
  2. ...
  3. sparkler_button: ^lastest_version

Run in your terminal

  1. flutter packages get

How to use

  1. import 'package:sparkler_button/sparkler_button.dart';
  1. SparklerButton(
  2. buttonTitle: Text(
  3. 'Button that can Sparkle',
  4. style: TextStyle(
  5. color: Colors.white,
  6. fontWeight: FontWeight.w300,
  7. fontSize: 17.0,
  8. ),
  9. ),
  10. buttonColor: Color(0xff3dce89),
  11. onclickButtonFunction: () {
  12. print('hello');
  13. }
  14. );

Attribute

Parameter Default Description
title null Change this value if you what to put pagination in other placeThe text on the button, cannot be omitted.
bgColor null Button background color, cannot be omitted.
height 50.0 Height of button.
width 200.0 Width of button.
interval 3 Button blink interval.(seconds)
time 300 Blink time.(milliseconds)
highlightColor Colors.white Flash effect background color.
onclick null Events executed by clicking the button, cannot be omitted.