flutter_onboarding_screen_adaptive 2.0.3 copy "flutter_onboarding_screen_adaptive: ^2.0.3" to clipboard
flutter_onboarding_screen_adaptive: ^2.0.3 copied to clipboard

Flutter package that provides a customizable onboarding experience for new users. It includes a series of pages with navigation controls and animations, designed to introduce users to the app's featur [...]

Onboarding Screen #

The Onboarding Screen is a Flutter package that provides a customizable onboarding experience for new users. It includes a series of pages with navigation controls and animations, designed to introduce users to the app's features in a user-friendly manner.

Created by @badiniibrahim #

Liked some of my work? Buy me a coffee. Thanks for your support ❤️

Buy Me A Coffee

Screenshot #

  • IOS [Onboarding Screen IOS]

  • Android [Onboarding Screen Android]

Features #

  • Horizontal page navigation with swipe gestures.
  • Progress indicators to show the current onboarding page.
  • "Next" and "Skip" buttons for user convenience.
  • Animated transitions between pages.
  • Built with GetX for efficient state management.

Getting Started #

Add the dependency to your pubspec.yaml file:

dependencies:
  ...
  flutter_onboarding_screen_adaptive: latest_version

Here's a complete example showcasing the usage of the Onboarding Screen: #

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return GetMaterialApp(
      home: OnboardingScreen(
        pages: [
          PageOne(),
          PageTwo(),
          PageThree(),
        ],
        onSkipSelected: () {
          // Handle skip action
        },
        onGetStarted: () {
          // Handle get started action
        },
        selectedColor: Colors.blue,
        unselectedColor: Colors.grey,
        indicatorSize: 20.0,
        skipText: "Skip",
        btnBackgroundColor: Colors.blue,
      ),
    );
  }
}

class PageOne extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(child: Text('Welcome to Page One'));
  }
}

class PageTwo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(child: Text('Welcome to Page Two'));
  }
}

class PageThree extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Center(child: Text('Welcome to Page Three'));
  }
}

Parameters #

  • pages: (required) - A list of widgets representing the onboarding pages.
  • selectedColor: The color of the selected page indicator. Default is Colors.blue.
  • unselectedColor: Color - The color of the unselected page indicators. Default is Colors.grey.
  • indicatorSize:double - The size of the page indicators. Default is 20.0.
  • skipText:String - The text for the skip button. Default is "Skip".
  • onSkipSelected: Function() - Callback when the skip button is pressed.
  • btnBackgroundColor: Color - The background color of the navigation buttons. Default is Colors.blue.
  • onGetStarted: Function() - Callback when the get started button is pressed.

LinkedIn #

Connect with me on LinkedIn

8
likes
0
points
37
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter package that provides a customizable onboarding experience for new users. It includes a series of pages with navigation controls and animations, designed to introduce users to the app's features in a user-friendly manner.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

animate_do, cupertino_icons, flutter, get, get_cli

More

Packages that depend on flutter_onboarding_screen_adaptive