mui 0.0.1 mui: ^0.0.1 copied to clipboard
A new Flutter package project.
mui #
MOGU flutter组件库
项目结构 #
-example // 组件实例,flutter工程
|--lib
|--pages // 组件实例页
-lib // 组件库
|--mui.dart // 组件出口
|--src
|--widgets // 组件物料
运行项目 #
- cd ./example
- flutter run
flutter版本
1.12.13+hotfix.6
如何新增组件 #
- 在lib下新增flutter组件
- example/lib/main,在routes中新增案例页,引入路由
routes: {
'toast': (context)=>ToastPage()
// ...
}
- example/lib/tabs/home.dart的comps中添加对应分类页
{
"title": '布局元素',
"leading": Icon(Icons.toll),
"child": [
{"title": '待补充....',"route": ""}
],
"isExpanded": false
}