custom_switcher 1.0.0 copy "custom_switcher: ^1.0.0" to clipboard
custom_switcher: ^1.0.0 copied to clipboard

Flutter UI widget similar to "content switcher"

CustomSwitcher #

Customizable UI widget made for flutter similar to a content switcher

Installations #

Add top_modal_sheet: ^1.0.0 in your pubspec.yaml dependencies. And import it:

import 'package:custom_switcher/custom_switcher.dart';

How to use #

  CustomSwitcher(
    children: [
      ItemCustomSwitcher(
        child: Center(child: Text("Cricket", overflow: TextOverflow.ellipsis, style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),),
        icon: Icon(Icons.sunny, color: Colors.amber,),
      ),
      ItemCustomSwitcher(
        child: Center(child: Text("Golf", overflow: TextOverflow.ellipsis, style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),),
        icon: Icon(Icons.egg_alt_rounded, color: Colors.teal,)
      ),
      ItemCustomSwitcher(
        child: Center(child: Text("Motorsport", overflow: TextOverflow.ellipsis, style: TextStyle(fontWeight: FontWeight.bold, fontSize: 15)),),
        icon: FlutterLogo()
      ),
    ],
  )

For a more detail example please take a look at the example folder.

Demo #

- #

If something is missing, feel free to open a ticket or contribute!

2
likes
130
pub points
50%
popularity

Publisher

unverified uploader

Flutter UI widget similar to "content switcher"

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on custom_switcher