{"id":27599664,"url":"https://github.com/crazycodeboy/flutter_splash_screen","last_synced_at":"2025-08-24T16:11:24.199Z","repository":{"id":38285115,"uuid":"178246972","full_name":"crazycodeboy/flutter_splash_screen","owner":"crazycodeboy","description":"A splash screen for flutter, hide when application loaded ,it works on iOS and Android.","archived":false,"fork":false,"pushed_at":"2024-02-19T04:46:36.000Z","size":2462,"stargazers_count":133,"open_issues_count":10,"forks_count":30,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-05-14T11:51:45.321Z","etag":null,"topics":["android","flutter","flutter-splash-screen","ios","splash-screen","splashscreen"],"latest_commit_sha":null,"homepage":null,"language":"Kotlin","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/crazycodeboy.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-03-28T16:56:13.000Z","updated_at":"2025-04-23T12:22:54.000Z","dependencies_parsed_at":"2024-02-19T05:46:40.500Z","dependency_job_id":null,"html_url":"https://github.com/crazycodeboy/flutter_splash_screen","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/crazycodeboy/flutter_splash_screen","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2Fflutter_splash_screen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2Fflutter_splash_screen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2Fflutter_splash_screen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2Fflutter_splash_screen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/crazycodeboy","download_url":"https://codeload.github.com/crazycodeboy/flutter_splash_screen/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/crazycodeboy%2Fflutter_splash_screen/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271901229,"owners_count":24841115,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-24T02:00:11.135Z","response_time":111,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["android","flutter","flutter-splash-screen","ios","splash-screen","splashscreen"],"created_at":"2025-04-22T15:40:56.998Z","updated_at":"2025-08-24T16:11:24.145Z","avatar_url":"https://github.com/crazycodeboy.png","language":"Kotlin","funding_links":[],"categories":[],"sub_categories":[],"readme":"# flutter_splash_screen\n\n[![Download](https://img.shields.io/badge/Download-v3.0.0-ff69b4.svg) ](https://pub.dartlang.org/packages/flutter_splash_screen)\n[ ![PRs Welcome](https://img.shields.io/badge/PRs-Welcome-brightgreen.svg)](https://github.com/crazycodeboy/flutter_splash_screen/pulls)\n[ ![flutter_splash_screen release](https://img.shields.io/github/release/crazycodeboy/flutter_splash_screen.svg?maxAge=2592000?style=flat-square)](https://github.com/crazycodeboy/GitHubPopular/releases)\n[![License MIT](http://img.shields.io/badge/license-MIT-orange.svg?style=flat)](https://raw.githubusercontent.com/crazycodeboy/flutter-check-box/master/LICENSE)\n[ ![RN](https://img.shields.io/badge/react-native-brightgreen.svg)](https://github.com/crazycodeboy/react-native-splash-screen)\n\nA splash screen API for flutter which can programatically hide and show the splash screen. Works on\nAndroid and iOS.\n\n## Content\n\n- [Changes](#changes)\n- [Installation](#installation)\n- [Examples](#examples)\n- [Getting started](#getting-started)\n- [API](#api)\n- [Testing](#testing)\n- [Troubleshooting](#troubleshooting)\n- [Contribution](#contribution)\n\n## Changes\n\n## Examples\n\n* [Examples](https://github.com/crazycodeboy/flutter_splash_screen/tree/master/example)\n\nScreenshots | Screenshots\n------|--------\n![flutter_splash_screen-Android](https://raw.githubusercontent.com/crazycodeboy/flutter_splash_screen/master/example/Screenshots/flutter-splash-screen-android.gif) | ![flutter_splash_screen-iOS](https://raw.githubusercontent.com/crazycodeboy/flutter_splash_screen/master/example/Screenshots/flutter-splash-screen-iOS.gif)\n\n## 1. Installation\n\n### Depend on it\n\nRun this command:\n\n```bash\nflutter pub add flutter_splash_screen\n```\n\n## 2. Plugin Configuration\n\n### Android\n\n#### Update the `MainActivity.kt`\n\nUpdate the `MainActivity.kt` to use `flutter_splash_screen` via the following changes:\n\n```kotlin\npackage org.devio.flutter.splashscreen.example\n\nimport android.os.Bundle\nimport io.flutter.embedding.android.FlutterActivity\n\nimport org.devio.flutter.splashscreen.SplashScreen // add\n\nclass MainActivity : FlutterActivity() {\n    override fun onCreate(savedInstanceState: Bundle?) {\n        // SplashScreen.show(this) \n        // or enable full screen\n        SplashScreen.show(this, true)\n        super.onCreate(savedInstanceState)\n    }\n}\n```\n\n#### Create `launch_screen.xml` file\n\nCreate a file called `launch_screen.xml` in `app/src/main/res/layout` (create the `layout`-folder if\nit doesn't exist). The contents of the file should be the following:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cFrameLayout xmlns:android=\"http://schemas.android.com/apk/res/android\"\n    android:layout_width=\"match_parent\" android:layout_height=\"match_parent\"\n    android:background=\"@android:color/white\"\u003e\n\n    \u003cImageView android:layout_width=\"match_parent\" android:layout_height=\"match_parent\"\n        android:layout_gravity=\"center|top\" android:scaleType=\"centerCrop\"\n        android:src=\"@mipmap/launch_screen\" /\u003e\n\u003c/FrameLayout\u003e\n```\n\nCustomize your launch screen by creating a `launch_screen.png`-file and placing it in an\nappropriate `mipmap`-folder. Android automatically scales drawable, so you do not necessarily need\nto provide images for all phone densities.\nYou can create splash screens in the following folders:\n\n* `mipmap-ldpi`\n* `mipmap-mdpi`\n* `mipmap-hdpi`\n* `mipmap-xhdpi`\n* `mipmap-xxhdpi`\n* `mipmap-xxxhdpi`\n\nAdd a color called `primary_dark` in `app/src/main/res/values/colors.xml`\n\n```\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources\u003e\n    \u003ccolor name=\"primary_dark\"\u003e#000000\u003c/color\u003e\n\u003c/resources\u003e\n```\n\n**Optional steps：**\n\nIf you want the splash screen to be transparent, follow these steps.\n\nOpen `android/app/src/main/res/values/styles.xml` and\nadd `\u003citem name=\"android:windowIsTranslucent\"\u003etrue\u003c/item\u003e` to the file. It should look like this:\n\n```xml\n\n\u003cresources\u003e\n    \u003c!-- Base application theme. --\u003e\n    \u003cstyle name=\"AppTheme\" parent=\"Theme.AppCompat.Light.NoActionBar\"\u003e\n        \u003c!-- Customize your theme here. --\u003e\n        \u003c!--设置透明背景--\u003e\n        \u003citem name=\"android:windowIsTranslucent\"\u003etrue\u003c/item\u003e\n    \u003c/style\u003e\n\u003c/resources\u003e\n```\n\n**To learn more\nsee [examples](https://github.com/crazycodeboy/flutter_splash_screen/tree/master/example)**\n\nIf you want to customize the color of the status bar when the splash screen is displayed:\n\nCreate `android/app/src/main/res/values/colors.xml` and add\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources\u003e\n    \u003ccolor name=\"status_bar_color\"\u003e\u003c!-- Colour of your status bar here --\u003e\u003c/color\u003e\n\u003c/resources\u003e\n```\n\nCreate a style definition for this in `android/app/src/main/res/values/styles.xml`:\n\n```xml\n\u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e\n\u003cresources\u003e\n    \u003cstyle name=\"SplashScreenTheme\" parent=\"SplashScreen_SplashTheme\"\u003e\n        \u003citem name=\"colorPrimaryDark\"\u003e@color/status_bar_color\u003c/item\u003e\n    \u003c/style\u003e\n\u003c/resources\u003e\n```\n\nChange your `show` method to include your custom style:\n\n```java\nSplashScreen.show(this,R.style.SplashScreenTheme);\n```\n\n### iOS\n\nCustomize your splash screen via  `LaunchScreen.storyboard`,\n\n**Learn more to\nsee [examples](https://github.com/crazycodeboy/flutter_splash_screen/tree/master/example)**\n\n## Usage\n\nUse like so:\n\n```dart\nimport 'dart:async';\n\nimport 'package:flutter/material.dart';\nimport 'package:flutter_splash_screen/flutter_splash_screen.dart';\n\nvoid main() =\u003e runApp(MyApp());\n\nclass MyApp extends StatefulWidget {\n  @override\n  _MyAppState createState() =\u003e _MyAppState();\n}\n\nclass _MyAppState extends State\u003cMyApp\u003e {\n  @override\n  void initState() {\n    super.initState();\n    hideScreen();\n  }\n\n  ///hide your splash screen\n  Future\u003cvoid\u003e hideScreen() async {\n    Future.delayed(Duration(milliseconds: 1800), () {\n      FlutterSplashScreen.hide();\n    });\n  }\n\n  ...\n```\n\n## API\n\n| Method | Type     | Optional | Description                         |\n|--------|----------|----------|-------------------------------------|\n| show() | function | false    | Open splash screen (Native Method ) |\n| hide() | function | false    | Close splash screen                 |\n\n## Testing\n\n## Contribution\n\nIssues are welcome. Please add a screenshot of you bug and a code snippet. Quickest way to solve\nissue is to reproduce it in one of the examples.\n\nPull requests are welcome. If you want to change the API or do something big it is best to create an\nissue and discuss it first.\n\n---\n\n**[MIT Licensed](https://github.com/crazycodeboy/flutter_splash_screen/blob/master/LICENSE)**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycodeboy%2Fflutter_splash_screen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrazycodeboy%2Fflutter_splash_screen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrazycodeboy%2Fflutter_splash_screen/lists"}