introduction_slider 2.0.1 copy "introduction_slider: ^2.0.1" to clipboard
introduction_slider: ^2.0.1 copied to clipboard

Introduction/Onboarding slider package for flutter application with several features.

example/example.md

import 'package:flutter/material.dart';
import 'package:introduction_slider/introduction_slider.dart';

void main() => runApp(MaterialApp(home: MyApp()));

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return IntroductionSlider(
      items: [
        IntroductionSliderItem(
          logo: FlutterLogo(),
          title: Text("Title 1"),
          backgroundColor: Colors.red,
        ),
        IntroductionSliderItem(
          logo: FlutterLogo(),
          title: Text("Title 2"),
          backgroundColor: Colors.green,
        ),
        IntroductionSliderItem(
          logo: FlutterLogo(),
          title: Text("Title 3"),
          backgroundColor: Colors.blue,
        ),
      ],
      done: Done(
        child: Icon(Icons.done),
        home: HomePage(),
      ),
      next: Next(child: Icon(Icons.arrow_forward)),
      back: Back(child: Icon(Icons.arrow_back)),
      dotIndicator: DotIndicator(),
    );
  }
}

class HomePage extends StatelessWidget {
  const HomePage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: Center(child: Text('Home Page')),
    );
  }
}
86
likes
130
pub points
87%
popularity

Publisher

verified publisherrahulchouhan.me

Introduction/Onboarding slider package for flutter application with several features.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on introduction_slider