设置widget的背景色
decoration: new BoxDecoration(color: Color(0xffF5F5F5)),
flutter 组件旋转
Widget build(BuildContext context) {
//- math.pi / 4 向左旋转45度
return Transform.rotate(angle: - math.pi / 4, child: Text("Text"),);
}
设置widget的背景色
decoration: new BoxDecoration(color: Color(0xffF5F5F5)),
flutter 组件旋转
Widget build(BuildContext context) {
//- math.pi / 4 向左旋转45度
return Transform.rotate(angle: - math.pi / 4, child: Text("Text"),);
}