Skip to content

Commit 93f8169

Browse files
aditya-cssSahil-Simform
authored andcommitted
chore: ➖ Update deprecated ShowCaseWidget removal version
1 parent 643eeb8 commit 93f8169

File tree

2 files changed

+28
-26
lines changed

2 files changed

+28
-26
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@
3737
`targetTooltipGap` to manage space between tooltip and target widget
3838
- Improvement [#530](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/pull/530) -
3939
Upgraded minimum dart sdk version to 3.0.0 and utilised Dart 3 features accordingly.
40+
- Deprecate [#531](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/pull/531) -
41+
Update deprecated `ShowCaseWidget` removal version.
4042

4143
## [4.0.1]
4244
- Fixed [#493](https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/493) - ShowCase.withWidget not showing issue

lib/src/showcase_widget.dart

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,11 @@ class ShowCaseWidget extends StatefulWidget {
7474
/// - `hideFloatingActionWidgetForShowcase`: Hides a
7575
/// [globalFloatingActionWidget] for the provided showcase keys.
7676
@Deprecated(
77-
'This will be removed in v5.0.0. '
77+
'This will be removed in v6.0.0. '
7878
'Please use `ShowcaseView.register()` instead',
7979
)
8080
const ShowCaseWidget({
81-
@Deprecated('This will be removed in v5.0.0.') required this.builder,
81+
@Deprecated('This will be removed in v6.0.0.') required this.builder,
8282
this.onFinish,
8383
this.onStart,
8484
this.onComplete,
@@ -100,7 +100,7 @@ class ShowCaseWidget extends StatefulWidget {
100100
super.key,
101101
});
102102

103-
@Deprecated('This will be removed in v5.0.0.')
103+
@Deprecated('This will be removed in v6.0.0.')
104104
final WidgetBuilder builder;
105105

106106
/// Triggered when all the showcases are completed.
@@ -182,15 +182,15 @@ class ShowCaseWidget extends StatefulWidget {
182182
final List<GlobalKey> hideFloatingActionWidgetForShowcase;
183183

184184
@Deprecated(
185-
'This will be removed in v5.0.0. please use '
185+
'This will be removed in v6.0.0. please use '
186186
'`ShowcaseView.get().getCurrentActiveShowcaseKey` instead',
187187
)
188188
static GlobalKey? activeTargetWidget(BuildContext context) => context
189189
.findAncestorStateOfType<ShowCaseWidgetState>()
190190
?.getCurrentActiveShowcaseKey;
191191

192192
@Deprecated(
193-
'This will be removed in v5.0.0. please use '
193+
'This will be removed in v6.0.0. please use '
194194
'`ShowcaseView.get()` instead',
195195
)
196196
static ShowCaseWidgetState of(BuildContext context) {
@@ -256,7 +256,7 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {
256256

257257
@override
258258
Widget build(BuildContext context) => Builder(
259-
// Will be removed in v5.0.0.
259+
// Will be removed in v6.0.0.
260260
//ignore: deprecated_member_use_from_same_package
261261
builder: widget.builder,
262262
);
@@ -276,7 +276,7 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {
276276
///
277277
/// Refer this issue https://github.com/SimformSolutionsPvtLtd/flutter_showcaseview/issues/378
278278
@Deprecated(
279-
'This will be removed in v5.0.0. please use '
279+
'This will be removed in v6.0.0. please use '
280280
'`ShowcaseView.get().startShowCase` instead',
281281
)
282282
void startShowCase(
@@ -289,7 +289,7 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {
289289
/// Completes showcase of given key and starts next one
290290
/// otherwise will finish the entire showcase view
291291
@Deprecated(
292-
'This will be removed in v5.0.0. please use '
292+
'This will be removed in v6.0.0. please use '
293293
'`ShowcaseView.get().completed` instead',
294294
)
295295
void completed(GlobalKey? key) => _showcaseView.completed(key);
@@ -301,30 +301,30 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {
301301
/// move to next showcase. This is default behaviour for
302302
/// [TooltipDefaultActionType.next]
303303
@Deprecated(
304-
'This will be removed in v5.0.0. please use '
304+
'This will be removed in v6.0.0. please use '
305305
'`ShowcaseView.get().next` instead',
306306
)
307307
void next({bool force = false}) => _showcaseView.next(force: force);
308308

309309
/// Completes current active showcase and starts previous one
310310
/// otherwise will finish the entire showcase view
311311
@Deprecated(
312-
'This will be removed in v5.0.0. please use '
312+
'This will be removed in v6.0.0. please use '
313313
'`ShowcaseView.get().previous` instead',
314314
)
315315
void previous() => _showcaseView.previous();
316316

317317
/// Dismiss entire showcase view
318318
@Deprecated(
319-
'This will be removed in v5.0.0. please use '
319+
'This will be removed in v6.0.0. please use '
320320
'`ShowcaseView.get().dismiss` instead',
321321
)
322322
void dismiss() => _showcaseView.dismiss();
323323

324324
/// Disables the [ShowCaseWidget.globalFloatingActionWidget] for the
325325
/// provided keys.
326326
@Deprecated(
327-
'This will be removed in v5.0.0. please use '
327+
'This will be removed in v6.0.0. please use '
328328
'`ShowcaseView.get().hideFloatingActionWidgetForKeys` instead',
329329
)
330330
void hideFloatingActionWidgetForKeys(List<GlobalKey> updatedList) {
@@ -333,86 +333,86 @@ class ShowCaseWidgetState extends State<ShowCaseWidget> {
333333

334334
// Forward property accessors to ShowcaseManager
335335
@Deprecated(
336-
'This will be removed in v5.0.0. please use '
336+
'This will be removed in v6.0.0. please use '
337337
'`ShowcaseView.get().autoPlay` instead',
338338
)
339339
bool get autoPlay => _showcaseView.autoPlay;
340340

341341
@Deprecated(
342-
'This will be removed in v5.0.0. please use '
342+
'This will be removed in v6.0.0. please use '
343343
'`ShowcaseView.get().disableMovingAnimation` instead',
344344
)
345345
bool get disableMovingAnimation => _showcaseView.disableMovingAnimation;
346346

347347
@Deprecated(
348-
'This will be removed in v5.0.0. please use '
348+
'This will be removed in v6.0.0. please use '
349349
'`ShowcaseView.get().disableScaleAnimation` instead',
350350
)
351351
bool get disableScaleAnimation => _showcaseView.disableScaleAnimation;
352352

353353
@Deprecated(
354-
'This will be removed in v5.0.0. please use '
354+
'This will be removed in v6.0.0. please use '
355355
'`ShowcaseView.get().autoPlayDelay` instead',
356356
)
357357
Duration get autoPlayDelay => _showcaseView.autoPlayDelay;
358358

359359
@Deprecated(
360-
'This will be removed in v5.0.0. please use '
360+
'This will be removed in v6.0.0. please use '
361361
'`ShowcaseView.get().enableAutoPlayLock` instead',
362362
)
363363
bool get enableAutoPlayLock => _showcaseView.enableAutoPlayLock;
364364

365365
@Deprecated(
366-
'This will be removed in v5.0.0. please use '
366+
'This will be removed in v6.0.0. please use '
367367
'`ShowcaseView.get().enableAutoScroll` instead',
368368
)
369369
bool get enableAutoScroll => _showcaseView.enableAutoScroll;
370370

371371
@Deprecated(
372-
'This will be removed in v5.0.0. please use '
372+
'This will be removed in v6.0.0. please use '
373373
'`ShowcaseView.get().disableBarrierInteraction` instead',
374374
)
375375
bool get disableBarrierInteraction => _showcaseView.disableBarrierInteraction;
376376

377377
@Deprecated(
378-
'This will be removed in v5.0.0. please use '
378+
'This will be removed in v6.0.0. please use '
379379
'`ShowcaseView.get().enableShowcase` instead',
380380
)
381381
bool get enableShowcase => _showcaseView.enableShowcase;
382382

383383
@Deprecated(
384-
'This will be removed in v5.0.0. please use '
384+
'This will be removed in v6.0.0. please use '
385385
'`ShowcaseView.get().isShowCaseCompleted` instead',
386386
)
387387
bool get isShowCaseCompleted => _showcaseView.isShowCaseCompleted;
388388

389389
@Deprecated(
390-
'This will be removed in v5.0.0. please use '
390+
'This will be removed in v6.0.0. please use '
391391
'`ShowcaseView.get().scrollDuration` instead',
392392
)
393393
Duration get scrollDuration => _showcaseView.scrollDuration;
394394

395395
@Deprecated(
396-
'This will be removed in v5.0.0. please use '
396+
'This will be removed in v6.0.0. please use '
397397
'`ShowcaseView.get().blurValue` instead',
398398
)
399399
double get blurValue => _showcaseView.blurValue;
400400

401401
@Deprecated(
402-
'This will be removed in v5.0.0. please use '
402+
'This will be removed in v6.0.0. please use '
403403
'`ShowcaseView.get().getCurrentActiveShowcaseKey` instead',
404404
)
405405
GlobalKey? get getCurrentActiveShowcaseKey =>
406406
_showcaseView.getActiveShowcaseKey;
407407

408408
@Deprecated(
409-
'This will be removed in v5.0.0. please use '
409+
'This will be removed in v6.0.0. please use '
410410
'`ShowcaseView.get().isShowcaseRunning` instead',
411411
)
412412
bool get isShowcaseRunning => _showcaseView.isShowcaseRunning;
413413

414414
@Deprecated(
415-
'This will be removed in v5.0.0. please use '
415+
'This will be removed in v6.0.0. please use '
416416
'`ShowcaseView.get().hiddenFloatingActionKeys` instead',
417417
)
418418
List<GlobalKey> get hiddenFloatingActionKeys =>

0 commit comments

Comments
 (0)