border_toggle_switch

Creator: coderz1093

Last updated:

0 purchases

border_toggle_switch Image
border_toggle_switch Images

Languages

Categories

Add to Cart

Description:

border toggle switch

Border Toggle Switch #
Border Toggle Switch - A simple beautiful bottom border toggle switch widget. It can be fully customized with desired colors, width, text, corner radius etc. It also maintains selection state and return function as a selected toggle.
Getting Started #
In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
...
border_toggle_switch: ^0.0.1
copied to clipboard
Import it:
import 'package:border_toggle_switch/border_toggle_switch.dart';
copied to clipboard
Usage Examples #


With border color, border width, custom height and different active background colors , with return function #
BorderToggleSwitch(
bottomBorderColor: Colors.blue,
activeToggleName: "Left",
inActiveToggleName: "Right",
isClicked: (value) {
debugPrint(value);
},
isBorder: true,
activeBackgroundColor: Colors.white,
inActiveBackgroundColor: Colors.black12,
height: 45,
borderSize: 3,
radius: 15,
bottomRightRadius: 15,
bottomLeftRadius: 15,
topRightRadius: 15,
topLeftRadius: 15,
inActiveToggleNameStyle: const TextStyle(fontWeight: FontWeight.bold,color: Colors.black),
activeToggleNameStyle: const TextStyle(fontWeight: FontWeight.bold,color: Colors.blue),
),
copied to clipboard
Example code with explanation

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.