configurable_expansion_tile_null_safety
一个可配置的展开项,源自 Flutter Material 实现,支持自定义
一个可配置的展开项,源自 Flutter Material 实现,允许自定义内部组件。
以下为英文项目原文快照,最新内容请访问 GitHub。
A Configurable Expansion Tile edited from the flutter material implementation that allows for customization of the internal components. Includes providing colours, replacement widgets on expansion, and custom animations.
Tile animations still takes place (which are also configurable), and a widget can be set to precede and/or follow the provided header, which will rotate on expand/collapse of the tile.
Configure any or all parameters or leave default behaviour - header works out of the box.
In the dependencies: section of your pubspec.yaml, add the following line:
configurable_expansion_tile: <latest_version>
import 'package:configurable_expansion_tile/configurable_expansion_tile.dart';
class MyWidget extends StatelessWidget {
Widget build(BuildContext context) {
return ConfigurableExpansionTile(
headerExpanded: Flexible(child: Center(child: Text("A Header Changed"))),
header: Container(child: Center(child: Text("A Header"))),
childrenBody: Row(
children: <Widget>[Text("CHILD 1")],
),
);
}
}
View the Flutter app in the example directory.
依赖清单 1 项
{"sdk":"flutter"}先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