• Stars
    star
    1,370
  • Rank 33,002 (Top 0.7 %)
  • Language
    Dart
  • License
    MIT License
  • Created almost 5 years ago
  • Updated about 2 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Flutter plugin that allows you to showcase your features on flutter application. πŸ‘ŒπŸ”πŸŽ‰

Showcaes View - Simform LLC.

ShowCaseView

Build showcaseview

A Flutter package allows you to Showcase/Highlight your widgets step by step.

Preview

The example app running in Android

Migration guide for release 2.0.0

Renamed properties/fields of widgets mentioned below in the table.

Before After
autoPlayLockEnable enableAutoPlayLock
shapeBorder targetShapeBorder
showcaseBackgroundColor tooltipBackgroundColor
contentPadding tooltipPadding
overlayPadding targetPadding
radius targetBorderRadius
tipBorderRadius tooltipBorderRadius
disableAnimation disableMovingAnimation
animationDuration movingAnimationDuration

Removed unused parameter of Showcase.withWidget() mentioned below:

  • title
  • titleAlignment
  • titleTextStyle
  • description
  • descriptionAlignment
  • descTextStyle
  • textColor
  • tooltipBackgroundColor
  • tooltipBorderRadius
  • tooltipPadding

Installing

  1. Add dependency to pubspec.yaml

    Get the latest version in the 'Installing' tab on pub.dev

dependencies:
    showcaseview: <latest-version>
  1. Import the package
import 'package:showcaseview/showcaseview.dart';
  1. Adding a ShowCaseWidget widget.
ShowCaseWidget(
  builder: Builder(
    builder : (context)=> Somewidget()
  ),
),
  1. Adding a Showcase widget.
GlobalKey _one = GlobalKey();
GlobalKey _two = GlobalKey();
GlobalKey _three = GlobalKey();

...

Showcase(
  key: _one,
  title: 'Menu',
  description: 'Click here to see menu options',
  child: Icon(
    Icons.menu,
    color: Colors.black45,
  ),
),

Showcase.withWidget(
  key: _three,
  height: 80,
  width: 140,
  targetShapeBorder: CircleBorder(),
  container: Column(
    crossAxisAlignment: CrossAxisAlignment.start,
    children: <Widget>[
      ...
    ],
  ),
  child: ...,
),
  1. Starting the ShowCase
someEvent(){
    ShowCaseWidget.of(context).startShowCase([_one, _two, _three]);
}

If you want to start the ShowCaseView as soon as your UI built up then use below code.

WidgetsBinding.instance.addPostFrameCallback((_) =>
  ShowCaseWidget.of(context).startShowCase([_one, _two, _three])
);

Functions of ShowCaseWidget.of(context):

Function Name Description
startShowCase(List widgetIds) Starting the showcase
next() Starts next showcase
previous() Starts previous showcase
dismiss() Dismisses all showcases

Properties of ShowCaseWidget:

Name Type Default Behaviour Description
blurValue double 0 Provides blur effect on overlay
autoPlay bool false Automatically display Next showcase
autoPlayDelay Duration Duration(milliseconds: 2000) Visibility time of showcase when autoplay is enabled
enableAutoPlayLock bool false Block the user interaction on overlay when autoPlay is enabled.
enableAutoScroll bool false Allows to auto scroll to next showcase so as to make the given target visible.
scrollDuration Duration Duration(milliseconds: 300) Time duration for auto scrolling
disableBarrierInteraction bool false Disable barrier interaction
disableScaleAnimation bool false Disable scale transition for all showcases
disableMovingAnimation bool false Disable bouncing/moving transition for all showcases
onStart Function(int?, GlobalKey)? Triggered on start of each showcase.
onComplete Function(int?, GlobalKey)? Triggered on completion of each showcase.
onFinish VoidCallback? Triggered when all the showcases are completed
enableShowcase bool true Enable or disable showcase globally.

Properties of Showcase and Showcase.withWidget:

