Want to add a neon glow effect to a widget border/shadow? You can use BoxShadow widget.. You can set color, blurRadius, SpreadRadius and offset to achieve what you want..
Note in example I have used it to get a drop shadow.. But you can get a glow if you set the properties correctly..
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | Container( decoration: BoxDecoration( borderRadius: BorderRadius.circular(50), boxShadow: [ BoxShadow( color: Color(0xFF000000).withAlpha(60), blurRadius: 6.0, spreadRadius: 0.0, offset: Offset( 0.0, 3.0, ), ), ]), |
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.