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

import 'package:flutter/material.dart';

void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'RotatedBox旋转盒子示例',
      home: Scaffold(
        appBar: AppBar(
          title: Text(
            'RotatedBox旋转盒子示例',
            style: TextStyle(color: Colors.white),
          ),
        ),
        body: Center(
          child: RotatedBox(
            quarterTurns: 3,//旋转次数,一次为90度
            child: Text(
              'RotatedBox旋转盒子',
              style: TextStyle(fontSize: 28.0),
            ),
          ),
        ),
      ),
    );
  }
}

@作者: 亢少军

第11章组件装饰和视觉效果-RotatedBox旋转盒子

相关文章:

  • 2021-04-20
  • 2021-08-02
  • 2021-07-15
  • 2021-10-22
  • 2021-11-24
  • 2021-12-12
  • 2021-06-23
  • 2021-08-19
猜你喜欢
  • 2021-10-13
  • 2021-05-02
  • 2022-01-17
  • 2021-07-23
  • 2021-07-25
  • 2021-09-21
  • 2021-08-01
相关资源
相似解决方案