摘要:
滑动条 const Slider({ Key key, @required this.value, //当前值 @required this.onChanged, //改变回调 this.onChangeStart, this.onChangeEnd, this.min = 0.0, this.ma 阅读全文
摘要:
LinearProgressIndicator & CircularProgressIndicator 条形 圆形进度条 class ProgressIndicatorWidget extends StatefulWidget { ProgressIndicatorWidget({Key key}) 阅读全文
摘要:
受限制的Box控件 const BoxConstraints({ this.minWidth = 0.0, this.maxWidth = double.infinity, this.minHeight = 0.0, this.maxHeight = double.infinity,}); clas 阅读全文
摘要:
AnimatedContainerWidget AnimatedContainer({ Key key, this.alignment, this.padding, Color color, Decoration decoration, this.foregroundDecoration, doub 阅读全文
摘要:
占位控件color: Colors.blue, // 设置占位符颜色 defalutBlue Grey 70strokeWidth: 5, //设置画笔宽度fallbackHeight: 200, //设置占位符宽度fallbackWidth: 200, //设置占位符高度 import 'pack 阅读全文
摘要:
Clip的相关组件: ClipOval: 圆形裁剪 ClipRRect: 圆角矩形裁剪 ClipRect:矩形裁剪 ClipPath: 路径裁剪 参数: clipper:裁剪路径 CustomClipper<Path> 的实现 class ClipWidget extends StatelessWi 阅读全文
摘要:
可折叠的控件 initiallyExpanded: true, 初始是否展开 class ExpansionTileWidget extends StatelessWidget { @override Widget build(BuildContext context) { return getLv 阅读全文
摘要:
动画Padding 点击之后 有动画过渡 class AnimatedPaddingWidget extends StatefulWidget { @override State<StatefulWidget> createState() => AnimatedPaddingWidgetState( 阅读全文
摘要:
FadeInImage.assetNetwork({ Key key, @required String placeholder,// @required String image, AssetBundle bundle, double placeholderScale, double imageS 阅读全文
摘要:
/** * 集成自Stack,用来显示第index个child, * IndexedStack({ Key key, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection textDirection, S 阅读全文