Global gate that holds NibMotion entrance animations at their initial
frame until the app signals that it's actually visible to the user.
By default the gate is open (ready starts true), so NibMotion only
applies its small built-in NibMotionConfig.entranceWarmup
before starting entrance animations.
Apps that preserve a native splash screen (e.g. via flutter_native_splash
in "preserve" mode) can call hold before runApp and release once the
splash is actually removed, so entrance animations don't run underneath it:
void main() {
NibMotionGate.hold();
runApp(const MyApp());
}
// After FlutterNativeSplash.remove():
NibMotionGate.release();
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
ready
→ ValueNotifier<
bool> -
Whether
NibMotionentrance animations are allowed to start.final