Skip to content

Commit

Permalink
Refine output.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbhanson committed Apr 3, 2022
1 parent 29029e3 commit b95c197
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 11 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## [2.1.3] - (2022-Apr-03)
## [2.1.3+1] - (2022-Apr-03)
* Updated documentation. Closes [#327](https://github.com/jonbhanson/flutter_native_splash/issues/327).
* `remove` correctly handles multiple plist files. Fixes [#247](https://github.com/jonbhanson/flutter_native_splash/issues/247).
## [2.1.2+1] - (2022-Mar-27)
Expand Down
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@

[![pub package](https://img.shields.io/pub/v/flutter_native_splash)](https://pub.dev/packages/flutter_native_splash)
[![Build Status](https://img.shields.io/travis/jonbhanson/flutter_native_splash)](https://travis-ci.org/jonbhanson/flutter_native_splash)

When your app is opened, there is a brief time while the native app loads Flutter. By default, during this time, the native app displays a white splash screen. This package automatically generates iOS, Android, and Web-native code for customizing this native splash screen background color and splash image. Supports dark mode, full screen, and platform-specific options.

<p align='center'>
Expand All @@ -21,7 +17,7 @@ First, add `flutter_native_splash` as a dependency in your pubspec.yaml file.

```yaml
dependencies:
flutter_native_splash: ^2.1.3
flutter_native_splash: ^2.1.3+1
```

Don't forget to `flutter pub get`.
Expand Down
4 changes: 2 additions & 2 deletions lib/android.dart
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ void _applyLaunchBackgroundXml(
required bool showImage,
bool showBranding = false,
String brandingGravity = 'bottom'}) {
print('[Android] - ' + launchBackgroundFilePath);
print('[Android] - ' + launchBackgroundFilePath);
final launchBackgroundFile = File(launchBackgroundFilePath);
launchBackgroundFile.createSync(recursive: true);
var launchBackgroundDocument = XmlDocument.parse(_androidLaunchBackgroundXml);
Expand Down Expand Up @@ -277,7 +277,7 @@ void _applyStylesXml({
String? android12BrandingImagePath,
}) {
final stylesFile = File(file);
print('[Android] - ' + file);
print('[Android] - ' + file);
if (!stylesFile.existsSync()) {
print('[Android] No $file found in your Android project');
print('[Android] Creating $file and adding it to your Android project');
Expand Down
3 changes: 2 additions & 1 deletion lib/cli_commands.dart
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,9 @@ void createSplashByConfig(Map<String, dynamic> config) {

const String _greet = '''
Native splash complete. 👍
Native splash complete.
Now go finish building something awesome! 💪 You rock! 🤘🤩
Like the package? Please give it a 👍 here: https://pub.dev/packages/flutter_native_splash
''';

const String _whatsNew = '''
Expand Down
2 changes: 1 addition & 1 deletion lib/ios.dart
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ void _applyImageiOS({
required List<_IosLaunchImageTemplate> list,
String targetPath = _iOSAssetsLaunchImageFolder,
}) {
print('[iOS] Creating ' + (dark ? 'dark mode ' : '') + ' images');
print('[iOS] Creating ' + (dark ? 'dark mode ' : '') + 'images');

final image = decodeImage(File(imagePath).readAsBytesSync());
if (image == null) {
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
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
version: 2.1.3+1
homepage: https://github.com/jonbhanson/flutter_native_splash

environment:
Expand Down

0 comments on commit b95c197

Please sign in to comment.