Name Type Default Behaviour Description Showcase ShowCaseWidget
key GlobalKey Unique Global key for each showcase. βœ… βœ…
child Widget The Target widget that you want to be showcased βœ… βœ…
title String? Title of default tooltip βœ…
description String? Description of default tooltip βœ…
container Widget? Allows to create custom tooltip widget. βœ…
height double? Height of custom tooltip widget βœ…
width double? Width of custom tooltip widget βœ…
titleTextStyle TextStyle? Text Style of title βœ…
descTextStyle TextStyle? Text Style of description βœ…
titleAlignment TextAlign TextAlign.start Alignment of title βœ…
descriptionAlignment TextAlign TextAlign.start Alignment of description βœ…
targetShapeBorder ShapeBorder If targetBorderRadius param is not provided then it applies shape border to target widget βœ… βœ…
targetBorderRadius BorderRadius? Border radius of target widget βœ… βœ…
tooltipBorderRadius BorderRadius? BorderRadius.circular(8.0) Border radius of tooltip βœ…
blurValue double? ShowCaseWidget.blurValue Gaussian blur effect on overlay βœ… βœ…
tooltipPadding EdgeInsets EdgeInsets.symmetric(vertical: 8, horizontal: 8) Padding to tooltip content βœ…
targetPadding EdgeInsets EdgeInsets.zero Padding to target widget βœ… βœ…
overlayOpacity double 0.75 Opacity of overlay layer βœ… βœ…
overlayColor Color Colors.black45 Color of overlay layer βœ… βœ…
tooltipBackgroundColor Color Colors.white Background Color of default tooltip βœ…
textColor Color Colors.black Color of tooltip text βœ…
scrollLoadingWidget Widget Loading widget on overlay until active showcase is visible to viewport when autoScroll is enable βœ… βœ…
movingAnimationDuration Duration Duration(milliseconds: 2000) Duration of time this moving animation should last. βœ… βœ…
showArrow bool true Shows tooltip with arrow βœ…
disableDefaultTargetGestures bool false disable default gestures of target widget βœ… βœ…
disposeOnTap bool? false Dismiss all showcases on target/tooltip tap βœ… βœ…
disableMovingAnimation bool? ShowCaseWidget.disableMovingAnimation Disable bouncing/moving transition βœ… βœ…
disableScaleAnimation bool? ShowCaseWidget.disableScaleAnimation Disable initial scale transition when showcase is being started and completed βœ…
scaleAnimationDuration Duration Duration(milliseconds: 300) Duration of time scale animation should last. βœ…
scaleAnimationCurve Curve Curves.easeIn Curve to use in scale animation. βœ…
scaleAnimationAlignment Alignment? Origin of the coordinate in which the scale takes place, relative to the size of the box. βœ…
onToolTipClick VoidCallback? Triggers when tooltip is being clicked. βœ…
onTargetClick VoidCallback? Triggers when target widget is being clicked βœ… βœ…
onTargetDoubleTap VoidCallback? Triggers when target widget is being double clicked βœ… βœ…
onTargetLongPress VoidCallback? Triggers when target widget is being long pressed βœ… βœ…
onBarrierClick VoidCallback? Triggers when barrier is clicked βœ… βœ…
tooltipPosition TooltipPosition? Defines vertical position of tooltip respective to Target widget βœ… βœ…
titlePadding EdgeInsets? EdgeInsets.zero Padding to title βœ…
descriptionPadding EdgeInsets? EdgeInsets.zero Padding to description βœ…
titleTextDirection TextDirection? Give textDirection to title βœ…
descriptionTextDirection TextDirection? Give textDirection to description βœ…

How to use

Check out the example app in the example directory or the 'Example' tab on pub.dartlang.org for a more complete example.

Scrolling to active showcase

Auto Scrolling to active showcase feature will not work properly in scroll views that renders widgets on demand(ex, ListView, GridView).

In order to scroll to a widget it needs to be attached with widget tree. So, If you are using a scrollview that renders widgets on demand, it is possible that the widget on which showcase is applied is not attached in widget tree. So, flutter won't be able to scroll to that widget.

So, If you want to make a scroll view that contains less number of children widget then prefer to use SingleChildScrollView.

If using SingleChildScrollView is not an option, then you can assign a ScrollController to that scrollview and manually scroll to the position where showcase widget gets rendered. You can add that code in onStart method of ShowCaseWidget.

Example,

// This controller will be assigned to respected sctollview.
final _controller = ScrollController();

ShowCaseWidget(
  onStart: (index, key) {
    if(index == 0) {
      WidgetsBinding.instance.addPostFrameCallback((_) {
       // If showcase widget is at offset 1000 in the listview.
       // If you don't know the exact position of the showcase widget,
       // You can provide nearest possible location.
       // 
       // In this case providing 990 instead of 1000 will work as well.
        _controller.jumpTo(1000);
      });
    }
  },
);

