NXS SWIPER
Swiper
Table of Contents
- Installing - How to install
- Demo - How this plugin works
- Code example - How to use
Installing
Add to pubspec.yaml file
dependencies:
nxs_swiper: ^0.0.5
Import
import 'package:nxs_swiper/nxs_swiper.dart';
Demo
Code example
Code example (click to expand)
class MySwiperScreenState extends State<MySwiperScreen> {
List<Container> pages = [];
@override
void initState() {
super.initState();
pages.add(
Container(
child: Text("Page 1"),
),
);
pages.add(
Container(
child: Text("Page 1"),
),
);
pages.add(
Container(
child: Text("Page 1"),
),
);
}
@override
Widget build(BuildContext context) {
return CustomSlider(
pages: this.pages,
paginationDotBorderColor: Colors.white,
paginationDotBackgroundColor = Colors.transparent,
paginationDotCurrentBackgroundColor = Colors.white
);
}
}