slider_confirm_button 0.0.1+6

  • Readme
  • Changelog
  • Installing
  • 62

slider_confirm_button #

Animated slider confirm button that customize color, font , child widgets and more.

Demo #

Sample Demo

How to use #

In your pubspec.yaml, include the package

    sdk: flutter

  slider_confirm_button: ^0.0.1+6

In your code, add import

import 'package:slider_confirm_button/slider_confirm_button.dart';

Then add the widget to your screen

          width: width,
          height: 55,
          btnOneClickReverseSlider: false,
          btnTwoClickReverseSlider: true,
          btnOneOnpressed: () {
            print('Button one clicked');
          btnTwoOnpressed: () {
            print('Button two clicked');
          mainColor: Color(0XFFb063c5),
          mainChild: new Row(
            children: <Widget>[
              new Text(
                'I accept the Terms of Service',
                overflow: TextOverflow.ellipsis,
          subOneColor: Color(0XFF46b3e6),
          subOneChild: new Row(
            children: <Widget>[
              new Icon(Icons.check_circle_outline),
              new Text(' Confirm')
          subTwoColor: Color(0XFFe25822),
          subTwoChild: new Row(
            children: <Widget>[new Icon(Icons.close), new Text(' No')],

Sample code:

[0.0.1] - 2019-11-28 #

  • First release

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  slider_confirm_button: ^0.0.1+6

2. Install it

You can install packages from the command line:

with Flutter:

$ flutter pub get

Alternatively, your editor might support flutter pub get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

import 'package:slider_confirm_button/slider_confirm_button.dart';
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

We analyzed this package on Mar 27, 2020, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.7.1
  • pana: 0.13.6
  • Flutter: 1.12.13+hotfix.8

Health suggestions

Format lib/slider_confirm_button.dart.

Run flutter format to format lib/slider_confirm_button.dart.

Maintenance suggestions

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package.

Common filename patterns include main.dart, example.dart, and slider_confirm_button.dart. Packages with multiple examples should provide example/

For more information see the pub package layout conventions.

Package is pre-v0.1 release. (-10 points)

While nothing is inherently wrong with versions of 0.0.*, it might mean that the author is still experimenting with the general direction of the API.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.1.0 <3.0.0
flutter 0.0.0
Transitive dependencies
collection 1.14.11 1.14.12
meta 1.1.8
sky_engine 0.0.99
typed_data 1.1.6
vector_math 2.0.8
Dev dependencies