Skip to content

Instantly share code, notes, and snippets.

@AbedElazizShe
Created December 7, 2020 16:29
Show Gist options
  • Save AbedElazizShe/84c95cce81ead503bb7e0e7f874baa6d to your computer and use it in GitHub Desktop.
Save AbedElazizShe/84c95cce81ead503bb7e0e7f874baa6d to your computer and use it in GitHub Desktop.
Splash View class
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