Try using BoxShape.circle,
Container(
width: 100,
height: 100,
decoration: BoxDecoration(
border: Border.all(width: 3),
shape: BoxShape.circle,
// You can use like this way or like the below line
//borderRadius: new BorderRadius.circular(30.0),
color: Colors.amber,
),
child:Column(
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Text('ABC'),
Text('XYZ'),
Text('LOL'),
],
),
),
To achieve this in general I would recommend using a Column and then 3 Containers, one for each Circle, and something that draws the in-between part.
Custom widget in Flutter is built for Widget Reusability in App. Custom widgets in Flutter can be of many types Widgets are built to make your code clean and Shorter. It makes the Customization of Code Simple and Easy
// code
** Simple Button Custom Widget **
import 'package:flutter/material.dart';
class button extends StatelessWidget {
button(
{super.key,
required this.buttonfun,
required this.iconData,
required this.textdata});
IconData iconData;
String textdata;
VoidCallback buttonfun;
@override
Widget build(BuildContext context) {
return ElevatedButton.icon(
onPressed: buttonfun, icon: Icon(iconData), label: Text(textdata));
}
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.