apptomate_custom_toggle_button 0.0.1 copy "apptomate_custom_toggle_button: ^0.0.1" to clipboard
apptomate_custom_toggle_button: ^0.0.1 copied to clipboard

CustomToggleButton is a simple and customizable toggle button for Flutter applications.

apptomate_custom_toggle_button #

CustomToggleButton is a simple and customizable toggle button for Flutter applications.

Platform


📝 Description #

CustomToggleButton is a simple and customizable toggle button for Flutter applications. It allows switching between two states with custom labels and colors.


🚀 Features #

✔️ Toggle between ON/OFF states

✔️ Customizable active and inactive colors

✔️ Custom text labels for active and inactive states

✔️ Smooth animation on state change


📲 Installation #

Add the dependency to your pubspec.yaml:

dependencies:
  apptomate_custom_toggle_button: ^0.0.1

Basic Example #

 CustomToggleButton(
            value: isToggled,
            onChanged: (newValue) {
              setState(() {
                isToggled = newValue;
              });
            },
            activeText: "ON",
            inactiveText: "OFF",
            activeColor: Colors.green,
            inactiveColor: Colors.red,
          )







1
likes
150
points
43
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

CustomToggleButton is a simple and customizable toggle button for Flutter applications.

Homepage

License

MIT (license)

Dependencies

flutter

More

Packages that depend on apptomate_custom_toggle_button