Main Contributors


Birju Vachhani

Devarsh Ranpara

Ankit Panchal

Kashifa Laliwala

Vatsal Tanna

Sanket Kachhela

Parth Baraiya

Shweta Chauhan

Mehul Kabaria

Dhaval Kansara

Happy Makadiya

Ujas Majithiya

License

MIT License

Copyright (c) 2021 Simform Solutions

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

More Repositories

1

SSComposeCookBook

A Collection of major Jetpack compose UI components which are commonly used.πŸŽ‰πŸ”πŸ‘Œ
Kotlin
577
star
2

SSCustomTabbar

Simple Animated tabbar with native control
Swift
550
star
3

SSCustomBottomNavigation

Animated TabBar with native control and Jetpack Navigation support..βœ¨πŸ”–πŸš€
Kotlin
476
star
4

SSSpinnerButton

Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a different spinner animations.
Swift
428
star
5

flutter_credit_card

A credit card widget for Flutter application.
Dart
385
star
6

flutter_calendar_view

A Flutter package allows you to easily implement all calendar UI and calendar event functionality. πŸ‘ŒπŸ”πŸŽ‰
Dart
370
star
7

SSffmpegVideoOperation

This is a library of FFmpeg for android... πŸ“Έ 🎞 πŸš‘
Kotlin
340
star
8

SSToastMessage

SSToastMessage is written purely in SwiftUI. It will add toast, alert, and floating message view over the top of any view. It is intended to be simple, lightweight, and easy to use. It will be a popup with a single line of code.
Swift
280
star
9

SSJetPackComposeProgressButton

SSJetPackComposeProgressButton is an elegant button with a different loading animations. πŸš€
Kotlin
265
star
10

ARKit2.0-Prototype

After Apple’s introduction of ARKit 2, we have been consistently working behind to create shared-AR experiences. Our goal is to improve the utility of mobile using AR experiences.
Swift
261
star
11

SSImagePicker

Easy to use and configurable library to Pick an image from the Gallery or Capture an image using a Camera... πŸ“Έ
Kotlin
261
star
12

audio_waveforms

Use this plugin to generate waveforms while recording audio in any file formats supported by given encoders or from audio files. We can use gestures to scroll through the waveforms or seek to any position while playing audio and also style waveforms
Dart
234
star
13

SSCustomEditTextOutLineBorder

Same as the Outlined text fields presented on the Material Design page but with some dynamic changes. πŸ“ πŸŽ‰
Kotlin
206
star
14

flutter_chatview

Highly customisable chat UI with reply and reaction functionality.
Dart
198
star
15

react-native-story-view

A React Native component to show image and video stories ✨ πŸŽ–
TypeScript
170
star
16

Awesome-Mobile-Libraries

This repo contains all the Open-source Libraries from iOS, Android, Flutter and React-Native.✨
164
star
17

react-native-reactions

A React Native animated reaction picker component ✨✨
TypeScript
134
star
18

react-native-radial-slider

React Native component to select or highlight a specific value from a range of values πŸ‘Œ ✨
TypeScript
130
star
19

SSPullToRefresh

SSPullToRefresh makes PullRefresh easy to use, you can provide your own custom animations or set simple gifs on refresh view. The best feature is Lottie animations in refresh view, it uses lottie animations to render high quality animations on pull refresh. πŸŽ‰πŸ’₯
Kotlin
114
star
20

react-native-spinner-button

React Native button component with multiple animated spinners
JavaScript
106
star
21

SSBiometricsAuthentication

Biometric factors allow for secure authentication on the Android platform.
Kotlin
102
star
22

SSComposeShowCaseView

SSComposeShowCaseView is a customizable show case view library in Jetpack compose which allows to showcase/highlight the particular features of the application with an engaging overlay. It also provides automatic showcase view feature with customised delay and opacity attributes. πŸŽ‰πŸ’₯
Kotlin
94
star
23

SSJetpackComposeSwipeableView

SSJetpackComposeSwipeableView is a small library which provides support for the swipeable views. You can use this in your lazyColumns or can add a simple view which contains swipe to edit/delete functionality.
Kotlin
91
star
24

react-native-animation-catalog

A collection of animated React Native components 🌟πŸ”₯
TypeScript
90
star
25

