@@ -24,21 +24,26 @@ class _IndexState extends State<Index> {
2424 /**
2525 * 渲染折叠板
2626 */
27- Widget renderExpanel (MainStateModel model, item) {
28- List _tmpWidgetList = item.widgetList;
27+ Widget renderExpanel (MainStateModel model, widgetsItem) {
28+ String nameSpaces = widgetsItem.nameSpaces;
29+ List _tmpWidgetList = widgetsItem.widgetList;
2930 return ExpansionTile (
3031 title: Text (
31- item .typeName,
32+ widgetsItem .typeName,
3233 style: TextStyle (
33- color: Color (model.theme.textColor),
34+ fontSize: 20 ,
35+ fontWeight: FontWeight .bold,
3436 ),
3537 ),
3638 leading: Icon (
37- IconData (item.code ?? 58353 ,
38- fontFamily: 'MaterialIcons' , matchTextDirection: true ),
39- color: Color (model.theme.textColor),
39+ IconData (
40+ widgetsItem.code ?? 58353 ,
41+ fontFamily: 'MaterialIcons' ,
42+ matchTextDirection: true ,
43+ ),
44+ color: Color (model.theme.mainColor),
4045 ),
41- backgroundColor: Colors .white70 ,
46+ backgroundColor: Colors .white ,
4247 children: [
4348 GridView .count (
4449 shrinkWrap: true ,
@@ -66,20 +71,16 @@ class _IndexState extends State<Index> {
6671 fontFamily: 'MaterialIcons' ,
6772 matchTextDirection: true ,
6873 ),
69- color: Color (model.theme.secondColor),
7074 ),
7175 onPressed: () {
7276 FluroRouter .router.navigateTo (
7377 context,
74- _tmpWidgetList[index].routerName ,
78+ nameSpaces + _tmpWidgetList[index].name ,
7579 );
7680 },
7781 ),
7882 Text (
7983 _tmpWidgetList[index].name,
80- style: TextStyle (
81- color: Color (model.theme.secondColor),
82- ),
8384 ),
8485 ],
8586 ),
@@ -98,8 +99,8 @@ class _IndexState extends State<Index> {
9899 padding: EdgeInsets .all (10 ),
99100 child: Column (
100101 children: mapList.map (
101- (item ) {
102- return renderExpanel (model, item );
102+ (widgetsItem ) {
103+ return renderExpanel (model, widgetsItem );
103104 },
104105 ).toList (),
105106 ),
0 commit comments