StaggeredGridView

用flutter_staggered_grid_view实现分页瀑布流效果【flutter20个实例之四】

懵懂的女人 提交于 2020-08-08 20:56:03
一、老套路,先看样式 二、讲解 1.前言的话 GridView是一个可滚动的,2D数组控件可以用这个组件实现滚动效果,但是它渲染的高度是一样的。 如果要实现不同高度的滚动瀑布流,就要使用这个插件: flutter_staggered_grid_view 说明:配置pubspec.yaml文件,最好要使用0.3.2版本以上,此时flutter版本需要1.17以上的支持 因为低版本的插件支持并不友好 flutter_staggered_grid_view : ^0.3.2 如果组件无法滑动,可能就是版本的问题导致 2.插件的git地址 https://github.com/letsar/flutter_staggered_grid_view 在使用的flutter组件中导入这个插件 import 'package:flutter_staggered_grid_view/flutter_staggered_grid_view.dart'; 3.效果体验 new StaggeredGridView.countBuilder( crossAxisCount: 4, itemCount: 8, itemBuilder: (BuildContext context, int index) => new Container( color: Colors.green, child: new

Flutter Weekly Issue 48

断了今生、忘了曾经 提交于 2020-03-25 12:12:56
3 月,跳不动了?>>> 👖插件/Librarys dart_native Write iOS&Android Code using Dart. This package liberates you from native code and low performance channel. flare_loading Loading widget based on a Flare animation, allow you to create beautiful custom loading widgets or dialogs flare_splash_screen Facilitator for having a Splash Screen with a Flare animation flutter_bugly 腾讯Bugly flutter应用更新统计及异常上报插件,支持Android、iOS flutter_tagging A TextField flutter package with tagging functionality. holding_gesture A customized GestureDetector that acts on holding a determined Widget nepali_date_picker Material Style