forked from lxm_flutter/FlutterUnit
27 lines
739 B
Dart
27 lines
739 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 {
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return UnconstrainedBox(
|
|
child: Placeholder(
|
|
color: Colors.blue,
|
|
strokeWidth: 2,
|
|
fallbackHeight: 100,
|
|
fallbackWidth: 150,
|
|
),
|
|
);
|
|
}
|
|
}
|