mirror of
https://github.com/alibaba/flutter-go.git
synced 2025-09-26 16:15:50 +08:00
Merge branch 'cli' of github.com:alibaba/flutter-go
This commit is contained in:
@ -104,4 +104,15 @@ class DataUtils {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
/// 获取widget列表处的树型数据
|
||||
static Future<List> getWidgetTreeList() async {
|
||||
var response = await NetUtils.get(Api.GET_WIDGET_TREE);
|
||||
|
||||
if (response['success']) {
|
||||
return response['data'];
|
||||
} else {
|
||||
return [];
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user