If you want to add border radius to google maps in flutter? Probably an expensive solution but you could use ClipRRect. Something like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
Widget build(BuildContext context) { return Center( child: ClipRRect( borderRadius: BorderRadius.only( topLeft: Radius.circular(30), topRight: Radius.circular(30), bottomRight: Radius.circular(30), bottomLeft: Radius.circular(30), ), child: Align( alignment: Alignment.bottomRight, heightFactor: 0.3, widthFactor: 2.5, child: GoogleMap(), ), ), ); } |
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.