Kotlin-multiplatform-sample

A sample Kotlin Multiplatform project having native UI and shared bussiness logic on Android and iOS platforms.
Kotlin
84
star
26

SSCustomTabMenu

Customisable iOS bottom menu works like Tabbar
Swift
80
star
27

SSAndroidNeumorphicKit

Neomorphic UI kit for Android
Kotlin
72
star
28

SSCustomPullToRefresh

SSCustomPullToRefresh is an open-source library that uses UIKit to add an animation to the pull to refresh view in a UITableView and UICollectionView.
Swift
69
star
29

SSAppUpdater

SSAppUpdater is an open-source framework that compares the current version of the app with the store version and returns the essential details of it like app URL, new app version number, new release note, etc. So you can either redirect or notify the user to update their app.
Swift
67
star
30

SSStepper

SwiftUI package for creating custom stepper with gesture controls and flexible design as per your choice.
Swift
65
star
31

VonageVideoCalling_Android

Vonage Video Calling Android
Kotlin
63
star
32

SSExpandableRecylerView

Expandable Recyclerview makes it easy to integrate nested recycler view...πŸ”¨ πŸ“
Kotlin
59
star
33

SSCustomSideMenu

Side Menu Custom Control for iOS apps
Swift
55
star
34

SSSwiftUIGIFView

SSSwiftUIGIFView is a custom controller which helps to load GIF in SwiftUI.
Swift
53
star
35

react-native-skia-catalog

A collection of animated React Native Skia components 🌟
TypeScript
52
star
36

SSArcSeekBar

Different type of arc seekbar. Easy to use and configure your own seekbar using all the attributes.
Kotlin
52
star
37

SSComposeOTPPinView

A custom OTP view to enter a code usually used in authentication. It includes different types of OTPViews which is easy to use and configure your own view and character of OTP using all the attributes. πŸ“² πŸ”’ ✨
Kotlin
50
star
38

SSPlaceHolderTableView

SSPlaceholderTableView is Placeholder Library for different different state wise placeHolder for UITableView/UICollectionView. Check https://www.cocoacontrols.com/controls/ssplaceholdertableview
Swift
50
star
39

SSFloatingLabelTextField

Swift
44
star
40

SSLineChart

SSLineChart provides you with the additional functionality of gradient color fill which cannot be found in any library specially Watchkit Libraries.
Swift
44
star
41

SSSwiftUISpinnerButton

SSSwiftUISpinnerButton is a collection of various spinning animations for buttons in SwiftUI.
Swift
43
star
42

react-native-tree-selection

A high-performance and lightweight tree selection library for React NativeπŸŽ–
TypeScript
42
star
43

SSNaturalLanguage

Swift
42
star
44

react-native-photos-gallery

A React Native custom animated photo gallery component to open and view photos ✨
TypeScript
41
star
45

react-native-country-code-select

A React Native component that allows users to select a country code ✨ πŸ”₯
TypeScript
41
star
46

Jetpack-compose-sample

Forget about bunch of XML files for maintaining UIs. Jetpack Compose is Android’s modern toolkit for building native UI. Here is a small example to get started.
Kotlin
38
star
47

SSMediaLibrary

Swift
38
star
48

SSVerticalPanoramaImage

Capture stunning vertical panorama images with ease and preview them instantly on the built-in screen.
Swift
37
star
49

SSCircularSlider

A simple, powerful and fully customizable circular slider, written in swift.
Swift
37
star
50

react-native-images-preview

A React Native animated custom image preview component ✨
TypeScript
36
star
51

SSCalendarControl

SSCalendarControl is small and highly customizable calendar control written in swift.
Swift
35
star
52

SSNeumorphicKit

Swift
35
star
53

SSSwiftyGo

Swift
35
star
54

flutter_vonage_video_call_demo

This application provides demo of one to one video call using Vonage Video API. Since there is no office support for flutter from voyage, this demo uses platform channel to communicate with native voyage SDK.
Kotlin
35
star
55

SSMultiSwipeCellKit

Swift
34
star
56

react-native-sticky-table

React Native sticky table component to elevate the app's data presentation and visualization experience ✨
TypeScript
32
star
57

react-native-audio-waveform

React Native component to show audio waveform with ease in react native application ✨
TypeScript
32
star
58

SSSwiper

