index_cut

Last updated:

0 purchases

index_cut Image
index_cut Images
Add to Cart

Description:

index cut

index_cut #
The widget represents a screen like an index cut
Demo #

Usage #
class IndexCutView extends StatefulWidget {
const IndexCutView({super.key});

@override
State<IndexCutView> createState() => _IndexCutViewState();
}

class _IndexCutViewState extends State<IndexCutView> {
int currentIndex = 0;

final items = [
const Text('1', style: TextStyle(fontSize: 18)),
const Text('2', style: TextStyle(fontSize: 18)),
const Text('3', style: TextStyle(fontSize: 18)),
const Text('4', style: TextStyle(fontSize: 18)),
];

@override
Widget build(BuildContext context) {
return IndexCut(
currentIndex: currentIndex,
icons: items,
isOneWay: false,
onChanged: (index) {
setState(() {
currentIndex = index;
});
},
child: Center(
child: items[currentIndex],
),
);
}
}
copied to clipboard

License:

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.