SplashConfig.competition constructor
SplashConfig.competition()
Implementation
factory SplashConfig.competition() {
return const SplashConfig(
initialDuration: Duration(milliseconds: 360),
buildDuration: Duration(milliseconds: 1240),
fillDuration: Duration(milliseconds: 1460),
revealDuration: Duration(milliseconds: 920),
settleDuration: Duration(milliseconds: 760),
exitDuration: Duration(milliseconds: 420),
logoFrameSize: Size(198, 224),
liquidAmplitude: 22,
liquidHighlightStrength: 0.34,
motionIntensity: 1,
shapes: [
SplashShapeSpec(
startAlignment: Alignment(-0.95, -1.30),
targetAlignment: Alignment(-0.76, -0.72),
size: Size(84, 84),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.circle,
entryDelay: 0.00,
entrySpan: 0.56,
sway: Offset(9, 10),
hover: 12,
rotateTurns: -0.03,
liquidLift: 0.00,
impactBias: 0.00,
),
SplashShapeSpec(
startAlignment: Alignment(0.96, -1.22),
targetAlignment: Alignment(0.76, -0.66),
size: Size(132, 50),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.capsule,
entryDelay: 0.06,
entrySpan: 0.56,
sway: Offset(10, 8),
hover: 10,
rotateTurns: 0.03,
liquidLift: 0.00,
impactBias: 0.00,
),
SplashShapeSpec(
startAlignment: Alignment(-1.22, 0.04),
targetAlignment: Alignment(-0.92, 0.10),
size: Size(148, 58),
colorRole: SplashColorRole.primarySoft,
kind: SplashShapeKind.capsule,
entryDelay: 0.16,
entrySpan: 0.52,
sway: Offset(10, 8),
hover: 10,
rotateTurns: -0.02,
liquidLift: 0.06,
impactBias: 0.00,
),
SplashShapeSpec(
startAlignment: Alignment(1.18, 0.14),
targetAlignment: Alignment(0.92, 0.16),
size: Size(92, 92),
colorRole: SplashColorRole.primary,
kind: SplashShapeKind.circle,
entryDelay: 0.22,
entrySpan: 0.48,
sway: Offset(8, 8),
hover: 8,
rotateTurns: 0.04,
liquidLift: 0.08,
impactBias: 0.08,
),
SplashShapeSpec(
startAlignment: Alignment(-0.10, -1.18),
targetAlignment: Alignment(-0.22, -0.24),
size: Size(180, 64),
colorRole: SplashColorRole.primary,
kind: SplashShapeKind.capsule,
entryDelay: 0.12,
entrySpan: 0.62,
sway: Offset(11, 10),
hover: 10,
rotateTurns: -0.04,
liquidLift: 0.00,
impactBias: 0.00,
),
SplashShapeSpec(
startAlignment: Alignment(0.16, -1.24),
targetAlignment: Alignment(0.28, -0.84),
size: Size(72, 72),
colorRole: SplashColorRole.surfaceAlt,
kind: SplashShapeKind.circle,
entryDelay: 0.18,
entrySpan: 0.52,
sway: Offset(8, 10),
hover: 8,
rotateTurns: 0.03,
liquidLift: 0.00,
impactBias: 0.00,
),
SplashShapeSpec(
startAlignment: Alignment(-0.44, 1.20),
targetAlignment: Alignment(-0.56, 0.78),
size: Size(104, 44),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.capsule,
entryDelay: 0.34,
entrySpan: 0.42,
sway: Offset(8, 10),
hover: 7,
rotateTurns: -0.03,
liquidLift: 0.78,
impactBias: 0.56,
),
SplashShapeSpec(
startAlignment: Alignment(0.56, 1.26),
targetAlignment: Alignment(0.56, 0.72),
size: Size(118, 118),
colorRole: SplashColorRole.surfaceAlt,
kind: SplashShapeKind.block,
radius: 30,
entryDelay: 0.42,
entrySpan: 0.42,
sway: Offset(9, 11),
hover: 7,
rotateTurns: 0.04,
liquidLift: 0.82,
impactBias: 0.62,
),
SplashShapeSpec(
startAlignment: Alignment(-0.86, 1.28),
targetAlignment: Alignment(-0.18, 0.86),
size: Size(170, 56),
colorRole: SplashColorRole.primarySoft,
kind: SplashShapeKind.capsule,
entryDelay: 0.50,
entrySpan: 0.40,
sway: Offset(9, 11),
hover: 8,
rotateTurns: -0.02,
liquidLift: 0.92,
impactBias: 0.72,
),
],
fillCargo: [
SplashCargoSpec(
xFactor: 0.12,
size: Size(72, 72),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.circle,
depth: 0.18,
drift: 9,
bob: 7,
rotateTurns: -0.03,
appearDelay: 0.02,
),
SplashCargoSpec(
xFactor: 0.18,
size: Size(92, 36),
colorRole: SplashColorRole.surfaceAlt,
kind: SplashShapeKind.capsule,
depth: 0.52,
drift: 7,
bob: 6,
rotateTurns: 0.02,
appearDelay: 0.20,
),
SplashCargoSpec(
xFactor: 0.26,
size: Size(128, 44),
colorRole: SplashColorRole.primarySoft,
kind: SplashShapeKind.capsule,
depth: 0.28,
drift: 8,
bob: 6,
rotateTurns: 0.02,
appearDelay: 0.10,
),
SplashCargoSpec(
xFactor: 0.34,
size: Size(70, 70),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.circle,
depth: 0.66,
drift: 8,
bob: 7,
rotateTurns: -0.03,
appearDelay: 0.30,
),
SplashCargoSpec(
xFactor: 0.22,
size: Size(124, 42),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.capsule,
depth: 0.92,
drift: 7,
bob: 5,
rotateTurns: 0.02,
appearDelay: 0.34,
),
SplashCargoSpec(
xFactor: 0.44,
size: Size(98, 98),
colorRole: SplashColorRole.surfaceAlt,
kind: SplashShapeKind.block,
radius: 28,
depth: 0.14,
drift: 10,
bob: 8,
rotateTurns: 0.04,
appearDelay: 0.18,
),
SplashCargoSpec(
xFactor: 0.48,
size: Size(142, 46),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.capsule,
depth: 0.78,
drift: 7,
bob: 6,
rotateTurns: 0.03,
appearDelay: 0.38,
),
SplashCargoSpec(
xFactor: 0.56,
size: Size(86, 86),
colorRole: SplashColorRole.surfaceAlt,
kind: SplashShapeKind.circle,
depth: 1.02,
drift: 8,
bob: 5,
rotateTurns: -0.02,
appearDelay: 0.42,
),
SplashCargoSpec(
xFactor: 0.58,
size: Size(160, 54),
colorRole: SplashColorRole.primary,
kind: SplashShapeKind.capsule,
depth: 0.34,
drift: 10,
bob: 7,
rotateTurns: -0.02,
appearDelay: 0.24,
),
SplashCargoSpec(
xFactor: 0.62,
size: Size(80, 80),
colorRole: SplashColorRole.primarySoft,
kind: SplashShapeKind.circle,
depth: 0.58,
drift: 9,
bob: 7,
rotateTurns: -0.04,
appearDelay: 0.26,
),
SplashCargoSpec(
xFactor: 0.75,
size: Size(82, 82),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.circle,
depth: 0.20,
drift: 9,
bob: 7,
rotateTurns: 0.03,
appearDelay: 0.14,
),
SplashCargoSpec(
xFactor: 0.82,
size: Size(116, 42),
colorRole: SplashColorRole.primary,
kind: SplashShapeKind.capsule,
depth: 0.70,
drift: 8,
bob: 6,
rotateTurns: 0.02,
appearDelay: 0.34,
),
SplashCargoSpec(
xFactor: 0.88,
size: Size(110, 40),
colorRole: SplashColorRole.surfaceAlt,
kind: SplashShapeKind.capsule,
depth: 0.30,
drift: 8,
bob: 6,
rotateTurns: -0.03,
appearDelay: 0.28,
),
SplashCargoSpec(
xFactor: 0.86,
size: Size(138, 48),
colorRole: SplashColorRole.primarySoft,
kind: SplashShapeKind.capsule,
depth: 1.10,
drift: 7,
bob: 4,
rotateTurns: 0.03,
appearDelay: 0.46,
),
SplashCargoSpec(
xFactor: 0.92,
size: Size(68, 68),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.circle,
depth: 0.84,
drift: 7,
bob: 5,
rotateTurns: 0.03,
appearDelay: 0.42,
),
],
bubbleWave: [
SplashBubbleSpec(
xFactor: 0.10,
size: 34,
colorRole: SplashColorRole.surface,
startDelay: 0.00,
travel: 1.12,
sway: 10,
drift: -8,
speed: 1.00,
),
SplashBubbleSpec(
xFactor: 0.20,
size: 48,
colorRole: SplashColorRole.primarySoft,
startDelay: 0.08,
travel: 1.08,
sway: 11,
drift: 7,
speed: 0.92,
),
SplashBubbleSpec(
xFactor: 0.32,
size: 28,
colorRole: SplashColorRole.surfaceAlt,
startDelay: 0.14,
travel: 1.14,
sway: 8,
drift: -6,
speed: 1.06,
),
SplashBubbleSpec(
xFactor: 0.42,
size: 58,
colorRole: SplashColorRole.surface,
startDelay: 0.04,
travel: 1.16,
sway: 13,
drift: 10,
speed: 0.90,
),
SplashBubbleSpec(
xFactor: 0.56,
size: 40,
colorRole: SplashColorRole.primarySoft,
startDelay: 0.18,
travel: 1.10,
sway: 9,
drift: -7,
speed: 1.04,
),
SplashBubbleSpec(
xFactor: 0.66,
size: 68,
colorRole: SplashColorRole.surface,
startDelay: 0.10,
travel: 1.18,
sway: 14,
drift: 9,
speed: 0.88,
),
SplashBubbleSpec(
xFactor: 0.78,
size: 30,
colorRole: SplashColorRole.surfaceAlt,
startDelay: 0.22,
travel: 1.06,
sway: 8,
drift: -5,
speed: 1.10,
),
SplashBubbleSpec(
xFactor: 0.90,
size: 52,
colorRole: SplashColorRole.primarySoft,
startDelay: 0.16,
travel: 1.20,
sway: 12,
drift: 8,
speed: 0.94,
),
],
backdrops: [
SplashBackdropSpec(
alignment: Alignment(-1.16, -0.84),
size: Size(194, 194),
colorRole: SplashColorRole.primarySoft,
kind: SplashShapeKind.circle,
parallax: Offset(20, 14),
),
SplashBackdropSpec(
alignment: Alignment(1.18, -0.18),
size: Size(176, 72),
colorRole: SplashColorRole.surface,
kind: SplashShapeKind.capsule,
parallax: Offset(-18, 10),
),
SplashBackdropSpec(
alignment: Alignment(1.14, 0.92),
size: Size(228, 228),
colorRole: SplashColorRole.primary,
kind: SplashShapeKind.circle,
parallax: Offset(-22, -14),
),
SplashBackdropSpec(
alignment: Alignment(-0.96, 0.82),
size: Size(134, 52),
colorRole: SplashColorRole.surfaceAlt,
kind: SplashShapeKind.capsule,
parallax: Offset(16, -8),
),
],
);
}