I am new to Flutter. Working on a background in an app but not able to emulate the exact CSS Radial gradient. This is what I intend to replicate:
background-image: radial-gradient( circle farthest-corner at 10% 20%, rgba(3,235,255,1) 0%, rgba(152,70,242,1) 100.2% );
This is what I tried in Flutter but not able to get the same effect (definitely missing many of the parameters in the gradient mentioned above)
Container(
width: deviceSize.width,
height: deviceSize.height,
decoration: BoxDecoration(
gradient: RadialGradient(
colors: [
Color.fromRGBO(3,235,255,1),
Color.fromRGBO(152,70,242,1)
],
radius: 1.0,
),
boxShadow: [
BoxShadow(blurRadius: 2),
],
),
// child: const Image(
// image: AssetImage(
// 'lib/assets/images/main_background.jpg',
// ),
// fit: BoxFit.cover,
// ),
),
Would appreciate any suggestion, thanks in advance.