SSSwiper is used to create swipe gestures action inside any view just by adding a modifier to the View with various customization options
Swift
31
star
59

Fitness-App-ARKit

Fitness App build with ARKit.
Swift
30
star
60

tesseract-OCR-iOS-demo

This prototype is to recognize text inside the image and for that it uses Tesseract OCR. The underlying Tesseract engine will process the picture and return anything that it believes is text.
Swift
30
star
61

SSStoryStatus

SSStoryStatus: Elevate your SwiftUI projects with seamless user list integration and captivating story displays. Empowering developers with effortless integration and complete UI customization, this versatile library makes showcasing stories a breeze.
Swift
28
star
62

SSInstaFeedParser

A Flutter package allows you to fetch basic data from a Instagram profile url which is public and verified.
Dart
25
star
63

SSSwiftUISideMenu

SSSwiftUISideMenu: Your ultimate iOS side menu companion. This customizable and intuitive library facilitates seamless navigation within your app, offering left and right panel support. Effortlessly integrate and personalize UI elements and animation styles to elevate your user experience.
Swift
25
star
64

react-native-graph-kit

Personalized graphs featuring customizable options for React Native app πŸ“ˆ
TypeScript
23
star
65

SSFacebookLogin

The Reusable Facebook Login Components for iOS is the easiest way to get data from Facebook.
Swift
22
star
66

battleship_flutter_flame

Dart
20
star
67

SSSceneFormSdkSample

This is an Augmented Reality Android app that is made by using ARcore and Sceneform SDK. πŸ“Έ πŸŽ‰
Kotlin
18
star
68

Kotlin-Extensions

Library contains common extensions for Android
Kotlin
15
star
69

SSSwiftUILoader

A customisable, simple and elegant loader in SwiftUI.
Swift
15
star
70

SSSwiftUIVideoLayerView

SSSwiftUIVideoPlayerLayer is a custom controller which helps to load video in SwiftUI.
Swift
14
star
71

SSProgressBar

Customizable progressbar
Swift
14
star
72

CMPedometerDemo

Let's count steps using CMPedometer
Swift
14
star
73

SSGoogleLogin

The GoogleSigninReusabelComponets for iOS is the easiest way to get data from Google .
Swift
14
star
74

SSAudioRecorderWithWaveForm

SSAudioRecorderWithWaveForm is recording audio with wave form. πŸŽ‰πŸŽ€
Kotlin
13
star
75

SSCustomCameraControl

Custom camera control
Kotlin
12
star
76

CreateFirebaseDynamicLinks

Swift
10
star
77

ios-commons

added few old helpers (need to updated) as initial version to work on
Swift
9
star
78

SSTwitterLogin

The reusable Twitter login components for iOS is the easiest way to get data from Twitter.
Swift
9
star
79

Workouts-TV-app

Swift
8
star
80

Game-With-AR

Swift
8
star
81

flutter_project_template

Dart
7
star
82

SSLinkedIn

Objective-C
7
star
83

MVVMListDemo

Swift
7
star
84

iOS-BarcodeScan

Objective-C
6
star
85

android-demos

Kotlin
5
star
86

SSSwiftUIVideoPlayerLayer

Swift
4
star
87

react-native-downloader

A audio video file downloader app with foreground and background download support
JavaScript
4
star
88

NewsApp-RIBs

News app with Listview and Pageview using uber's RIBs Architecture
Swift
3
star
89

SwiftUI-Combine-MVVM

Swift
3
star
90

flutter_ss_placeholder_view

A Flutter package allows you to add placeholder content while loading or empty items.🚧
Dart
3
star
91

MVVMDemo

Architecture of iOS Application, Swift
Swift
2
star
92

BiometricReactNative

Biometric authentication with react-native app
JavaScript
2
star
93

Kotlin-CoRoutines

Kotlin
2
star
94

DFPDemo

For showing Ad's , Swift
Swift
2
star
95

QualityCodeSample

Swift
2
star
96

Android_Project_Setup

Kotlin
2
star
97

GoogleLogin

Swift
2
star
98

android_simform_sample_app

The sample app uses Github's GraphQL APIs to query the Simform's Github repositories and list them using compose views in the Android application.
Kotlin
2
star
99

SSNeumorphicSwiftUIKit

1
star
100

react-native-saga-operations

Repository for Redux-saga operations
JavaScript
1
star