Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
ChatGPT
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
关振斌
ChatGPT
Commits
1c1e22c6
Commit
1c1e22c6
authored
Apr 06, 2023
by
关振斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update ios design
parent
545df9e8
Changes
19
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
19 changed files
with
1069 additions
and
658 deletions
+1069
-658
lib/common/apis/user.dart
lib/common/apis/user.dart
+9
-0
lib/common/entities/detail.dart
lib/common/entities/detail.dart
+4
-4
lib/pages/application/controller.dart
lib/pages/application/controller.dart
+8
-8
lib/pages/application/view.dart
lib/pages/application/view.dart
+3
-1
lib/pages/assistant/widgets/grid.dart
lib/pages/assistant/widgets/grid.dart
+15
-2
lib/pages/creation-detail/controller.dart
lib/pages/creation-detail/controller.dart
+103
-2
lib/pages/creation-detail/state.dart
lib/pages/creation-detail/state.dart
+12
-0
lib/pages/creation-detail/view.dart
lib/pages/creation-detail/view.dart
+20
-25
lib/pages/creation-detail/widgets/hello.dart
lib/pages/creation-detail/widgets/hello.dart
+248
-102
lib/pages/creation/controller.dart
lib/pages/creation/controller.dart
+3
-2
lib/pages/creation/widgets/grid.dart
lib/pages/creation/widgets/grid.dart
+21
-8
lib/pages/frame/pay_list/view.dart
lib/pages/frame/pay_list/view.dart
+29
-40
lib/pages/frame/pay_list/widgets/helloword copy.dart
lib/pages/frame/pay_list/widgets/helloword copy.dart
+445
-0
lib/pages/frame/pay_list/widgets/helloword.dart
lib/pages/frame/pay_list/widgets/helloword.dart
+47
-420
lib/pages/home/controller.dart
lib/pages/home/controller.dart
+3
-0
lib/pages/home/view.dart
lib/pages/home/view.dart
+16
-13
lib/pages/my/view.dart
lib/pages/my/view.dart
+2
-2
pubspec.lock
pubspec.lock
+78
-29
pubspec.yaml
pubspec.yaml
+3
-0
No files found.
lib/common/apis/user.dart
View file @
1c1e22c6
...
@@ -136,6 +136,15 @@ class UserAPI {
...
@@ -136,6 +136,15 @@ class UserAPI {
// return ApplePayEntity.fromMap(response['data']);
// return ApplePayEntity.fromMap(response['data']);
}
}
static
Future
<
int
>
sceneGeneral
(
Map
<
String
,
dynamic
>
parameters
)
async
{
var
response
=
await
HttpUtil
().
post
(
'/scene/sceneGeneral/
${parameters['detailId']}
'
,
data:
parameters
[
'arr'
],
);
return
response
[
'status'
];
// return ApplePayEntity.fromMap(response['data']);
}
// /api/
// /api/
// openAi/createConversion
// openAi/createConversion
...
...
lib/common/entities/detail.dart
View file @
1c1e22c6
...
@@ -62,7 +62,7 @@ class DetailData {
...
@@ -62,7 +62,7 @@ class DetailData {
String
?
_updateTime
;
String
?
_updateTime
;
int
?
_isDelete
;
int
?
_isDelete
;
int
?
_isShow
;
int
?
_isShow
;
Null
?
_value
;
String
?
_value
;
int
?
_sort
;
int
?
_sort
;
DetailData
(
DetailData
(
...
@@ -74,7 +74,7 @@ class DetailData {
...
@@ -74,7 +74,7 @@ class DetailData {
String
?
updateTime
,
String
?
updateTime
,
int
?
isDelete
,
int
?
isDelete
,
int
?
isShow
,
int
?
isShow
,
Null
?
value
,
String
?
value
,
int
?
sort
})
{
int
?
sort
})
{
if
(
id
!=
null
)
{
if
(
id
!=
null
)
{
this
.
_id
=
id
;
this
.
_id
=
id
;
...
@@ -124,8 +124,8 @@ class DetailData {
...
@@ -124,8 +124,8 @@ class DetailData {
set
isDelete
(
int
?
isDelete
)
=>
_isDelete
=
isDelete
;
set
isDelete
(
int
?
isDelete
)
=>
_isDelete
=
isDelete
;
int
?
get
isShow
=>
_isShow
;
int
?
get
isShow
=>
_isShow
;
set
isShow
(
int
?
isShow
)
=>
_isShow
=
isShow
;
set
isShow
(
int
?
isShow
)
=>
_isShow
=
isShow
;
Null
?
get
value
=>
_value
;
String
?
get
value
=>
_value
;
set
value
(
Null
?
value
)
=>
_value
=
value
;
set
value
(
String
?
value
)
=>
_value
=
value
;
int
?
get
sort
=>
_sort
;
int
?
get
sort
=>
_sort
;
set
sort
(
int
?
sort
)
=>
_sort
=
sort
;
set
sort
(
int
?
sort
)
=>
_sort
=
sort
;
...
...
lib/pages/application/controller.dart
View file @
1c1e22c6
...
@@ -130,34 +130,34 @@ class ApplicationController extends GetxController {
...
@@ -130,34 +130,34 @@ class ApplicationController extends GetxController {
bottomTabs
=
<
BottomNavigationBarItem
>[
bottomTabs
=
<
BottomNavigationBarItem
>[
// ignore: unnecessary_new
// ignore: unnecessary_new
const
BottomNavigationBarItem
(
const
BottomNavigationBarItem
(
icon:
Image
(
image:
AssetImage
(
"assets/images/home.png"
),
width:
24
.0
),
icon:
Image
(
image:
AssetImage
(
"assets/images/home.png"
),
width:
30
.0
),
activeIcon:
Image
(
activeIcon:
Image
(
image:
AssetImage
(
"assets/images/home-selected.png"
),
width:
24
.0
),
image:
AssetImage
(
"assets/images/home-selected.png"
),
width:
30
.0
),
label:
'百晓通'
,
label:
'百晓通'
,
backgroundColor:
AppColors
.
primaryBackground
,
backgroundColor:
AppColors
.
primaryBackground
,
),
),
const
BottomNavigationBarItem
(
const
BottomNavigationBarItem
(
icon:
icon:
Image
(
image:
AssetImage
(
"assets/images/product.png"
),
width:
24
.0
),
Image
(
image:
AssetImage
(
"assets/images/product.png"
),
width:
30
.0
),
activeIcon:
Image
(
activeIcon:
Image
(
image:
AssetImage
(
"assets/images/product-selected.png"
),
image:
AssetImage
(
"assets/images/product-selected.png"
),
width:
24
.0
),
width:
30
.0
),
label:
'创作'
,
label:
'创作'
,
backgroundColor:
AppColors
.
primaryBackground
,
backgroundColor:
AppColors
.
primaryBackground
,
),
),
const
BottomNavigationBarItem
(
const
BottomNavigationBarItem
(
icon:
Image
(
icon:
Image
(
image:
AssetImage
(
"assets/images/assistant.png"
),
width:
24
.0
),
image:
AssetImage
(
"assets/images/assistant.png"
),
width:
30
.0
),
activeIcon:
Image
(
activeIcon:
Image
(
image:
AssetImage
(
"assets/images/assistant-selected.png"
),
image:
AssetImage
(
"assets/images/assistant-selected.png"
),
width:
24
.0
),
width:
30
.0
),
label:
'私人助理'
,
label:
'私人助理'
,
backgroundColor:
AppColors
.
primaryBackground
,
backgroundColor:
AppColors
.
primaryBackground
,
),
),
const
BottomNavigationBarItem
(
const
BottomNavigationBarItem
(
icon:
Image
(
image:
AssetImage
(
"assets/images/my.png"
),
width:
24
.0
),
icon:
Image
(
image:
AssetImage
(
"assets/images/my.png"
),
width:
30
.0
),
activeIcon:
Image
(
activeIcon:
Image
(
image:
AssetImage
(
"assets/images/my-selected.png"
),
width:
24
.0
),
image:
AssetImage
(
"assets/images/my-selected.png"
),
width:
30
.0
),
label:
'我的'
,
label:
'我的'
,
backgroundColor:
AppColors
.
primaryBackground
,
backgroundColor:
AppColors
.
primaryBackground
,
),
),
...
...
lib/pages/application/view.dart
View file @
1c1e22c6
...
@@ -103,8 +103,9 @@ class ApplicationPage extends GetView<ApplicationController> {
...
@@ -103,8 +103,9 @@ class ApplicationPage extends GetView<ApplicationController> {
// letIndexChange: (index) => true,
// letIndexChange: (index) => true,
// ),
// ),
return
Obx
(()
=>
BottomNavigationBar
(
return
Obx
(()
=>
BottomNavigationBar
(
// #363b48
// #363b48
backgroundColor:
Color
.
fromARGB
(
0
,
54
,
59
,
72
),
backgroundColor:
Color
.
fromARGB
(
120
,
0
,
0
,
0
),
//
//
// Color.fromARGB(255, 54, 59, 72),
// Color.fromARGB(255, 54, 59, 72),
// Color.argb(255, 82, 88, 103)
// Color.argb(255, 82, 88, 103)
...
@@ -114,6 +115,7 @@ class ApplicationPage extends GetView<ApplicationController> {
...
@@ -114,6 +115,7 @@ class ApplicationPage extends GetView<ApplicationController> {
items:
controller
.
bottomTabs
,
items:
controller
.
bottomTabs
,
currentIndex:
controller
.
state
.
page
,
currentIndex:
controller
.
state
.
page
,
// fixedColor: AppColors.primaryElement,
// fixedColor: AppColors.primaryElement,
landscapeLayout:
BottomNavigationBarLandscapeLayout
.
spread
,
type:
BottomNavigationBarType
.
fixed
,
type:
BottomNavigationBarType
.
fixed
,
onTap:
controller
.
handleNavBarTap
,
onTap:
controller
.
handleNavBarTap
,
showSelectedLabels:
true
,
showSelectedLabels:
true
,
...
...
lib/pages/assistant/widgets/grid.dart
View file @
1c1e22c6
...
@@ -107,8 +107,21 @@ class GridWidget extends GetView<AssistantController> {
...
@@ -107,8 +107,21 @@ class GridWidget extends GetView<AssistantController> {
increaseWidthBy:
-
10.00
,
increaseWidthBy:
-
10.00
,
callback:
()
{},
callback:
()
{},
// controller.requestPurchase,
// controller.requestPurchase,
gradient:
gradient:
const
LinearGradient
(
Gradients
.
cosmicFusion
,
colors:
[
// 61, 63, 84
// 180deg,
// #be6afb,
// #9c67f6,
// #7965f8
Color
(
0xFFbe6afb
),
Color
(
0xFF9c67f6
),
Color
(
0xFF7965f8
)
],
begin:
Alignment
.
topCenter
,
end:
Alignment
.
bottomCenter
,
),
// shadowColor: Gradients
// shadowColor: Gradients
// .backToFuture.colors.last
// .backToFuture.colors.last
// .withOpacity(0.25),
// .withOpacity(0.25),
...
...
lib/pages/creation-detail/controller.dart
View file @
1c1e22c6
import
'dart:convert'
;
import
'package:chart/common/apis/apis.dart'
;
import
'package:chart/common/entities/detail.dart'
;
import
'package:chart/common/entities/detail.dart'
;
import
'package:chart/common/store/user.dart'
;
import
'package:chart/common/values/server.dart'
;
import
'package:flutter/cupertino.dart'
;
import
'package:flutter_client_sse/flutter_client_sse.dart'
;
import
'package:flutter_easyloading/flutter_easyloading.dart'
;
import
'package:get/get.dart'
;
import
'package:get/get.dart'
;
import
'index.dart'
;
import
'index.dart'
;
class
CreationDetailController
extends
GetxController
{
class
CreationDetailController
extends
GetxController
{
static
CreationDetailController
get
to
=>
Get
.
put
(
CreationDetailController
());
static
CreationDetailController
get
to
=>
Get
.
put
(
CreationDetailController
());
late
var
sse
;
CreationDetailController
();
CreationDetailController
();
final
scrollController
=
ScrollController
();
Map
<
String
,
TextEditingController
>
inputControllerMap
=
{
'input1'
:
TextEditingController
(),
'input2'
:
TextEditingController
(),
};
final
state
=
CreationDetailState
();
final
state
=
CreationDetailState
();
// final
// final
...
@@ -19,15 +33,100 @@ class CreationDetailController extends GetxController {
...
@@ -19,15 +33,100 @@ class CreationDetailController extends GetxController {
);
);
}
}
void
updateState
(
String
title
,
List
<
DetailData
>
items
)
{
getController
(
int
key
)
{
return
inputControllerMap
[
'input
$key
'
];
}
void
updateState
(
String
id
,
String
title
,
List
<
DetailData
>
items
)
{
state
.
title
=
title
;
state
.
title
=
title
;
state
.
detailList
.
value
=
[];
state
.
id
=
id
;
// state.detailList.value = [];
items
.
sort
((
a
,
b
)
=>
a
.
sort
!
-
b
.
sort
!);
// input1
state
.
detailList
.
addAll
(
items
);
state
.
detailList
.
addAll
(
items
);
}
}
void
hideKeyboard
()
=>
FocusManager
.
instance
.
primaryFocus
?.
unfocus
();
void
genInner
()
async
{
await
initEventSource
();
TextEditingController
input1
=
inputControllerMap
[
'input1'
]!;
TextEditingController
input2
=
inputControllerMap
[
'input2'
]!;
if
(
input1
.
text
.
trim
().
isEmpty
||
input2
.
text
.
trim
().
isEmpty
)
{
EasyLoading
.
showToast
(
"请输入完整内容"
);
}
else
{
state
.
detailList
.
forEach
((
el
)
{
if
(
el
.
sort
==
1
)
{
el
.
value
=
input1
.
text
;
}
else
{
el
.
value
=
input2
.
text
;
}
});
hideKeyboard
();
EasyLoading
.
show
(
status:
"AI正在生成中..."
);
try
{
state
.
isLoading
=
true
;
await
NewsAPI
.
sendMessageByDetailId
(
state
.
detailList
.
value
,
state
.
id
);
if
(
state
.
genText
.
isNotEmpty
)
{
state
.
genText
=
''
;
}
// state.isLoading = false;
}
catch
(
e
)
{
state
.
isLoading
=
false
;
// EasyLoading.dismiss();
}
EasyLoading
.
dismiss
();
}
}
initEventSource
()
async
{
final
_this
=
this
;
// if (UserStore.to.isLogin) {
sse
=
SSEClient
.
subscribeToSSE
(
url:
"
$SERVER_API_URL
/openAi/connect/
${UserStore.to.profile.id}
"
,
header:
{}).
listen
((
event
)
async
{
print
(
'
$event
1213213131'
);
if
(
event
.
data
!.
trim
().
isEmpty
)
{
return
;
}
else
if
(
event
.
id
==
"[DONE]"
)
{
// await UserAPI.saveResp({
// "conversionId": state.conversionId,
// "content": state.messageList[0].text,
// });
_this
.
state
.
isLoading
=
false
;
return
;
}
Map
<
String
,
dynamic
>
jsonMap
=
jsonDecode
(
"
${event.data}
"
);
state
.
genText
=
state
.
genText
+
"
${jsonMap['content']}
"
;
});
// print(sse);
}
bool
back
()
{
state
.
detailList
.
value
=
[];
inputControllerMap
[
'input1'
]!.
text
=
''
;
inputControllerMap
[
'input2'
]!.
text
=
''
;
state
.
genText
=
''
;
return
true
;
}
/// 在 widget 内存中分配后立即调用。
/// 在 widget 内存中分配后立即调用。
@override
@override
void
onInit
()
{
void
onInit
()
{
// _focusNode.addListener(() {
// if (_focusNode.hasFocus) {//有焦点
// }else{ //失去焦点
// }
// });
// scrollController.addListener(() {
// print('scrollController$scrollController');
// });
super
.
onInit
();
super
.
onInit
();
}
}
...
@@ -46,6 +145,8 @@ class CreationDetailController extends GetxController {
...
@@ -46,6 +145,8 @@ class CreationDetailController extends GetxController {
/// dispose 释放内存
/// dispose 释放内存
@override
@override
void
dispose
()
{
void
dispose
()
{
print
(
21321
);
SSEClient
.
unsubscribeFromSSE
();
super
.
dispose
();
super
.
dispose
();
}
}
}
}
lib/pages/creation-detail/state.dart
View file @
1c1e22c6
...
@@ -7,5 +7,17 @@ class CreationDetailState {
...
@@ -7,5 +7,17 @@ class CreationDetailState {
set
title
(
value
)
=>
_title
.
value
=
value
;
set
title
(
value
)
=>
_title
.
value
=
value
;
get
title
=>
_title
.
value
;
get
title
=>
_title
.
value
;
final
_id
=
""
.
obs
;
set
id
(
value
)
=>
_id
.
value
=
value
;
get
id
=>
_id
.
value
;
final
_genText
=
""
.
obs
;
set
genText
(
value
)
=>
_genText
.
value
=
value
;
get
genText
=>
_genText
.
value
;
final
_isLoading
=
false
.
obs
;
set
isLoading
(
value
)
=>
_isLoading
.
value
=
value
;
get
isLoading
=>
_isLoading
.
value
;
RxList
detailList
=
[].
obs
;
RxList
detailList
=
[].
obs
;
}
}
lib/pages/creation-detail/view.dart
View file @
1c1e22c6
...
@@ -21,28 +21,23 @@ class CreationDetailPage extends GetView<CreationDetailController> {
...
@@ -21,28 +21,23 @@ class CreationDetailPage extends GetView<CreationDetailController> {
image:
DecorationImage
(
image:
DecorationImage
(
image:
Image
.
asset
(
"assets/images/background.png"
).
image
,
image:
Image
.
asset
(
"assets/images/background.png"
).
image
,
fit:
BoxFit
.
cover
),
fit:
BoxFit
.
cover
),
// gradient: LinearGradient(
// begin: Alignment.topCenter,
// end: Alignment.bottomCenter,
// // background: linear-gradient(180deg, #0F172A 0%, #0F1B38 100%);
// colors: [
// Color(0xFF0F172A),
// Color(0xFF0F1B38),
// ],
// ),
),
),
child:
Obx
(()
=>
Scaffold
(
child:
Obx
(
()
=>
WillPopScope
(
onWillPop:
()
async
{
return
controller
.
back
();
},
child:
Scaffold
(
backgroundColor:
Color
.
fromARGB
(
0
,
29
,
33
,
60
),
backgroundColor:
Color
.
fromARGB
(
0
,
29
,
33
,
60
),
appBar:
AppBar
(
appBar:
AppBar
(
backgroundColor:
Color
.
fromARGB
(
0
,
29
,
33
,
60
),
backgroundColor:
Color
.
fromARGB
(
0
,
29
,
33
,
60
),
title:
Text
(
'
${controller.state.title}
'
),
title:
Text
(
'
${controller.state.title}
'
),
elevation:
0
),
elevation:
0
),
body:
Container
(
body:
Container
(
child:
SafeArea
(
child:
_buildView
(),
child:
_buildView
(),
),
)),
)),
)),
));
);
},
},
);
);
}
}
...
...
lib/pages/creation-detail/widgets/hello.dart
View file @
1c1e22c6
This diff is collapsed.
Click to expand it.
lib/pages/creation/controller.dart
View file @
1c1e22c6
...
@@ -37,10 +37,11 @@ class CreationController extends GetxController {
...
@@ -37,10 +37,11 @@ class CreationController extends GetxController {
size:
30
,
size:
30
,
));
));
Vibrate
.
feedback
(
FeedbackType
.
impact
);
Vibrate
.
feedback
(
FeedbackType
.
impact
);
final
res
=
await
UserAPI
.
getDetailParamsByDetailId
(
item
.
classifyI
d
);
final
res
=
await
UserAPI
.
getDetailParamsByDetailId
(
item
.
i
d
);
EasyLoading
.
dismiss
();
EasyLoading
.
dismiss
();
CreationDetailController
.
to
.
updateState
(
item
.
detailName
,
res
.
data
!);
CreationDetailController
.
to
.
updateState
(
'
${item.id}
'
,
item
.
detailName
,
res
.
data
!);
Get
.
toNamed
(
AppRoutes
.
CREATION_PAGE_DETAIL
);
Get
.
toNamed
(
AppRoutes
.
CREATION_PAGE_DETAIL
);
//
//
}
}
...
...
lib/pages/creation/widgets/grid.dart
View file @
1c1e22c6
...
@@ -96,7 +96,7 @@ class GridWidget extends GetView<CreationController> {
...
@@ -96,7 +96,7 @@ class GridWidget extends GetView<CreationController> {
image:
Image
.
network
(
image:
Image
.
network
(
'
${controller.list[index].icon}
'
)
'
${controller.list[index].icon}
'
)
.
image
,
.
image
,
fit:
BoxFit
.
fit
Width
,
fit:
BoxFit
.
fit
Height
,
// colorFilter: ColorFilter.mode(Colors.red, BlendMode.colorBurn),
// colorFilter: ColorFilter.mode(Colors.red, BlendMode.colorBurn),
),
),
),
),
...
@@ -105,18 +105,31 @@ class GridWidget extends GetView<CreationController> {
...
@@ -105,18 +105,31 @@ class GridWidget extends GetView<CreationController> {
MainAxisAlignment
.
end
,
MainAxisAlignment
.
end
,
children:
[
children:
[
GradientButton
(
GradientButton
(
child:
Text
(
'2.8万人使用'
,
child:
const
Text
(
'2.8万人使用'
,
style:
TextStyle
(
style:
TextStyle
(
fontSize:
10
)),
fontSize:
10
)),
increaseHeightBy:
-
10.00
,
increaseHeightBy:
-
10.00
,
increaseWidthBy:
-
10.00
,
increaseWidthBy:
-
10.00
,
callback:
()
{},
callback:
()
{
controller
.
onTap
(
controller
.
list
[
index
]);
},
// controller.requestPurchase,
// controller.requestPurchase,
gradient:
gradient:
const
LinearGradient
(
Gradients
.
cosmicFusion
,
colors:
[
shadowColor:
Gradients
// 61, 63, 84
.
backToFuture
.
colors
.
last
.
withOpacity
(
0.25
),
// 180deg,
// #be6afb,
// #9c67f6,
// #7965f8
Color
(
0xFFbe6afb
),
Color
(
0xFF9c67f6
),
Color
(
0xFF7965f8
)
],
begin:
Alignment
.
topCenter
,
end:
Alignment
.
bottomCenter
,
),
)
)
],
],
)
)
...
...
lib/pages/frame/pay_list/view.dart
View file @
1c1e22c6
...
@@ -19,47 +19,36 @@ class PayListPage extends GetView<PayListController> {
...
@@ -19,47 +19,36 @@ class PayListPage extends GetView<PayListController> {
@override
@override
Widget
build
(
BuildContext
context
)
{
Widget
build
(
BuildContext
context
)
{
final
c
=
Get
.
put
(
PayListController
());
final
c
=
Get
.
put
(
PayListController
());
return
Scaffold
(
return
Container
(
// appBar: transparentAppBar(
// color: Colors.amber,
// title: Text(
// "套餐选择",
// style: TextStyle(
// color: AppColors.primaryElementText,
// fontFamily: 'Montserrat',
// fontSize: 18,
// fontWeight: FontWeight.w600,
// ),
// ),
// leading: IconButton(
// tooltip: '返回上一页',
// icon: const Icon(
// Icons.arrow_back,
// color: AppColors.primaryElementText,
// ),
// onPressed: () async {
// // Get.back();
// // Get.offAll(ApplicationPage());
// // await Get.off(ApplicationPage());
// // Get.toNamed(AppRoutes.Application);
// Get.back();
// // await Get.toNamed();
// // Navigator.of(context).pop();
// //_nextPage(-1);
// },
// ),
// ),
// _buildView
body:
Container
(
width:
double
.
infinity
,
height:
double
.
infinity
,
height:
double
.
infinity
,
// padding: EdgeInsets.symmetric(horizontal: 20)
,
// width: Get.width
,
decoration:
BoxDecoration
(
decoration:
BoxDecoration
(
image:
DecorationImage
(
image:
DecorationImage
(
image:
Image
.
asset
(
"assets/images/bg1
.png"
).
image
,
image:
Image
.
asset
(
"assets/images/background
.png"
).
image
,
fit:
BoxFit
.
cover
),
fit:
BoxFit
.
cover
),
),
),
child:
_buildView
()),
child:
Scaffold
(
appBar:
AppBar
(
elevation:
0
,
backgroundColor:
const
Color
.
fromARGB
(
0
,
0
,
0
,
0
),
title:
Text
(
"订阅中心"
),
),
backgroundColor:
const
Color
.
fromARGB
(
0
,
0
,
0
,
0
),
body:
_buildView
()
// Container(
// // child: Text("12312"),
// // width: double.infinity,
// // height: double.infinity,
// // // padding: EdgeInsets.symmetric(horizontal: 20),
// // decoration: BoxDecoration(
// // image: DecorationImage(
// // image: Image.asset("assets/images/bg1.png").image,
// // fit: BoxFit.cover),
// // ),
// // child:
// ),
),
);
);
}
}
}
}
lib/pages/frame/pay_list/widgets/helloword copy.dart
0 → 100644
View file @
1c1e22c6
This diff is collapsed.
Click to expand it.
lib/pages/frame/pay_list/widgets/helloword.dart
View file @
1c1e22c6
This diff is collapsed.
Click to expand it.
lib/pages/home/controller.dart
View file @
1c1e22c6
...
@@ -65,6 +65,9 @@ class HomeController extends GetxController {
...
@@ -65,6 +65,9 @@ class HomeController extends GetxController {
/// 事件
/// 事件
void
sendMessage
(
Chat
.
ChatMessage
message
)
async
{
void
sendMessage
(
Chat
.
ChatMessage
message
)
async
{
if
(
state
.
isLoading
||
message
.
text
.
trim
().
isEmpty
)
{
return
;
}
Vibrate
.
feedback
(
FeedbackType
.
impact
);
Vibrate
.
feedback
(
FeedbackType
.
impact
);
final
textMessage
=
Chat
.
ChatMessage
(
final
textMessage
=
Chat
.
ChatMessage
(
...
...
lib/pages/home/view.dart
View file @
1c1e22c6
...
@@ -80,9 +80,11 @@ class HomePage extends GetView<HomeController> {
...
@@ -80,9 +80,11 @@ class HomePage extends GetView<HomeController> {
Text
(
"订阅"
,
Text
(
"订阅"
,
style:
TextStyle
(
style:
TextStyle
(
color:
Color
.
fromARGB
(
255
,
95
,
54
,
0
),
color:
Color
.
fromARGB
(
255
,
95
,
54
,
0
),
fontSize:
16
))
fontSize:
16
))
,
]),
]),
callback:
()
{})
callback:
()
{
Get
.
toNamed
(
AppRoutes
.
PAY_LIST
);
})
// IconButton(
// IconButton(
// tooltip: '返回上一页',
// tooltip: '返回上一页',
...
@@ -96,7 +98,7 @@ class HomePage extends GetView<HomeController> {
...
@@ -96,7 +98,7 @@ class HomePage extends GetView<HomeController> {
// },
// },
// ),
// ),
),
),
body:
Container
(
body:
SizedBox
(
width:
double
.
infinity
,
width:
double
.
infinity
,
height:
double
.
infinity
,
height:
double
.
infinity
,
// color: Color.fromARGB(0, 255, 255, 0),
// color: Color.fromARGB(0, 255, 255, 0),
...
@@ -109,18 +111,19 @@ class HomePage extends GetView<HomeController> {
...
@@ -109,18 +111,19 @@ class HomePage extends GetView<HomeController> {
textInputAction:
TextInputAction
.
send
,
textInputAction:
TextInputAction
.
send
,
sendOnEnter:
true
,
sendOnEnter:
true
,
// showTraillingBeforeSend: true,
// showTraillingBeforeSend: true,
inputDisabled:
cc
.
state
.
isLoading
,
// inputDisabled: cc.state.isLoading,
inputTextStyle:
TextStyle
(
color:
Colors
.
white
),
inputTextStyle:
const
TextStyle
(
color:
Colors
.
white
),
// inputToolbarStyle: BoxDecoration(
inputToolbarStyle:
const
BoxDecoration
(
// color: Color.fromARGB(0, 54, 59, 72),
color:
Color
.
fromARGB
(
120
,
0
,
0
,
0
),
// borderRadius: BorderRadius.only(
// Color.fromARGB(0, 54, 59, 72),
// topLeft: Radius.circular(16),
borderRadius:
BorderRadius
.
only
(
// topRight: Radius.circular(16)),
topLeft:
Radius
.
circular
(
16
),
// ),
topRight:
Radius
.
circular
(
16
)),
),
inputToolbarMargin:
EdgeInsets
.
all
(
0
),
inputToolbarMargin:
EdgeInsets
.
all
(
0
),
sendButtonBuilder:
null
,
sendButtonBuilder:
null
,
inputToolbarPadding:
inputToolbarPadding:
const
EdgeInsets
.
only
(
EdgeInsets
.
only
(
top:
15
,
right:
15
,
left:
15
,
bottom:
10
),
top:
15
,
right:
15
,
left:
15
,
bottom:
10
),
),
),
currentUser:
_user
,
currentUser:
_user
,
onSend:
cc
.
sendMessage
,
onSend:
cc
.
sendMessage
,
...
...
lib/pages/my/view.dart
View file @
1c1e22c6
...
@@ -20,12 +20,12 @@ class MyPage extends GetView<MyController> {
...
@@ -20,12 +20,12 @@ class MyPage extends GetView<MyController> {
id:
"my"
,
id:
"my"
,
builder:
(
_
)
{
builder:
(
_
)
{
return
Scaffold
(
return
Scaffold
(
backgroundColor:
Color
.
fromARGB
(
255
,
29
,
33
,
60
),
backgroundColor:
Color
.
fromARGB
(
0
,
29
,
33
,
60
),
appBar:
AppBar
(
appBar:
AppBar
(
elevation:
0
,
elevation:
0
,
title:
const
Text
(
"我的"
),
title:
const
Text
(
"我的"
),
bottomOpacity:
0.1
,
bottomOpacity:
0.1
,
backgroundColor:
Color
.
fromARGB
(
255
,
29
,
33
,
60
),
backgroundColor:
Color
.
fromARGB
(
0
,
29
,
33
,
60
),
),
),
body:
SafeArea
(
body:
SafeArea
(
child:
_buildView
(),
child:
_buildView
(),
...
...
pubspec.lock
View file @
1c1e22c6
...
@@ -7,7 +7,7 @@ packages:
...
@@ -7,7 +7,7 @@ packages:
name: _flutterfire_internals
name: _flutterfire_internals
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "1.
0.17
"
version: "1.
1.0
"
alipay_kit:
alipay_kit:
dependency: "direct main"
dependency: "direct main"
description:
description:
...
@@ -273,7 +273,7 @@ packages:
...
@@ -273,7 +273,7 @@ packages:
name: easy_container
name: easy_container
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "1.0.4"
version: "1.0.4
+1
"
equatable:
equatable:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -329,42 +329,42 @@ packages:
...
@@ -329,42 +329,42 @@ packages:
name: firebase_auth
name: firebase_auth
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "4.
2.1
0"
version: "4.
4.
0"
firebase_auth_platform_interface:
firebase_auth_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: firebase_auth_platform_interface
name: firebase_auth_platform_interface
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "6.1
1.12
"
version: "6.1
3.0
"
firebase_auth_web:
firebase_auth_web:
dependency: transitive
dependency: transitive
description:
description:
name: firebase_auth_web
name: firebase_auth_web
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "5.
2.9
"
version: "5.
3.0
"
firebase_core:
firebase_core:
dependency: transitive
dependency: transitive
description:
description:
name: firebase_core
name: firebase_core
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
7.1
"
version: "2.
9.0
"
firebase_core_platform_interface:
firebase_core_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: firebase_core_platform_interface
name: firebase_core_platform_interface
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "4.
5.3
"
version: "4.
6.0
"
firebase_core_web:
firebase_core_web:
dependency: transitive
dependency: transitive
description:
description:
name: firebase_core_web
name: firebase_core_web
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
2.2
"
version: "2.
3.0
"
firebase_phone_auth_handler:
firebase_phone_auth_handler:
dependency: "direct main"
dependency: "direct main"
description:
description:
...
@@ -384,6 +384,13 @@ packages:
...
@@ -384,6 +384,13 @@ packages:
description: flutter
description: flutter
source: sdk
source: sdk
version: "0.0.0"
version: "0.0.0"
flutter_barrage:
dependency: "direct main"
description:
name: flutter_barrage
url: "https://pub.dartlang.org"
source: hosted
version: "0.5.2"
flutter_blurhash:
flutter_blurhash:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -453,7 +460,7 @@ packages:
...
@@ -453,7 +460,7 @@ packages:
name: flutter_inapp_purchase
name: flutter_inapp_purchase
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "5.4.
0
"
version: "5.4.
1
"
flutter_inappwebview:
flutter_inappwebview:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -461,6 +468,48 @@ packages:
...
@@ -461,6 +468,48 @@ packages:
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "5.7.2+3"
version: "5.7.2+3"
flutter_keyboard_visibility:
dependency: "direct main"
description:
name: flutter_keyboard_visibility
url: "https://pub.dartlang.org"
source: hosted
version: "5.4.0"
flutter_keyboard_visibility_linux:
dependency: transitive
description:
name: flutter_keyboard_visibility_linux
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
flutter_keyboard_visibility_macos:
dependency: transitive
description:
name: flutter_keyboard_visibility_macos
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
flutter_keyboard_visibility_platform_interface:
dependency: transitive
description:
name: flutter_keyboard_visibility_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
flutter_keyboard_visibility_web:
dependency: transitive
description:
name: flutter_keyboard_visibility_web
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.0"
flutter_keyboard_visibility_windows:
dependency: transitive
description:
name: flutter_keyboard_visibility_windows
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.0"
flutter_link_previewer:
flutter_link_previewer:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -678,14 +727,14 @@ packages:
...
@@ -678,14 +727,14 @@ packages:
name: image_picker
name: image_picker
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "0.8.7"
version: "0.8.7
+1
"
image_picker_android:
image_picker_android:
dependency: transitive
dependency: transitive
description:
description:
name: image_picker_android
name: image_picker_android
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "0.8.6+
1
"
version: "0.8.6+
6
"
image_picker_for_web:
image_picker_for_web:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -699,7 +748,7 @@ packages:
...
@@ -699,7 +748,7 @@ packages:
name: image_picker_ios
name: image_picker_ios
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "0.8.7+
1
"
version: "0.8.7+
2
"
image_picker_platform_interface:
image_picker_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -860,7 +909,7 @@ packages:
...
@@ -860,7 +909,7 @@ packages:
name: path_provider
name: path_provider
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.0.1
3
"
version: "2.0.1
4
"
path_provider_android:
path_provider_android:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -874,7 +923,7 @@ packages:
...
@@ -874,7 +923,7 @@ packages:
name: path_provider_foundation
name: path_provider_foundation
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
1.3
"
version: "2.
2.1
"
path_provider_linux:
path_provider_linux:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -965,7 +1014,7 @@ packages:
...
@@ -965,7 +1014,7 @@ packages:
name: pointycastle
name: pointycastle
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "3.
6
.2"
version: "3.
7
.2"
process:
process:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -1035,49 +1084,49 @@ packages:
...
@@ -1035,49 +1084,49 @@ packages:
name: shared_preferences
name: shared_preferences
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
0.18
"
version: "2.
1.0
"
shared_preferences_android:
shared_preferences_android:
dependency: transitive
dependency: transitive
description:
description:
name: shared_preferences_android
name: shared_preferences_android
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
0.17
"
version: "2.
1.0
"
shared_preferences_foundation:
shared_preferences_foundation:
dependency: transitive
dependency: transitive
description:
description:
name: shared_preferences_foundation
name: shared_preferences_foundation
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
1.5
"
version: "2.
2.0
"
shared_preferences_linux:
shared_preferences_linux:
dependency: transitive
dependency: transitive
description:
description:
name: shared_preferences_linux
name: shared_preferences_linux
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
1.5
"
version: "2.
2.0
"
shared_preferences_platform_interface:
shared_preferences_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: shared_preferences_platform_interface
name: shared_preferences_platform_interface
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
1.1
"
version: "2.
2.0
"
shared_preferences_web:
shared_preferences_web:
dependency: transitive
dependency: transitive
description:
description:
name: shared_preferences_web
name: shared_preferences_web
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
0.6
"
version: "2.
1.0
"
shared_preferences_windows:
shared_preferences_windows:
dependency: transitive
dependency: transitive
description:
description:
name: shared_preferences_windows
name: shared_preferences_windows
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.
1.5
"
version: "2.
2.0
"
sign_in_with_apple:
sign_in_with_apple:
dependency: "direct main"
dependency: "direct main"
description:
description:
...
@@ -1215,14 +1264,14 @@ packages:
...
@@ -1215,14 +1264,14 @@ packages:
name: url_launcher_android
name: url_launcher_android
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "6.0.2
5
"
version: "6.0.2
6
"
url_launcher_ios:
url_launcher_ios:
dependency: transitive
dependency: transitive
description:
description:
name: url_launcher_ios
name: url_launcher_ios
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "6.1.
2
"
version: "6.1.
3
"
url_launcher_linux:
url_launcher_linux:
dependency: transitive
dependency: transitive
description:
description:
...
@@ -1285,35 +1334,35 @@ packages:
...
@@ -1285,35 +1334,35 @@ packages:
name: video_player
name: video_player
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.6.
0
"
version: "2.6.
1
"
video_player_android:
video_player_android:
dependency: transitive
dependency: transitive
description:
description:
name: video_player_android
name: video_player_android
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.4.
2
"
version: "2.4.
4
"
video_player_avfoundation:
video_player_avfoundation:
dependency: transitive
dependency: transitive
description:
description:
name: video_player_avfoundation
name: video_player_avfoundation
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.4.
1
"
version: "2.4.
3
"
video_player_platform_interface:
video_player_platform_interface:
dependency: transitive
dependency: transitive
description:
description:
name: video_player_platform_interface
name: video_player_platform_interface
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "6.
0.2
"
version: "6.
1.0
"
video_player_web:
video_player_web:
dependency: transitive
dependency: transitive
description:
description:
name: video_player_web
name: video_player_web
url: "https://pub.dartlang.org"
url: "https://pub.dartlang.org"
source: hosted
source: hosted
version: "2.0.1
5
"
version: "2.0.1
6
"
visibility_detector:
visibility_detector:
dependency: transitive
dependency: transitive
description:
description:
...
...
pubspec.yaml
View file @
1c1e22c6
...
@@ -120,6 +120,9 @@ dependencies:
...
@@ -120,6 +120,9 @@ dependencies:
device_info_plus
:
^8.1.0
device_info_plus
:
^8.1.0
app_settings
:
^4.2.0
app_settings
:
^4.2.0
loading_animation_widget
:
^1.2.0+4
loading_animation_widget
:
^1.2.0+4
flutter_keyboard_visibility
:
^5.4.0
flutter_barrage
:
^0.5.2
# package:bubble/bubble.dart
# package:bubble/bubble.dart
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment