Created
December 7, 2020 16:29
-
-
Save AbedElazizShe/84c95cce81ead503bb7e0e7f874baa6d to your computer and use it in GitHub Desktop.
Splash View class
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import android.content.Context | |
import android.os.Bundle | |
import android.view.LayoutInflater | |
import android.view.View | |
import io.flutter.embedding.android.SplashScreen | |
class SplashView : SplashScreen { | |
override fun createSplashView(context: Context, savedInstanceState: Bundle?): View? = | |
LayoutInflater.from(context).inflate(R.layout.splash_view, null, false) | |
override fun transitionToFlutter(onTransitionComplete: Runnable) { | |
onTransitionComplete.run() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment