flutter_swipe_tutorial 1.1.1

SDKflutter
Platformandroidioswindowslinuxmacosweb

A customizable and easy-to-use Flutter package for creating swipe-based tutorials.

Flutter Swipe Tutorial

This is used to create a swipe tutorial for your flutter app easily.

Installation

$ flutter pub add flutter_swipe_tutorial

Usage

Wrap You Widget With Swipe Tutorial to get the swipe tutorial effect.

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

class SwipeTutorialExample extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
        appBar: AppBar(
          title: Text('Swipe Tutorial Example'),
        ),
        body: SwipeTutorial(
        Center(
          child: Text('Swipe Tutorial Example'),
        ),
      ),
    );
  }
}

Properties

Swipe Tutorial Widget has the following properties:

PropertyTypeDescription
childWidgetThe widget to be wrapped with swipe tutorial
swipeDirectionSwipeDirectionThe direction of the swipe tutorial
backgroundColorColorThe background color of the swipe tutorial
animationBoxHeightdoubleHeight of the Animation Widget Contained Box
animationBoxWidthdoubleWidth of the Animation Widget Contained Box
animationControllerAnimationControllerThe animation controller of the swipe tutorial
animationAnimationThe animation of the swipe tutorial
showTutorialboolTo display or hide the swipe tutorial
tutorialWidgetAlignmentAlignmentAlignment of the Swipe Tutorial Child Widget
paddingEdgeInsetsGeometryPadding inside Swipe Tutorial Widget