initialize static method
void
initialize()
Prevents flutter frame to be rendered but framework will still produce frames.
Call this in main
method before any other methods to load provided
source and other dependencies.
To resume flutter frames call resume. Before resume
is called, app
wait in native splash screen.
void main() {
WidgetsFlutterBinding.ensureInitialized();
SplashMaster.initialize();
runApp(
MaterialApp(
home: SplashMaster.video(...),
),
);
}
Implementation
static void initialize() {
WidgetsBinding.instance.deferFirstFrame();
}