f_toggle_button 0.0.4 copy "f_toggle_button: ^0.0.4" to clipboard
f_toggle_button: ^0.0.4 copied to clipboard

Create toggle button.

Create toggle button with one line code and customize easily

Features #

  • Create toggle button with one line code
  • Specify it easily
  • Allow customize height, with, background color...

Getting started #

  import 'package:f_toggle_button/src.dart';

Usage #

FToggleButton(
    isEnable: true,
    onChangeStatus: (bool value) {
    
    },
    bgCircleDisable: Colors.white,
    bgCircleEnable: Theme.of(context).colorScheme.primary,
    bgDisable: Colors.grey.withOpacity(0.5),
    borderColorEnable: Theme.of(context).colorScheme.primary.withOpacity(0.5),
    borderColorDisEnable: Colors.grey.withOpacity(0.5),
),

FToggleButton(
    isEnable: false,
    onChangeStatus: (bool value) {
    
    },
    bgCircleDisable: Colors.white,
    bgCircleEnable: Theme.of(context).colorScheme.primary,
    bgDisable: Colors.grey.withOpacity(0.5),
    borderColorEnable: Theme.of(context).colorScheme.primary.withOpacity(0.5),
    borderColorDisEnable: Colors.grey.withOpacity(0.5),
),
  • Screenshot

    toggle_button.png

switch_button #

1
likes
120
pub points
15%
popularity

Publisher

unverified uploader

Create toggle button.

Repository (GitHub)
View/report issues

Documentation

API reference

License

unknown (license)

Dependencies

flutter

More

Packages that depend on f_toggle_button