防采集标记:亢少军老师的课程和资料

import 'package:flutter/material.dart';

class LayoutDemo extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new Scaffold(
      appBar: new AppBar(
        title: new Text('Transform矩阵转换示例'),
      ),
      body: new Center(
        child: Container(
          color: Colors.grey,
          child: Transform(
            alignment: Alignment.topRight,
            transform: Matrix4.rotationZ(0.3),
            child: Container(
              padding: const EdgeInsets.all(8.0),
              color: const Color(0xFFE8581C),
              child: const Text('Transform矩阵转换'),
            ),
          ),
        ),
      ),
    );
  }
}

void main() {
  runApp(
    new MaterialApp(
      title: 'Transform矩阵转换示例',
      home: new LayoutDemo(),
    ),
  );
}

@作者: 亢少军

第7章页面布局-Transform矩阵转换

相关文章:

  • 2021-11-01
  • 2021-10-16
  • 2021-08-10
  • 2021-08-01
  • 2021-09-04
  • 2021-07-19
  • 2021-10-05
  • 2022-01-12
猜你喜欢
  • 2022-01-09
  • 2021-07-24
  • 2021-05-27
  • 2022-01-03
  • 2021-06-18
  • 2021-05-03
  • 2021-12-04
相关资源
相似解决方案