Skip to content

Commit 4aac300

Browse files
author
wangchangsheng
committed
commit-完善功能+添加反馈模块+添加测试性功能
1 parent cd82981 commit 4aac300

File tree

55 files changed

+2283
-136
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+2283
-136
lines changed

android/app/build.gradle

+15-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,15 @@ android {
3333
targetCompatibility JavaVersion.VERSION_1_8
3434
}
3535

36+
signingConfigs {
37+
config {
38+
storeFile file("${app_keystore_filepath}")
39+
storePassword "${app_keystore_password}"
40+
keyAlias "${app_keystore_alias}"
41+
keyPassword "${app_keystore_keypassword}"
42+
}
43+
}
44+
3645
kotlinOptions {
3746
jvmTarget = '1.8'
3847
}
@@ -54,7 +63,12 @@ android {
5463
release {
5564
// TODO: Add your own signing config for the release build.
5665
// Signing with the debug keys for now, so `flutter run --release` works.
57-
signingConfig signingConfigs.debug
66+
signingConfig signingConfigs.config
67+
}
68+
debug {
69+
// TODO: Add your own signing config for the release build.
70+
// Signing with the debug keys for now, so `flutter run --release` works.
71+
signingConfig signingConfigs.config
5872
}
5973
}
6074
}

android/app/src/debug/AndroidManifest.xml

+4-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,8 @@
33
<!-- Flutter needs it to communicate with the running application
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->
6-
<uses-permission android:name="android.permission.INTERNET"/>
6+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
7+
<uses-permission android:name="android.permission.INTERNET" />
8+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
710
</manifest>

android/app/src/main/AndroidManifest.xml

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
22
package="com.winwang.open_eye">
3+
4+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
5+
<uses-permission android:name="android.permission.INTERNET" />
6+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
7+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
8+
39
<application
4-
android:label="open_eye"
10+
android:label="开眼Flutter"
511
android:name="${applicationName}"
612
android:icon="@mipmap/ic_launcher">
713
<activity
Loading
Loading
Loading
Loading
Loading

android/app/src/profile/AndroidManifest.xml

+3
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,7 @@
44
to allow setting breakpoints, to provide hot reload, etc.
55
-->
66
<uses-permission android:name="android.permission.INTERNET"/>
7+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
8+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
710
</manifest>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
2+
package="com.winwang.open_eye">
3+
<!-- Flutter needs it to communicate with the running application
4+
to allow setting breakpoints, to provide hot reload, etc.
5+
-->
6+
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
7+
<uses-permission android:name="android.permission.INTERNET" />
8+
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
9+
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
10+
</manifest>

android/gradle.properties

+5
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
5+
app_keystore_filepath=release/stockcircle.jks
6+
app_keystore_password=jds123456
7+
app_keystore_alias=stock
8+
app_keystore_keypassword=jds123456

assets/images/icon_complain.png

3 KB
Loading

assets/images/icon_explore.png

4.78 KB
Loading

ios/Runner/Info.plist

