toggle_button 1.0.1 toggle_button: ^1.0.1 copied to clipboard
Generate a Customizable Toggle button of desired shape, size, alignment, and colors. within Material Design
Usage Example #
import toggle_button.dart
import 'package:toggle_button/toggle_button.dart';
For Toggle Button. #
ToggleButton(
onChange: (status) {
},
),
For Customization. #
ToggleButton(
borderRadius: 40.0,
size: 15.0,
backgroundColor: Colors.indigo,
foregroundColor: Colors.white,
axis: ToggleButtonAlignment.horizontal,
deactivatedColor: Colors.grey,
onChange: (status) {
},
),