easy_switch 0.0.2 copy "easy_switch: ^0.0.2" to clipboard
easy_switch: ^0.0.2 copied to clipboard

outdated

Easy Switch - an easy switch widget for Flutter.

easy_switch #

About #

Easy Switch - an easy switch widget for Flutter. Simple and good looking.

Preview #

How to use #

class HomeScreen extends StatefulWidget {
  @override
  _HomeScreenState createState() => _HomeScreenState();
}

class _HomeScreenState extends State<HomeScreen> {

  bool status = false;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text('Easy Switch Example'),
      ),
      body: Center(
        child: Column(
          mainAxisAlignment: MainAxisAlignment.center,
          children: [
            EasySwitch(
              activeColor: Colors.pink,
              inactiveColor: Colors.grey
              value: status,
              onChanged: (value) {},
            ),
          ],
        ),
      ),
    );
  }
}
2
likes
0
pub points
0%
popularity

Publisher

verified publisherkarolzientek.tech

Easy Switch - an easy switch widget for Flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on easy_switch