0 purchases
custom 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';
copied to clipboard
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()
),
],
)
copied to clipboard
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!
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.