This package contains a single widget. A square switch, in the future i pretend to add some other widgets made by me.
To use it you need add as dependency to your project.
dependencies:
square: ^0.0.2
import 'package:square/square.dart';
Make sure importing the library before try to use it
import 'package:square/square.dart';
.
.
.
SquareSwitch(
activeTrackColor: Colors.blue,
inactiveTrackColor: Colors.cyan,
onChange: () {},
),