Files
2022-03-26 16:41:34 +08:00

32 lines
860 B
Dart
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
/// create by 张风捷特烈 on 2020/4/25
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 1,
// "name": 'Container还具有变换性',
// "priority": 5,
// "subtitle": "【transform】 : 变换矩阵 【Matrix4】\n "
// "基于Matrix4的矩阵变换变换详情见线性代数",
// }
import 'package:flutter/material.dart';
import 'dart:math';
class ContainerTransform extends StatelessWidget {
const ContainerTransform({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return Container(
alignment: Alignment.center,
color: Colors.cyanAccent,
width: 150,
height: 150 * 0.618,
transform: Matrix4.skew(-pi / 10, 0),
child: const Text(
"Container",
style: TextStyle(fontSize: 20),
),
);
}
}