diff --git a/.github/ISSUE_TEMPLATE/bug-report.md b/.github/ISSUE_TEMPLATE/bug-report.md
deleted file mode 100644
index bde1342e..00000000
--- a/.github/ISSUE_TEMPLATE/bug-report.md
+++ /dev/null
@@ -1,26 +0,0 @@
----
-name: "\U0001F41B Bug Report"
-about: Something isn't working as expected
----
-
-## Bug Report
-
-**仅限中文与英文**, 其他语言的提交将直接被关闭
-
-请先确认查找了已有的 issue [GitHub issues](https://github.com/apache/incubator-shardingsphere-example/issues).
-
-为了更好的收录您反馈或者提交的相关pr. 请您关注您提交的问题, 我们可能需要更多的详细信息, 我们会在issue下先您收集相关信息,
-如果长时间未得到您的回复, 如果我们无法在某些环境上重现该问题, 并且您**超过7天未回复**, 我们可能会关 **闭掉issue**, 谢谢
-
-
-### 您当前的flutter doctor信息
-
-### 预期的表现
-
-### 实际的表现
-
-### 预期的分析 (给出您能想到, 任何您能想到的)
-
-### 重现的方式, 例如从 A界面 点击 b, 跳转到B页面, 界面出现溢出乱码等.
-
-### 用于重现此问题或者可能解决以上问题的示例代码(例如github 链接代码)
diff --git a/.github/ISSUE_TEMPLATE/feature-request.md b/.github/ISSUE_TEMPLATE/feature-request.md
deleted file mode 100644
index 478e88df..00000000
--- a/.github/ISSUE_TEMPLATE/feature-request.md
+++ /dev/null
@@ -1,18 +0,0 @@
----
-name: "\U0001F680 Feature Request"
-about: I have a suggestion
----
-
-## Feature Request
-
-**仅限中文与英文**, 其他语言的提交将直接被关闭
-
-请先确认查找了已有的 issue [GitHub issues](https://github.com/apache/incubator-shardingsphere-example/issues).
-
-为了更好的收录您反馈或者提交的相关pr. 请您关注您提交的问题, 我们可能需要更多的详细信息, 我们会在issue下先您收集相关信息,
-如果长时间未得到您的回复, 如果我们无法在某些环境上重现该问题, 并且您**超过7天未回复**, 我们可能会关 **闭掉issue**, 谢谢
-
-
-### 您的功能需求是否与哪些问题有关?
-
-### 描述您想要的功能.
diff --git a/.github/ISSUE_TEMPLATE/page-about.md b/.github/ISSUE_TEMPLATE/page-about.md
deleted file mode 100644
index d79ca10a..00000000
--- a/.github/ISSUE_TEMPLATE/page-about.md
+++ /dev/null
@@ -1,62 +0,0 @@
----
-name: "📄 Page About"
-about: something about page
----
-
-## Page About
-
-**仅限中文与英文**, 其他语言的提交将直接被关闭
-
-请先确认查找了已有的 issue [GitHub issues](https://github.com/apache/incubator-shardingsphere-example/issues).
-
-为了更好的收录您反馈或者提交的相关pr. 请您关注您提交的问题, 我们可能需要更多的详细信息, 我们会在issue下先您收集相关信息,
-如果长时间未得到您的回复, 如果我们无法在某些环境上重现该问题, 并且您**超过7天未回复**, 我们可能会关 **闭掉issue**, 谢谢
-
-
-
-
-## 界面增加或者更新的内容概括
-
-## 界面数据
-
-例如:
-```
-{
- "name": "standard_for_slider",
- "screenShot": "",
- "author":"sanfan",
- "title":"slider组件",
- "email": "hanxu@qq.com",
- "desc": "slider, new Slider",
- "id": "8ab2b5c2_42ae_4241_9c8a_5c9e1f92b096"
-}
-
-```
-## Page 关联的 DEMO 信息
-
-例如:
-
-```
-{
- "name": "intor page",
- "screenShot": "",
- "author":"sanfan",
- "title":"介绍页",
- "email": "hanxu317@qq.com",
- "desc": "desc",
- "id": "ee4feb8e_32ae_4241_9c8a_5c9e1f92b096"
-},
-{
- "name": "intor pag2e",
- "screenShot": "",
- "author":"sanfan",
- "title":"介绍页",
- "email": "hanxu317@qq.com",
- "desc": "desc",
- "id": "ee4feb8e_32ae_4241_9c8a_5c9e1f92b097"
-}
-```
-
-## 引入第三方包的文件与版本号(如果有引入, 请标明)
-
-
diff --git a/.github/ISSUE_TEMPLATE/question.md b/.github/ISSUE_TEMPLATE/question.md
deleted file mode 100644
index 0a142371..00000000
--- a/.github/ISSUE_TEMPLATE/question.md
+++ /dev/null
@@ -1,14 +0,0 @@
----
-name: "\U0001F914 Question"
-about: Usage question that isn't answered in docs or discussion
----
-
-## Question
-
-**仅限中文与英文**, 其他语言的提交将直接被关闭
-
-请先确认查找了已有的 issue [GitHub issues](https://github.com/apache/incubator-shardingsphere-example/issues).
-
-为了更好的收录您反馈或者提交的相关pr. 请您关注您提交的问题, 我们可能需要更多的详细信息, 我们会在issue下先您收集相关信息,
-如果长时间未得到您的回复, 如果我们无法在某些环境上重现该问题, 并且您**超过7天未回复**, 我们可能会关 **闭掉issue**, 谢谢
-
diff --git a/.github/issue_template.md b/.github/issue_template.md
new file mode 100644
index 00000000..e69de29b
diff --git a/.gitignore b/.gitignore
index 26bbd932..639431bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -18,7 +18,6 @@
.metadata
-
# IntelliJ related
*.iml
*.ipr
diff --git a/README-en.md b/README-en.md
index 7862edad..e6a91cfe 100644
--- a/README-en.md
+++ b/README-en.md
@@ -85,4 +85,4 @@ The advantages of Flutter mainly include:
-Powered by Alibaba Auction Front-end Team
+Powered by [Alibaba Auction Front-end Team](https://github.com/alibaba-paimai-frontend)
diff --git a/README.md b/README.md
index bd2f01d0..8ea37a97 100644
--- a/README.md
+++ b/README.md
@@ -1,8 +1,6 @@
Language: [English](https://github.com/alibaba/flutter-go/blob/master/README-en.md) | [中文简体](https://github.com/alibaba/flutter-go/blob/master/README.md)
## Flutter Go
-# test
-

> 帮助开发者快速上手 Flutter **Flutter Go 1.0 Android版已正式发布**
@@ -22,37 +20,17 @@ Language: [English](https://github.com/alibaba/flutter-go/blob/master/README-en.
-## 运行方式
-- 查看一下版本号是否正确
-```dart
- flutter --version
-```
-- 运行以下命令查看是否需要安装其它依赖项来完成安装
-```dart
- flutter doctor
-```
-- 运行启动您的应用
-```dart
- flutter packages get
- flutter run
-```
-
-- 如果有其他问题,请参考
- - https://flutterchina.club/setup-macos/
- - https://flutter.dev/docs/get-started/install/macos
## Release安装包下载地址
-### android正式版,下载地址:
+android下载地址:
-- 华为市场已上线,华为应用市场搜索 "Fluttergo"或者直接[点击下载](https://appstore.huawei.com/search/fluttergo)
-
+
-### iphone正式版,下载地址:
+iphone下载地址: AppStore上面进行搜索fluttego
-- AppStore 搜索 "Fluttergo" 或者直接[点击下载](https://itunes.apple.com/cn/app/flutter-go/id1462026296?mt=8)
-
+
## 基础环境
@@ -145,5 +123,6 @@ flutter优点主要包括:
- 大家的互相信任,尊重与支持,才是开源社区前进的动力和来源.
-Powered by 阿里拍卖前端团队
+Powered by [阿里拍卖前端团队](https://github.com/alibaba-paimai-frontend)
++++++++
\ No newline at end of file
diff --git a/android/app/build.gradle b/android/app/build.gradle
index 847acc04..03806468 100644
--- a/android/app/build.gradle
+++ b/android/app/build.gradle
@@ -51,23 +51,8 @@ android {
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
-
- manifestPlaceholders = [
- JPUSH_PKGNAME : "com.alibaba.fluttergo",
- JPUSH_APPKEY : "62eb07d227d1f11dd7fa6239", //JPush上注册的包名对应的appkey.
- JPUSH_CHANNEL : "developer-default",
- ]
-
-// ndk {
-// //选择要添加的对应cpu类型的.so库。
-// abiFilters 'armeabi', 'armeabi-v7a','x86', 'x86_64', 'mips'//, 'arm64-v8a'
-// // 还可以添加 'x86', 'x86_64', 'mips', 'mips64'
-// }
-
}
-
-
signingConfigs {
release {
keyAlias keystoreProperties['keyAlias']
@@ -101,8 +86,6 @@ dependencies {
///implementation 'com.google.firebase:firebase-perf:16.2.3'
// 登陆
////implementation 'com.google.firebase:firebase-auth:16.0.3'
-
-
}
//firebase
apply plugin: 'com.google.gms.google-services'
diff --git a/android/app/release/app-release.apk b/android/app/release/app-release.apk
deleted file mode 100644
index 296ac626..00000000
Binary files a/android/app/release/app-release.apk and /dev/null differ
diff --git a/android/app/release/output.json b/android/app/release/output.json
index 5dae1a91..16e1b0c5 100644
--- a/android/app/release/output.json
+++ b/android/app/release/output.json
@@ -1 +1 @@
-[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"1.0.6","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
\ No newline at end of file
+[{"outputType":{"type":"APK"},"apkInfo":{"type":"MAIN","splits":[],"versionCode":1,"versionName":"0.0.5","enabled":true,"outputFile":"app-release.apk","fullName":"release","baseName":"release"},"path":"app-release.apk","properties":{}}]
\ No newline at end of file
diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index b7417d00..80c74332 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -7,22 +7,20 @@
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
-
-
-
-
+
+
+
+ android:label="fluttergo"
+ android:icon="@mipmap/ic_launcher_logo">
@@ -18,9 +14,9 @@
-
+
-
+
diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist
index c6bb52b8..d94b59b8 100644
--- a/ios/Runner/Info.plist
+++ b/ios/Runner/Info.plist
@@ -22,8 +22,6 @@
????
CFBundleVersion
$(FLUTTER_BUILD_NUMBER)
- LSApplicationCategoryType
-
LSRequiresIPhoneOS
NSCameraUsageDescription
diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements
deleted file mode 100644
index 903def2a..00000000
--- a/ios/Runner/Runner.entitlements
+++ /dev/null
@@ -1,8 +0,0 @@
-
-
-
-
- aps-environment
- development
-
-
diff --git a/lib/api/api.dart b/lib/api/api.dart
index 748e3422..93d4f6b8 100644
--- a/lib/api/api.dart
+++ b/lib/api/api.dart
@@ -1,36 +1,10 @@
class Api{
-// static const String BASE_URL = 'http://flutter-go.alibaba.net/';
- static const String BASE_URL = 'https://flutter-go.pub/api/';
+ // static const String BASE_URL = 'http://127.0.0.1:6001/';
+ static const String BASE_URL = 'http://flutter-go.alibaba.net/';
static const String DO_LOGIN = BASE_URL+'doLogin';//登陆
static const String CHECK_LOGIN = BASE_URL+'checkLogin';//验证登陆
static const String LOGOUT = BASE_URL+'logout';//退出登陆
-
- static const String GET_USER_INFO = BASE_URL+'getUserInfo';//获取用户信息
-
-
- static const String VERSION = BASE_URL+'getAppVersion';//检查版本
-
- static const String FEEDBACK = BASE_URL+'auth/feedback';//建议反馈
-
-// static const String LOTOUT = BASE_URL+'logout';//退出登陆
-
- static const String GET_ALL_COLLECTION = BASE_URL+'auth/getAllUserCollection';//获取全部收藏
-
- static const String REMOVE_COLLECTION = BASE_URL+'auth/removeCollection';//移除收藏
-
- static const String ADD_COLLECTION = BASE_URL+'auth/addCollection';//添加收藏
-
- static const String CHECK_COLLECTED = BASE_URL+'checkCollected';//校验收藏
-
- static const String SET_THEMECOLOR = BASE_URL+'auth/setThemeColor';//设置主题颜色
-
- static const String GET_THEMECOLOR = BASE_URL +'/getThemeColor';//获取主题颜色
-
- static const String GET_WIDGET_TREE = BASE_URL + 'getCateList';//获取widget列表树
-
- static const String SEARCH_WIDGET = BASE_URL+'searchWidget';//搜索组件
-}
-
+}
\ No newline at end of file
diff --git a/lib/components/cate_card.dart b/lib/components/cate_card.dart
index aab9fa48..4d43c5d0 100644
--- a/lib/components/cate_card.dart
+++ b/lib/components/cate_card.dart
@@ -1,11 +1,11 @@
import 'package:flutter/material.dart';
+import '../model/cat.dart';
import '../resources/widget_name_to_icon.dart';
import '../components/widget_item_container.dart';
-import '../model/widget.dart';
class CateCard extends StatefulWidget {
- final CategoryComponent category;
+ final Cat category;
CateCard({@required this.category});
@override
_CateCardState createState() => _CateCardState();
@@ -13,15 +13,28 @@ class CateCard extends StatefulWidget {
class _CateCardState extends State {
// 一级菜单目录下的二级Cat集合
- List _firstChildList;
+ List _firstChildList = new List();
+ CatControlModel catControl = new CatControlModel();
@override
void initState() {
super.initState();
- _firstChildList = widget.category.children;
+ getFirstChildCategoriesByParentId();
}
+ // 获取一层目录下的二级内容
+ getFirstChildCategoriesByParentId() async {
+ int parentId = widget.category.id;
+ // 构建查询条件
+ Cat childCateCondition = new Cat(parentId: parentId);
+ List list = await catControl.getList(childCateCondition);
+ if (list.isNotEmpty&&list.length>=1 && this.mounted) {
+ setState(() {
+ _firstChildList = list;
+ });
+ }
+ }
@override
Widget build(BuildContext context) {
@@ -30,6 +43,7 @@ class _CateCardState extends State {
//首字母转为大写
widget.category.name.substring(0, 1),
widget.category.name.substring(0, 1).toUpperCase());
+
return Container(
width: screenWidth,
padding: const EdgeInsets.symmetric(vertical: 10.0, horizontal: 10.0),
@@ -105,8 +119,9 @@ class _CateCardState extends State {
),
),
child: WidgetItemContainer(
- commonItems: this._firstChildList,
- columnCount: 3
+ categories: this._firstChildList,
+ columnCount: 3,
+ isWidgetPoint:false
),
);
}
diff --git a/lib/components/category.dart b/lib/components/category.dart
index 0789e90e..7c6c0715 100644
--- a/lib/components/category.dart
+++ b/lib/components/category.dart
@@ -8,12 +8,11 @@ import '../model/widget.dart';
import '../widgets/index.dart';
import '../components/widget_item_container.dart';
-
+enum CateOrWigdet { Cat, WidgetDemo }
class CategoryHome extends StatefulWidget {
- CategoryHome(this.token);
- final String token;
-
+ CategoryHome(this.name);
+ final String name;
@override
_CategoryHome createState() => new _CategoryHome();
@@ -22,11 +21,12 @@ class CategoryHome extends StatefulWidget {
class _CategoryHome extends State {
String title = '';
// 显示列表 cat or widget;
- List items = [];
- List