I'm trying to set gradient color to container's border line, here is the example i need.
here is my code.
Container(
height: 50,
width: 140,
decoration: BoxDecoration(
border: Border.all(
color: Colors.black
),
borderRadius: BorderRadius.circular(30),
color: Colors.white
),
child: const Center(
child: Text(
'Sign in',
style: TextStyle(
fontSize: 20,
fontWeight: FontWeight.bold,
color: Colors.black,
),
),
),
)
i couldn't find any solution to this, i tried chat gpt and all, still i couldn't find any solution,