03 2020 档案

摘要:滑动条 const Slider({ Key key, @required this.value, //当前值 @required this.onChanged, //改变回调 this.onChangeStart, this.onChangeEnd, this.min = 0.0, this.ma 阅读全文

posted @ 2020-03-30 21:48 wjw334 阅读(1649) 评论(0) 推荐(0)

摘要:LinearProgressIndicator & CircularProgressIndicator 条形 圆形进度条 class ProgressIndicatorWidget extends StatefulWidget { ProgressIndicatorWidget({Key key}) 阅读全文

posted @ 2020-03-26 10:02 wjw334 阅读(988) 评论(0) 推荐(0)

摘要:受限制的Box控件 const BoxConstraints({ this.minWidth = 0.0, this.maxWidth = double.infinity, this.minHeight = 0.0, this.maxHeight = double.infinity,}); clas 阅读全文

posted @ 2020-03-25 18:04 wjw334 阅读(603) 评论(0) 推荐(0)

摘要:AnimatedContainerWidget AnimatedContainer({ Key key, this.alignment, this.padding, Color color, Decoration decoration, this.foregroundDecoration, doub 阅读全文

posted @ 2020-03-24 17:58 wjw334 阅读(342) 评论(0) 推荐(0)

摘要:占位控件color: Colors.blue, // 设置占位符颜色 defalutBlue Grey 70strokeWidth: 5, //设置画笔宽度fallbackHeight: 200, //设置占位符宽度fallbackWidth: 200, //设置占位符高度 import 'pack 阅读全文

posted @ 2020-03-23 16:19 wjw334 阅读(980) 评论(0) 推荐(0)

摘要:Clip的相关组件: ClipOval: 圆形裁剪 ClipRRect: 圆角矩形裁剪 ClipRect:矩形裁剪 ClipPath: 路径裁剪 参数: clipper:裁剪路径 CustomClipper<Path> 的实现 class ClipWidget extends StatelessWi 阅读全文

posted @ 2020-03-23 14:50 wjw334 阅读(952) 评论(0) 推荐(0)

摘要:可折叠的控件 initiallyExpanded: true, 初始是否展开 class ExpansionTileWidget extends StatelessWidget { @override Widget build(BuildContext context) { return getLv 阅读全文

posted @ 2020-03-21 16:20 wjw334 阅读(846) 评论(0) 推荐(0)

摘要:动画Padding 点击之后 有动画过渡 class AnimatedPaddingWidget extends StatefulWidget { @override State<StatefulWidget> createState() => AnimatedPaddingWidgetState( 阅读全文

posted @ 2020-03-21 16:17 wjw334 阅读(655) 评论(0) 推荐(0)

摘要:FadeInImage.assetNetwork({ Key key, @required String placeholder,// @required String image, AssetBundle bundle, double placeholderScale, double imageS 阅读全文

posted @ 2020-03-18 09:17 wjw334 阅读(840) 评论(0) 推荐(0)

摘要:/** * 集成自Stack,用来显示第index个child, * IndexedStack({ Key key, AlignmentGeometry alignment = AlignmentDirectional.topStart, TextDirection textDirection, S 阅读全文

posted @ 2020-03-15 15:59 wjw334 阅读(993) 评论(0) 推荐(0)

摘要:Stack 这个是Flutter中布局用到的组件,跟Android中FrameLayout很像,都是可以叠加的现实View。 Stack({ Key key, this.alignment = AlignmentDirectional.topStart, this.textDirection, th 阅读全文

posted @ 2020-03-14 22:56 wjw334 阅读(219) 评论(0) 推荐(1)

导航