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

import 'package:flutter/material.dart';

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

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: 'ClipOval圆形剪裁示例',
      home: Scaffold(
        appBar: AppBar(
          title: Text(
            'ClipOval圆形剪裁示例',
            style: TextStyle(color: Colors.white),
          ),
        ),
        body: Center(
          child: new ClipOval(
            child: new SizedBox(
              width: 300.0,
              height: 300.0,
              child: new Image.asset(
                "images/8.jpeg",
                fit: BoxFit.fill,
              ),
            ),
          ),
        ),
      ),
    );
  }
}

@作者: 亢少军

第11章组件装饰和视觉效果-Clip剪裁处理-ClipOval圆形剪裁

相关文章:

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