占位控件

color: Colors.blue, // 设置占位符颜色 defalutBlue Grey 70
strokeWidth: 5, //设置画笔宽度
fallbackHeight: 200, //设置占位符宽度
fallbackWidth: 200, //设置占位符高度

import 'package:flutter/material.dart';

class PlaceHolderWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Placeholder(
      color: Colors.blue, // 设置占位符颜色 defalutBlue Grey 70
      strokeWidth: 5, //设置画笔宽度
      fallbackHeight: 200, //设置占位符宽度
      fallbackWidth: 200, //设置占位符高度
    );
  }
}

 

PlaceHolder(每日Flutter 小部件)

 

 







相关文章:

  • 2022-12-23
  • 2021-12-19
  • 2021-05-15
  • 2022-12-23
  • 2022-01-01
  • 2021-05-05
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案