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

29 lines
805 B
Dart

import 'package:flutter/material.dart';
/// create by 张风捷特烈 on 2020-03-25
/// contact me by email 1981462002@qq.com
/// 说明:
// {
// "widgetId": 36,
// "priority": 2,
// "name": "Placeholder的fallback属性",
// "subtitle": " 当所在区域无宽高约束时,占位组件的宽高。"
// "【fallbackHeight】: 高 【double】\n"
// "【fallbackWidth】: 宽 【double】",
// }
class FallbackPlaceholder extends StatelessWidget {
const FallbackPlaceholder({Key? key}) : super(key: key);
@override
Widget build(BuildContext context) {
return const UnconstrainedBox(
child: Placeholder(
color: Colors.blue,
strokeWidth: 2,
fallbackHeight: 100,
fallbackWidth: 150,
),
);
}
}