features_tour 0.6.2
features_tour: ^0.6.2 copied to clipboard
Features Tour is a package that enables you to easily create tours to introduce your widget features in your app with order.
0.6.2 #
- Fixed the overlay level mismatch that blocked FeaturesTour button interactions.
0.6.1 #
- Use fvm to control the flutter version to make the code works as expected.
- Fix some code that only works in the newer flutter version.
0.6.0 #
- BREADKING CHANGE: Remove all deprecated methods.
- Bump version of dart sdk to
^3.7.0and flutter to>=3.29.0.
0.5.0 #
- Bump very_good_analysis to
v10.0.0. - Release to stable.
0.5.0-rc.10 #
- Adds
FeaturesTourPaddingto add a padding while introducing specific indexes.
0.5.0-rc.9 #
- Fixes an issue where logging did not function as expected.
0.5.0-rc.8 #
- Deprecates
debugLogin theFeaturesTourController.start(debugLog)in favor ofFeaturesTourController(debugLog).
0.5.0-rc.7 #
-
Adds
onStatecallback toFeaturesTourController.startto receive [TourState] update during the tour lifecycle. -
Adds
IntroduceConfig.builderso we can decor theintroducewidget easily and globally. -
Adds
RoundedRectIntroduceConfigthat make the introducion looks better. -
Deprecates
Predialogandpredialogin favor ofPreDialogandpreDialogaccoss the code base. -
Deprecates
FeaturesTour.canPopin favor ofFeaturesTourController.start(popToSkip). -
Deprecates
PreDialogConfig.modifiedDialogResultin favor ofPreDialogConfig.customDialogBuilder. -
Deprecates:
PreDialogConfig.applyToAllPagesTextin favor ofPreDialogConfig.applyToAllCheckboxLabel.PreDialogConfig.applyToAllPagesTextColorin favor ofPreDialogConfig.applyToAllCheckboxLabelStyle.PreDialogConfig.acceptButtonTextin favor ofPreDialogConfig.acceptButtonLabel.PreDialogConfig.laterButtonTextin favor ofPreDialogConfig.laterButtonLabel.PreDialogConfig.dismissButtonTextin favor ofPreDialogConfig.dismissButtonLabel.
-
Deprecates
ChildConfig.childin favor ofChildConfig.builder.NextConfig.childin favor ofNextConfig.builder.SkipConfig.childin favor ofSkipConfig.builder.DoneConfig.childin favor ofDoneConfig.builder.
-
Reverses the order of the action buttons in the pre-dialog.
-
Changes the
PreDialogConfig.acceptTextLabeldefault text fromOkaytoStart Tour. -
Changes to use
DefaultTextStyle.mergeinstead ofDefaultTextStyle. -
Improves TYPO and grammar in logs.
-
Changes to use
very_good_analysislints. -
Adds many base tests and many logic improvements while creating tests :).
This is a significant change with many deprecations, but I believe it’s worth it. Please let me know if there’s anything I should avoid changing.
0.5.0-rc.6 #
- Enhance state update logic to check if the globalKey context is mounted in
FeaturesChild. - Refactor
FeaturesTourControllerto manage cached states and improve state registration/unregistration logic. - Refactor
FeaturesTourto convert fromStatelessWidgettoStatefulWidgetand manage registration/unregistration of the controller. - Add a restart tour button to the example.
0.5.0-rc.5 #
- Fix the issue that the
enableAnimationis not applied correctly - Fix the issue that makes the child scale even when the animation is disabled.
0.5.0-rc.4 #
- Used the
AnimationControllerinstead ofTimer.perodic. - Improved the way to handle the
nextIndex. - Improved the way to handle the transition state.
0.5.0-rc.3 #
-
Deprecations:
- Deprecated the
waitForFirstIndexparameter inFeaturesTourController. UsefirstIndexinstead for improved clarity and consistency. - Deprecated the
waitForFirstTimeoutparameter inFeaturesTourController. UsefirstIndexTimeoutfor better alignment with naming conventions. - Deprecated the
waitForIndexparameter inFeaturesTour. Replaced withnextIndexfor a more intuitive understanding. - Deprecated the
waitForTimeoutparameter inFeaturesTour. UsenextIndexTimeoutfor a clearer and more descriptive alternative.
- Deprecated the
-
Updates:
- Added a new "Flow" section to the README to provide a comprehensive overview of the FeaturesTour workflow, making it easier for users to understand and implement.
- Enhanced the example.
0.5.0-rc.2 #
-
Deprecations:
- Remove all old deprecated parameters (
FeaturesTour.onPressedandSkipConfig.isCallOnPressed).
- Remove all old deprecated parameters (
-
Updates:
- Enhanced the example.
- Enhanced the README.
0.5.0-rc.1 #
-
Features:
- BREAKING CHANGE: Automatically adapts to the app's dark/light theme.
- Waits for the drawer animation to finish before proceeding.
- Introduced
onBeforeIntroduceandonAfterIntroduceparameters for enhanced control.
-
Fixes:
- Resolved the issue where
waitForIndexwould still activate even after users tapped theSKIPbutton.
- Resolved the issue where
-
Deprecations:
-
Remove all old deprecated methods.
-
Deprecated the
onPressedparameter inFeaturesTourin favor ofonAfterIntroduce. -
Deprecated the
isCallOnPressedparameter inSkipConfigin favor ofonAfterIntroduce(IntroduceResult):// This code FeaturesTour( skipConfig: SkipConfig( // We don't want to `doSomething` when users press the SKIP button isCallOnPressed: false, ), onPressed: () => doSomething(), ) // Will become FeaturesTour( onAfterIntroduce: (result) { // We only want to `doSomething` when users press the NEXT or DONE buttons if (result == IntroduceResult.next || result == IntroduceResult.done) { doSomething(); } } )
-
-
Updates:
- Enhanced the example for better clarity.
- Updated the README to reflect the latest changes.
0.4.13 #
- Add
debugLogparameter to thetourController.startmethod to enable or disable debug logging. - Prevent screen flashing during the transition between two
FeaturesTourinstances by maintaining the background color. - Fix the issue that makes the buttons (
Next,SkipandDone) appear under the keyboard. - Update the introduction video.
0.4.12 #
- Add
canPopparameter to theFeaturesTourto control thePopScope. - Add
applyToAllPagesTextColorparameter to PredialogConfig to set the color for theApply to all pagestext. - Improve the style of the pre-dialog checkbox and label.
0.4.11 #
FeaturesTouris now aconst.- It's safe to wrap
FeaturesTours with aFeaturesTour(It had the duplicatedGlobalKeyissue before). - Add
onAcceptButtonPressed,onLaterButtonPressedandonDismissButtonPressedto thePredialogto handle those button pressed callbacks. - Refactor internal code.
0.4.10 #
- [Feat] Add an ability to show on top of all Overlays.
- [Refactor] Improve comments.
0.4.9 #
- Fixed the issue that make the package keeps introduce a widget even when
waitForTimeoutis reached.
0.4.8 #
- Fixed the issue that the tours run incorrectly when
forceis set totrue.
0.4.7 #
- Add the
enableAnimationto theChildConfigto make it easier to enable/disable the animation. - Update the topics.
0.4.6+1 #
- Improve the pub score.
- Small update for the example.
0.4.6 #
- The
shapeBorderof theChildConfignow works correctly. - Auto apply the dark theme to the
introducewidget with theapplyDarkThemeparameter in theIntroduceConfig. - Add a border to the outter child widget.
0.4.5 #
- Replace the
showDialogwith theOverlayto avoid hiding the keyboard.
0.4.4 #
- Rename and mark the old one as deprecated:
PredialogConfig.copyWithtoPredialogConfig.ChildConfig.copyWithtoChildConfig.IntroduceConfig.copyWithtoIntroduceConfig.NextConfig.copyWithtoNextConfig.SkipConfig.copyWithtoSkipConfig.DoneConfig.copyWithtoDoneConfig.
- Improve the way to print the debug log.
- Fix some TYPO.
0.4.3 #
- Fixed an issue caused
barrierDismissiblein the ChildConfig doesn't work properly.
0.4.2 #
- Avoid text overflowing for the
applyToAllPagesTextin the pre-dialog by usingFittedBox.
0.4.1+2 #
- Update example.
- Add a demo website using the example on README.
0.4.1+1 #
- Fix: README typo. (Thanks @ashwinkey04)
0.4.1 #
- The Done button doesn't show correctly when it's called by a
waitForIndexintroduction. - Automatically calculate the position of the introduce widget in QuadrantAlignment.top and bottom, so the
introducewidget is always at the top/bottom center comparing to itschild. - Update example.
0.4.0 #
- Change to BSD 3-Clause License.
- Release to stable.
0.4.0-rc.2 #
- Improves the Done button behavior when there is a new FeaturesTour is added.
0.4.0-rc.1 #
- Add
Donebutton to show on the last introduction (NextandSkipbutton will be hidden). indexinFeaturesTouris required since this version.
0.3.1 #
- Fixes issue that the last state is not removed.
0.3.0 #
- Release to stable.
0.3.0-rc.6 #
- Fix an issue related to
enabledparameter.
0.3.0-rc.5 #
- Caches the GlobalKey better.
0.3.0-rc.4 #
- Avoid creating unnecessary new GlobalKey that causes issues (needs double taps to trigger a function).
- Avoid duplicating an introduction.
0.3.0-rc.3 #
- Only add
GlobalKeyto the enabledFeaturesTour.
0.3.0-rc.2 #
-
Move
waitForFirstIndexandwaitForFirstTimeoutfromFeaturesTourControllertostartmethod. -
Change the
contextparameter in thestartmethod from named to positioned parameter. -
Change to use
StatelessWidgetforFeaturesTour. -
Ignore the unmounted Widget correctly.
-
Able to adapt with the transition of the Widget like the Drawer.
-
Add an effective way to control the list of states to avoid the duplicated state issue.
-
Migration:
- Before:
final tourController = FeaturesTourController( 'Page', waitForFirstIndex: 1.0, waitForFirstTimeout: const Duration(seconds: 4), ); tourController.start(context: context);- Now:
final tourController = FeaturesTourController('Page'); tourController.start( context, waitForFirstIndex: 1.0, waitForFirstTimeout: const Duration(seconds: 3), );
0.3.0-rc.1 #
- Fixes issue that the
rectaccept thenullvalue causes infinity loading.
0.3.0-rc #
-
Bump Dart min sdk to 3.0.0.
-
The parameter
childinside theChildConfigis now passed with the "real" child, so we can easily modify the child widget.- Before:
ChildConfig.copyWith( child: YourFakeChildWidget(), ),- Now:
ChildConfig.copyWith( child: (child) { return YourFakeWidget( child: child, ); }, ), -
The
Nextbutton andSkipbutton are changed toElevatedButtonby default. -
The
Nextbutton text is changed toNEXTandSkipbutton text is changed toSKIP. -
The
NextConfigandSkipConfigbutton have achildparameter to create your own button. -
The
introducealignment is automaticaly calculated denpens on the position of thechildwidget.
0.2.2 #
- Add
dismissibleparameter toChildConfig, so users can tap anywhere to move to the next introduce (can be a replacement for the Next button). - Update dependencies.
0.2.1 #
- Update comments.
- Update homepage URL.
0.2.0 #
- Add
waitForFirstIndexandwaitForFirstTimeouttoFeaturesTourController. - Pre-Dialog:
- Add
dismissbutton to dismiss the current page, the tour will not shows again even when a new one is added. - Add
acceptButtonStyle,laterButtonStyleanddismissButtonStyle. - Change button text type from
StringtoText.
- Add
- Improve README.
0.1.4 #
- [BREAKING CHANGE BUG] Not completely renamed from
yesButtonTextandnoButtonTexttoacceptButtonTextandcancelButtonTextin thePredialogConfig. - [BUG]
SkipButtonget a wrong text color fromNextButton.
0.1.3 #
- Add border to the Skip and Next button by default (with color of text color).
- Add
textStyleandbuttonStyleparameters toSkipConfigandNextConfigto modify the Next and Skip button style.
0.1.2 #
- Rename
doNotAskAgainTexttoapplyToAllPagesTextinPredialogConfigto make it easier to understand. Also changed fromDo not ask again this timetoApply to all pages. - Resize the predialog text and checkbox.
- Using sdk: ">=2.18.0 <4.0.0" and flutter: ">=3.3.0".
- Add
debugLogparameter tosetGlobalConfigto allow disabling the debug logs.
0.0.5+3 #
- Update dependencies.
- Improve pub score.
0.0.5+2 #
- Improve pub score.
0.0.5 #
- Add
waitForIndexandwaitForTimeoutto able to wait for a next specific index. The screen will be freesed when waiting for the next index. - The tours is now respect the
forceparameter correctly:null(default): only show when needed.true: force to show all the tours, including pre-dialogs.false: force to not show all the tours and pre-dialogs.
- Add example for the new parameters.
0.0.4 #
- Allow using your own pre-dialog by using
modifiedDialogResultparameter inPredialogConfig. - Slightly reduce the default pre-dialog content bottom padding.
- Update README.
0.0.3 #
onPressedis now can use asFuturemethod. The next widget of the tour will be only called when this Future is completed.- The tours now will sort the new added states (some states need time to appear).
- Add
isAnimateChildandborderSizeInflateto ChildConfig:isAnimateChildis allow it to be animated along with the border.borderSizeInflateis alow to set it to be bigger than the child widget. So the border widget is now bigger than the child widget 3 delta.
- Add
isCallOnPressedto ChildConfig to allow theonPressedmethod to be called when user presses the Skip button. - Avoid
onPressedis called multiple times when it needs time to be completed.
0.0.2 #
- Improves loading and update behavior.
0.0.1 #
- Initial release.