+48
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,53 @@
4343
</array>
4444
<key>UIViewControllerBasedStatusBarAppearance</key>
4545
<true/>
46+
<!-- 相册 -->
47+
<!-- 读取 -->
48+
<key>NSPhotoLibraryUsageDescription</key>
49+
<string>需要您的同意,APP才能访问相册</string>
50+
<!-- 存入 -->
51+
<key>NSPhotoLibraryAddUsageDescription</key>
52+
<string>需要访问您的相册,以保存图片到相册</string>
53+
54+
<!-- 相机 -->
55+
<key>NSCameraUsageDescription</key>
56+
<string>需要您的同意,APP才能访问相机</string>
57+
58+
<!-- 麦克风 -->
59+
<key>NSMicrophoneUsageDescription</key>
60+
<string>需要您的同意,APP才能访问麦克风</string>
61+
62+
<!-- 位置 -->
63+
<!-- 位置 -->
64+
<key>NSLocationUsageDescription</key>
65+
<string>需要您的同意, APP才能访问位置</string>
66+
<!-- 在使用期间访问位置 -->
67+
<key>NSLocationWhenInUseUsageDescription</key>
68+
<string>App需要您的同意, APP才能在使用期间访问位置</string>
69+
<!-- 始终访问位置 -->
70+
<key>NSLocationAlwaysUsageDescription</key>
71+
<string>App需要您的同意, APP才能始终访问位置</string>
72+
73+
<!-- 日历 -->
74+
<key>NSCalendarsUsageDescription</key>
75+
<string>App需要您的同意, APP才能访问日历</string>
76+
<!-- 提醒事项 -->
77+
<key>NSRemindersUsageDescription</key>
78+
<string>需要您的同意, APP才能访问提醒事项</string>
79+
<!-- 运动与健身 -->
80+
<key>NSMotionUsageDescription</key>
81+
<string>需要您的同意, APP才能访问运动与健身</string>
82+
<!-- 健康更新 -->
83+
<key>NSHealthUpdateUsageDescription</key>
84+
<string>需要您的同意, APP才能访问健康更新 </string>
85+
<!-- 健康分享 -->
86+
<key>NSHealthShareUsageDescription</key>
87+
<string>需要您的同意, APP才能访问健康分享</string>
88+
<!-- 蓝牙 -->
89+
<key>NSBluetoothPeripheralUsageDescription</key>
90+
<string>需要您的同意, APP才能访问蓝牙</string>
91+
<!-- 媒体资料库 -->
92+
<key>NSAppleMusicUsageDescription</key>
93+
<string>需要您的同意, APP才能访问媒体资料库</string>
4694
</dict>
4795
</plist>
+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
import 'package:flutter/material.dart';
2+
import 'package:get/get.dart';
3+
import 'package:open_eye/base/controller/base_controller.dart';
4+
import 'package:open_eye/widget/load_state_widget.dart';
5+
import 'package:open_eye/widget/loading_widget.dart';
6+
7+
///定义View组件--页面内某个模块cheng
8+
abstract class BaseComponent<T extends BaseController> extends GetView<T> {
9+
String? componentTag;
10+
11+
BaseComponent({Key? key, this.componentTag}) : super(key: key);
12+
13+
@override
14+
String? get tag => componentTag;
15+
16+
@override
17+
Widget build(BuildContext context) {
18+
return controller.obx((state) => buildContent(context),
19+
onLoading: Center(
20+
child: LoadingWidget(),
21+
),
22+
onError: (error) => createErroWidget(controller, error),
23+
onEmpty: createEmptyWidget(controller));
24+
}
25+
26+
///showSuccess展示成功的布局
27+
Widget buildContent(BuildContext context);
28+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
import 'package:flutter/cupertino.dart';
2+
import 'package:flutter_screenutil/flutter_screenutil.dart';
3+
import 'package:open_eye/base/controller/base_controller.dart';
4+
import 'package:open_eye/base/pageWidget/base_stateless_widget.dart';
5+
import 'package:open_eye/res/colors.dart';
6+
import 'package:open_eye/res/style.dart';
7+
import 'package:get/get.dart';
8+
9+
///常见问题展示页面
10+
class ComplainCommonPage extends BaseStatelessWidget<ComplainCommonController> {
11+
const ComplainCommonPage({Key? key}) : super(key: key);
12+
13+
@override
14+
Widget buildContent(BuildContext context) {
15+
return Obx(() => Column(
16+
children: [
17+
Container(
18+
height: 88.w,
19+
padding: EdgeInsets.only(left: 32.w),
20+
alignment: Alignment.centerLeft,
21+
child: Text(
22+
controller.aqTitle.value,
23+
style: TextStyle(
24+
fontSize: 32.sp,
25+
color: ColorStyle.color_333333,
26+
fontWeight: FontWeight.bold),
27+
),
28+
),
29+
DividerStyle.divider1Half,
30+
Container(
31+
alignment: Alignment.centerLeft,
32+
padding: EdgeInsets.all(32.w),
33+
child: Text(
34+
controller.aqDesc.value,
35+
style:
36+
TextStyle(fontSize: 28.sp, color: ColorStyle.color_666666),
37+
),
38+
)
39+
],
40+
));
41+
}
42+
43+
@override
44+
String titleString() => "常见问题";
45+
46+
@override
47+
bool useLoadSir() => false;
48+
}
49+
50+
class ComplainCommonController extends BaseController {
51+
RxString aqTitle = "".obs; //问题标题
52+
RxString aqDesc = "".obs; //问题描述
53+
54+
@override
55+
void loadNet() {}
56+
57+
@override
58+
void onReady() {
59+
super.onReady();
60+
aqTitle.value = Get.parameters["aqTitle"] ?? "";
61+
aqDesc.value = Get.parameters["aqDesc"] ?? "";
62+
}
63+
}
64+
65+
class ComplainCommonBinding extends Bindings {
66+
@override
67+
void dependencies() {
68+
Get.lazyPut(() => ComplainCommonController());
69+
}
70+
}

0 commit comments

Comments
 (0)