Skip to content

Commit

Permalink
Added "deprecated" message to removeAfter method (#334)
Browse files Browse the repository at this point in the history
Co-authored-by: Ivan Palikuca <ivan.palikuca@outlook.com>
  • Loading branch information
zuboje and Ivan Palikuca authored Apr 10, 2022
1 parent e37dad9 commit cf8c8de
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ When your app is opened, there is a brief time while the native app loads Flutte

You can now keep the splash screen up while your app initializes! No need for a secondary splash screen anymore. Just use the `preserve` and `remove` methods together to remove the splash screen after your initialization is complete. See [details below](https://pub.dev/packages/flutter_native_splash#3-set-up-app-initialization-optional).


Method `removeAfter` has been deprecated, `remove` method should be used insead.

# Usage

Would you prefer a video tutorial instead? Check out <a href="https://www.youtube.com/watch?v=dB0dOnc2k10">Johannes Milke's tutorial</a>.
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ packages:
path: ".."
relative: true
source: path
version: "2.1.3+1"
version: "2.1.4+1"
flutter_test:
dependency: "direct dev"
description: flutter
Expand Down
1 change: 1 addition & 0 deletions lib/flutter_native_splash.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import 'package:flutter/widgets.dart';
class FlutterNativeSplash {
static const MethodChannel _channel = MethodChannel('flutter_native_splash');

@Deprecated('This class is deprecated use [remove]')
static void removeAfter(
Future<void> Function(BuildContext) initializeFunction,
) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: flutter_native_splash
description: Customize Flutter's default white native splash screen with
background color and splash image. Supports dark mode, full screen, and more.
version: 2.1.3+1
version: 2.1.4+1
homepage: https://github.com/jonbhanson/flutter_native_splash

environment:
Expand Down

0 comments on commit cf8c8de

Please sign in to comment.