Flutter Container 圆角
import 'package:flutter/material.dart';
class TestPage extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Material(
child: Container(
decoration: BoxDecoration(
border: Border.all(color: Colors.red, width: 5.0),
// 设置圆角
borderRadius: BorderRadius.all(Radius.circular(12.0))
),
child: Text('这是一个圆角带边框的容器'),
)
);
}
}