easy_switch 0.0.3

Flutter Android iOS web

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
80
pub points
19%
popularity

Publisher

karolzientek.tech

Easy Switch - an easy switch widget for Flutter.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on easy_switch