nxs_swiper 0.0.1 copy "nxs_swiper: ^0.0.1" to clipboard
nxs_swiper: ^0.0.1 copied to clipboard

outdated

Nxs Swiper

NXS SWIPER

Swiper

Table of Contents #

Installing #

Add to pubspec.yaml file

dependencies:
  nxs_swiper: ^0.0.1

Import

import 'package:nxs_swiper/nxs_swiper.dart';

Demo #

Code example #

Code example (click to expand)
class IntroScreenState extends State<IntroScreen> {
  List<Slide> slides = [];

  @override
  void initState() {
    super.initState();

    slides.add(
      new Slide(
        title: "ERASER",
        description: "Allow miles wound place the leave had. To sitting subject no improve studied limited",
        pathImage: "images/photo_eraser.png",
        backgroundColor: Color(0xfff5a623),
      ),
    );
    slides.add(
      new Slide(
        title: "PENCIL",
        description: "Ye indulgence unreserved connection alteration appearance",
        pathImage: "images/photo_pencil.png",
        backgroundColor: Color(0xff203152),
      ),
    );
    slides.add(
      new Slide(
        title: "RULER",
        description:
            "Much evil soon high in hope do view. Out may few northward believing attempted. Yet timed being songs marry one defer men our. Although finished blessing do of",
        pathImage: "images/photo_ruler.png",
        backgroundColor: Color(0xff9932CC),
      ),
    );
  }

  void onDonePress() {
    // Do what you want
    print("End of slides");
  }

  @override
  Widget build(BuildContext context) {
    return new IntroSlider(
      slides: this.slides,
      onDonePress: this.onDonePress,
    );
  }
}
3
likes
0
points
21
downloads

Publisher

unverified uploader

Weekly Downloads

Nxs Swiper

License

unknown (license)

Dependencies

flutter

More

Packages that depend on nxs_swiper