circles function
Implementation
List<Widget> circles(BuildContext context) {
const double circleSize = 1000;
const double circleOffscreenSize = -500;
return <Widget>[
Positioned(
top: circleOffscreenSize,
left: circleOffscreenSize,
child: Container(
width: circleSize,
height: circleSize,
decoration: BoxDecoration(
shape: BoxShape.circle,
color: Theme.of(context).colorScheme.secondary.withOpacity(0.04),
),
),
),
Positioned(
top: circleOffscreenSize - 120,
left: circleOffscreenSize + 100,
child: Opacity(
opacity: 0.8,
child: Container(
width: circleSize,
height: circleSize,
decoration: const BoxDecoration(
shape: BoxShape.circle,
image: DecorationImage(
image: AssetImage(onboardingBackgroundImage),
),
),
),
),
),
];
}