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
24ec97a4
Commit
24ec97a4
authored
Apr 07, 2023
by
关振斌
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
d66f0f4f
Changes
17
Show whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
241 additions
and
156 deletions
+241
-156
ios/Runner/Runner.entitlements
ios/Runner/Runner.entitlements
+1
-1
lib/package/chat_dash/src/widgets/input_toolbar/default_input_decoration.dart
...h/src/widgets/input_toolbar/default_input_decoration.dart
+5
-2
lib/package/chat_dash/src/widgets/input_toolbar/input_toolbar.dart
...ge/chat_dash/src/widgets/input_toolbar/input_toolbar.dart
+7
-1
lib/pages/assistant-item/controller.dart
lib/pages/assistant-item/controller.dart
+6
-3
lib/pages/assistant-item/view.dart
lib/pages/assistant-item/view.dart
+30
-30
lib/pages/assistant/controller.dart
lib/pages/assistant/controller.dart
+1
-0
lib/pages/assistant/widgets/grid.dart
lib/pages/assistant/widgets/grid.dart
+67
-37
lib/pages/creation/widgets/grid.dart
lib/pages/creation/widgets/grid.dart
+1
-1
lib/pages/frame/pay_list/controller.dart
lib/pages/frame/pay_list/controller.dart
+16
-10
lib/pages/frame/pay_list/state.dart
lib/pages/frame/pay_list/state.dart
+4
-0
lib/pages/frame/pay_list/widgets/helloword.dart
lib/pages/frame/pay_list/widgets/helloword.dart
+52
-57
lib/pages/home/controller.dart
lib/pages/home/controller.dart
+9
-7
lib/pages/home/view.dart
lib/pages/home/view.dart
+5
-2
lib/pages/my/view.dart
lib/pages/my/view.dart
+13
-5
macos/Flutter/GeneratedPluginRegistrant.swift
macos/Flutter/GeneratedPluginRegistrant.swift
+2
-0
pubspec.lock
pubspec.lock
+21
-0
pubspec.yaml
pubspec.yaml
+1
-0
No files found.
ios/Runner/Runner.entitlements
View file @
24ec97a4
...
...
@@ -4,7 +4,7 @@
<dict>
<key>
com.apple.developer.associated-domains
</key>
<array>
<string>
applinks:www.
fusiontech.cn
/
</string>
<string>
applinks:www.
hahagpt.com/app
/
</string>
</array>
</dict>
</plist>
lib/package/chat_dash/src/widgets/input_toolbar/default_input_decoration.dart
View file @
24ec97a4
...
...
@@ -3,14 +3,17 @@ part of dash_chat_2;
/// {@category Default widgets}
InputDecoration
defaultInputDecoration
(
void
Function
()
sendMessage
,
{
void
Function
()
sendMessage
,
bool
bool
,
{
String
hintText
=
'请输入问题...'
,
TextStyle
hintStyle
=
const
TextStyle
(
color:
Colors
.
grey
),
Color
?
fillColor
,
bool
inputDisabled
=
true
,
})
=>
InputDecoration
(
isDense:
true
,
hintText:
hintText
,
hintText:
!
inputDisabled
?
'AI正在输入中...'
:
hintText
,
hintStyle:
hintStyle
,
filled:
true
,
// fillColor: fillColor ?? Colors.grey[100],
...
...
lib/package/chat_dash/src/widgets/input_toolbar/input_toolbar.dart
View file @
24ec97a4
...
...
@@ -100,7 +100,13 @@ class _InputToolbarState extends State<InputToolbar>
textCapitalization:
widget
.
inputOptions
.
textCapitalization
,
textInputAction:
widget
.
inputOptions
.
textInputAction
,
decoration:
widget
.
inputOptions
.
inputDecoration
??
defaultInputDecoration
(
_sendMessage
),
defaultInputDecoration
(
_sendMessage
,
hintText:
widget
.
inputOptions
.
inputDisabled
?
'AI正在输入中...'
:
'请输入问题...'
,
!
widget
.
inputOptions
.
inputDisabled
,
),
maxLength:
widget
.
inputOptions
.
maxInputLength
,
minLines:
1
,
maxLines:
1
,
...
...
lib/pages/assistant-item/controller.dart
View file @
24ec97a4
...
...
@@ -77,7 +77,9 @@ class AssistantItemController extends GetxController {
"question"
:
message
.
text
,
"sceneId"
:
state
.
selectItem
[
'sceneId'
],
});
}
catch
(
e
)
{}
}
catch
(
e
)
{
state
.
isLoading
=
false
;
}
// final loadingMessage = types.TextMessage(
// author: receiveUser,
...
...
@@ -93,15 +95,16 @@ class AssistantItemController extends GetxController {
SSEClient
.
subscribeToSSE
(
url:
"
$SERVER_API_URL
/openAi/connect/
${UserStore.to.profile.id}
"
,
header:
{}).
listen
((
event
)
async
{
print
(
event
);
if
(
event
.
data
!.
trim
().
isEmpty
)
{
return
;
}
else
if
(
event
.
id
==
"[DONE]"
)
{
print
(
'event.id
${event.id}
'
);
state
.
isLoading
=
false
;
await
UserAPI
.
saveResp
({
"conversionId"
:
state
.
actId
,
"content"
:
state
.
messageList
[
0
].
text
,
});
state
.
isLoading
=
false
;
return
;
}
Map
<
String
,
dynamic
>
jsonMap
=
jsonDecode
(
"
${event.data}
"
);
...
...
lib/pages/assistant-item/view.dart
View file @
24ec97a4
...
...
@@ -49,12 +49,12 @@ class AssistantItemPage extends GetView<AssistantItemController> {
])),
),
body:
KeyboardVisibilityBuilder
(
builder:
(
context
,
visible
)
{
return
Chat
.
DashChat
(
return
Obx
(()
=>
Chat
.
DashChat
(
inputOptions:
Chat
.
InputOptions
(
textInputAction:
TextInputAction
.
send
,
sendOnEnter:
true
,
// showTraillingBeforeSend: true,
//
inputDisabled: cc.state.isLoading,
inputDisabled:
cc
.
state
.
isLoading
,
inputTextStyle:
TextStyle
(
color:
Colors
.
white
),
inputToolbarStyle:
BoxDecoration
(
color:
Color
.
fromARGB
(
120
,
0
,
0
,
0
),
...
...
@@ -78,7 +78,7 @@ class AssistantItemPage extends GetView<AssistantItemController> {
onPressMessage:
cc
.
tabMessage
,
// containerColor: Colors.black,
),
);
)
);
})),
));
}
...
...
lib/pages/assistant/controller.dart
View file @
24ec97a4
...
...
@@ -38,6 +38,7 @@ class AssistantController extends GetxController {
'sceneId'
:
item
.
id
};
AssistantItemController
.
to
.
state
.
messageList
.
clear
();
AssistantItemController
.
to
.
state
.
isLoading
=
false
;
// CreationDetailController.to
// .updateState('${item.id}', item.detailName, res.data!);
Get
.
toNamed
(
AppRoutes
.
ASSISTANT_ITEM
);
...
...
lib/pages/assistant/widgets/grid.dart
View file @
24ec97a4
...
...
@@ -68,21 +68,14 @@ class GridWidget extends GetView<AssistantController> {
top:
10
,
bottom:
20
,
),
child:
Obx
(()
=>
StaggeredGrid
.
count
(
crossAxisCount:
1
,
mainAxisSpacing:
20
,
crossAxisSpacing:
10
,
children:
List
.
generate
(
controller
.
sceneList
.
length
,
(
index
)
{
return
StaggeredGridTile
.
count
(
crossAxisCellCount:
1
,
mainAxisCellCount:
0.31
,
child:
Container
(
// margin: EdgeInsets.only(bottom: 20),
child:
Obx
(()
=>
Column
(
children:
controller
.
sceneList
.
map
((
element
)
{
return
Container
(
margin:
EdgeInsets
.
only
(
bottom:
20
),
child:
InkWell
(
borderRadius:
BorderRadius
.
circular
(
10
),
onTap:
()
{
controller
.
onTap
(
controller
.
sceneList
[
index
]
);
controller
.
onTap
(
element
);
},
child:
Ink
(
padding:
EdgeInsets
.
all
(
10
),
...
...
@@ -101,6 +94,8 @@ class GridWidget extends GetView<AssistantController> {
]),
),
child:
Row
(
mainAxisAlignment:
MainAxisAlignment
.
spaceBetween
,
children:
[
ClipRRect
(
borderRadius:
BorderRadius
.
circular
(
40
),
...
...
@@ -111,8 +106,7 @@ class GridWidget extends GetView<AssistantController> {
Duration
(
milliseconds:
500
),
placeholder:
const
AssetImage
(
'assets/images/loading.gif'
),
// 加载指示器
image:
NetworkImage
(
'
${controller.sceneList[index].icon}
'
),
image:
NetworkImage
(
'
${element.icon}
'
),
// image: NetworkImage(
// 'https://www.google.com/url?sa=i&url=https%3A%2F%2Fwww.pinterest.com%2Fpin%2Fai-visualization-design-fui-artificial-intelligence-siri-filter-ai-loading-logo-flow-light--400538960609301125%2F&psig=AOvVaw0X4iFGabqA_JwUiW9zEG4u&ust=1680859399497000&source=images&cd=vfe&ved=0CA8QjRxqFwoTCLiAnK33lP4CFQAAAAAdAAAAABAb'), // 图像URL
fit:
BoxFit
.
cover
,
// 图像适应方式
...
...
@@ -120,7 +114,7 @@ class GridWidget extends GetView<AssistantController> {
),
),
// Image.network(
//
controller.sceneList[index]
.icon),
//
element
.icon),
Expanded
(
child:
Container
(
// color: Colors.red,
...
...
@@ -128,6 +122,8 @@ class GridWidget extends GetView<AssistantController> {
left:
10
,
),
child:
Column
(
crossAxisAlignment:
CrossAxisAlignment
.
start
,
mainAxisAlignment:
MainAxisAlignment
.
spaceAround
,
children:
[
...
...
@@ -136,9 +132,7 @@ class GridWidget extends GetView<AssistantController> {
MainAxisAlignment
.
spaceBetween
,
children:
[
Text
(
controller
.
sceneList
[
index
]
.
sceneName
),
Text
(
element
.
sceneName
),
GradientButton
(
child:
Text
(
'咨询'
,
style:
TextStyle
(
...
...
@@ -146,9 +140,7 @@ class GridWidget extends GetView<AssistantController> {
increaseHeightBy:
-
5.00
,
increaseWidthBy:
-
10.00
,
callback:
()
{
controller
.
onTap
(
controller
.
sceneList
[
index
]);
controller
.
onTap
(
element
);
},
// controller.requestPurchase,
gradient:
...
...
@@ -174,8 +166,7 @@ class GridWidget extends GetView<AssistantController> {
// .withOpacity(0.25),
)
]),
Text
(
"
${controller.sceneList[index].sceneDesc}
"
,
Text
(
"
${element.sceneDesc}
"
,
maxLines:
2
,
textAlign:
TextAlign
.
left
,
overflow:
TextOverflow
.
ellipsis
,
...
...
@@ -185,10 +176,49 @@ class GridWidget extends GetView<AssistantController> {
)
],
),
)
)
,
),
),
);
}).
toList
())),
}).
toList
(),
))
// Obx(() => StaggeredGrid.count(
// crossAxisCount: 1,
// mainAxisSpacing: 20,
// crossAxisSpacing: 10,
// children: List.generate(controller.sceneList.length, (index) {
// return StaggeredGridTile.count(
// crossAxisCellCount: 1,
// mainAxisCellCount: 0.31,
// child: Container(
// // margin: EdgeInsets.only(bottom: 20),
// child: InkWell(
// borderRadius: BorderRadius.circular(10),
// onTap: () {
// controller.onTap(element);
// },
// child: Ink(
// padding: EdgeInsets.all(10),
// decoration: BoxDecoration(
// borderRadius: BorderRadius.circular(10),
// // ignore: prefer_const_constructors
// gradient: LinearGradient(
// begin: Alignment.topCenter,
// end: Alignment.bottomCenter,
// // background-image: linear-gradient(180deg, #3d3f54, #333450, #2b2b4d);
// colors: const [
// Color(0xFF3d3f54),
// Color(0xFF333450),
// Color(0xFF2b2b4d)
// ]),
// ),
// child: ,
// )),
// ),
// );
// }).toList())),
);
},
childCount:
1
,
...
...
lib/pages/creation/widgets/grid.dart
View file @
24ec97a4
...
...
@@ -96,7 +96,7 @@ class GridWidget extends GetView<CreationController> {
},
child:
Column
(
mainAxisAlignment:
MainAxisAlignment
.
space
Between
,
MainAxisAlignment
.
space
Evenly
,
children:
[
Padding
(
padding:
...
...
lib/pages/frame/pay_list/controller.dart
View file @
24ec97a4
...
...
@@ -60,10 +60,16 @@ class PayListController extends GetxController {
@override
void
onInit
()
async
{
super
.
onInit
();
try
{
await
initializedPlugins
();
EasyLoading
.
show
(
status:
"正在获取套餐中..."
);
state
.
loadingList
=
true
;
await
_getProduct
();
state
.
loadingList
=
false
;
EasyLoading
.
dismiss
();
}
catch
(
e
)
{
state
.
loadingList
=
false
;
}
// await initializedPlugins();
// new 对象
// 初始静态数据
...
...
@@ -77,9 +83,7 @@ class PayListController extends GetxController {
// setState to update our non-existent appearance.
_conectionSubscription
=
FlutterInappPurchase
.
connectionUpdated
.
listen
((
connected
)
{
print
(
'connected:
$connected
'
);
});
FlutterInappPurchase
.
connectionUpdated
.
listen
((
connected
)
{});
_purchaseUpdatedSubscription
=
FlutterInappPurchase
.
purchaseUpdated
.
listen
((
productItem
)
async
{
...
...
@@ -87,12 +91,14 @@ class PayListController extends GetxController {
'receipt'
:
productItem
?.
transactionReceipt
,
'userId'
:
UserStore
.
to
.
profile
.
id
,
'productId'
:
productItem
!.
productId
,
"chooseEnv"
:
false
"chooseEnv"
:
false
,
"transactionId"
:
productItem
.
transactionId
,
// "transactionDate": productItem.transactionDate!.toIso8601String(),
});
if
(
res
?.
status
==
200
)
{
state
.
loading
=
false
;
EasyLoading
.
showSuccess
(
'
${res?.message}
'
);
EasyLoading
.
showSuccess
(
res
.
message
);
Vibrate
.
feedback
(
FeedbackType
.
success
);
EasyLoading
.
dismiss
();
UserAPI
.
getUserInfo
().
then
((
value
)
async
{
...
...
@@ -163,7 +169,7 @@ class PayListController extends GetxController {
// print("${item.productId}");
// 处理以前购买的产品
// 处理以前购买的产
2
品
}
}
...
...
lib/pages/frame/pay_list/state.dart
View file @
24ec97a4
...
...
@@ -15,5 +15,9 @@ class PayListState {
set
loading
(
value
)
=>
_loading
.
value
=
value
;
get
loading
=>
_loading
.
value
;
final
_loadingList
=
false
.
obs
;
set
loadingList
(
value
)
=>
_loadingList
.
value
=
value
;
get
loadingList
=>
_loadingList
.
value
;
RxList
<
IAPItem
>
items
=
<
IAPItem
>[].
obs
;
}
lib/pages/frame/pay_list/widgets/helloword.dart
View file @
24ec97a4
import
'dart:math'
;
import
'package:card_swiper/card_swiper.dart'
;
import
'package:chart/common/routers/names.dart'
;
import
'package:chart/common/store/user.dart'
;
import
'package:flutter/material.dart'
;
...
...
@@ -21,13 +22,13 @@ const color = Color(0xff8AFBFF);
class
PayItemWidget
extends
GetView
<
PayListController
>
{
@override
Widget
build
(
BuildContext
context
)
{
Random
random
=
new
Random
();
//
Random random = new Random();
// List<Bullet> bullets = [];
List
<
Bullet
>
bullets
=
List
<
Bullet
>.
generate
(
1000
,
(
i
)
{
final
showTime
=
random
.
nextInt
(
60000
);
// in 60s
return
Bullet
(
child:
Text
(
'
$i
-
$showTime
'
),
showTime:
showTime
);
});
//
List<Bullet> bullets = List<Bullet>.generate(1000, (i) {
//
final showTime = random.nextInt(60000); // in 60s
//
return Bullet(child: Text('$i-$showTime'), showTime: showTime);
//
});
final
barrageWallController
=
BarrageWallController
();
final
textEditingController
=
TextEditingController
();
// final textEditingController = TextEditingController();
...
...
@@ -38,13 +39,16 @@ class PayItemWidget extends GetView<PayListController> {
child:
ListView
(
children:
[
Obx
(()
=>
c
.
profile
.
expireTime
==
null
?
const
Text
(
?
const
Center
(
child:
Text
(
"您还不是 VIP 会员"
,
style:
TextStyle
(
color:
Color
.
fromARGB
(
255
,
160
,
165
,
184
),
fontSize:
14
,
),
),
)
// 那俄语呢 那他的反义词呢
:
Align
(
alignment:
Alignment
.
center
,
child:
Container
(
...
...
@@ -266,7 +270,7 @@ class PayItemWidget extends GetView<PayListController> {
255
,
241
,
197
,
131
)),
),
Text
(
'¥
${(
int.parse(element.price!) * 1.2).toInt(
)}
'
,
'¥
${(
double.parse(element.price!) * 1.2).toStringAsFixed(2
)}
'
,
style:
TextStyle
(
color:
Color
.
fromARGB
(
255
,
140
,
145
,
151
),
...
...
@@ -540,18 +544,18 @@ class PayItemWidget extends GetView<PayListController> {
]))
],
)),
Container
(
// loadingList
Obx
(()
=>
AnimatedOpacity
(
opacity:
controller
.
state
.
loadingList
?
0
:
1
,
duration:
const
Duration
(
milliseconds:
500
),
child:
Container
(
padding:
const
EdgeInsets
.
only
(
top:
10
,
bottom:
50
,
),
decoration:
BoxDecoration
(
color:
const
Color
(
0xFF3d3f54
).
withOpacity
(.
8
),
// gradient: const LinearGradient(
// colors: [Color(0xFF3d3f54), Color(0xFF333450), Color(0xFF2b2b4d)],
// begin: Alignment.topCenter,
// end: Alignment.bottomCenter,
// )
),
width:
Get
.
width
,
child:
Obx
(
...
...
@@ -564,18 +568,9 @@ class PayItemWidget extends GetView<PayListController> {
isEnabled:
!
controller
.
state
.
loading
,
// callback: controller.genInner,
shapeRadius:
const
BorderRadius
.
all
(
Radius
.
circular
(
5
)),
// controller.requestPurchase,
// gradient: Gradients.cosmicFusion,
// background-image: linear-gradient(180deg, #3d3f54, #333450, #2b2b4d);
elevation:
0
,
gradient:
const
LinearGradient
(
colors:
[
// 61, 63, 84
// 180deg,
// #be6afb,
// #9c67f6,
// #7965f8
Color
(
0xFFbe6afb
),
Color
(
0xFF9c67f6
),
Color
(
0xFF7965f8
)
...
...
@@ -584,10 +579,10 @@ class PayItemWidget extends GetView<PayListController> {
end:
Alignment
.
bottomCenter
,
),
child:
const
Text
(
'立即解锁'
,
style:
TextStyle
(
fontSize:
14
,
fontWeight:
FontWeight
.
w500
)),
style:
TextStyle
(
fontSize:
14
,
fontWeight:
FontWeight
.
w500
)),
),
))
))
))
],
);
}
...
...
lib/pages/home/controller.dart
View file @
24ec97a4
...
...
@@ -335,14 +335,15 @@ class HomeController extends GetxController with SingleGetTickerProviderMixin {
}
reset
()
async
{
rotateIcon
();
await
rotateIcon
();
try
{
await
UserAPI
.
resetConversion
();
EasyLoading
.
showToast
(
'
重置成功'
);
EasyLoading
.
showToast
(
'
已将对话上下文重置!'
,
maskType:
EasyLoadingMaskType
.
none
);
}
catch
(
e
)
{}
}
virtualPay
(){
virtualPay
()
{
if
(
GetPlatform
.
isAndroid
)
{
Get
.
toNamed
(
AppRoutes
.
AN_PAY_LIST
);
}
else
{
...
...
@@ -406,14 +407,15 @@ class HomeController extends GetxController with SingleGetTickerProviderMixin {
Animation
<
double
>
get
animation
=>
_animation
;
void
rotateIcon
()
{
Future
rotateIcon
()
{
if
(
_isRotated
)
{
_controller
.
re
verse
();
_controller
.
re
peat
();
}
else
{
_controller
.
forward
();
_controller
.
repeat
();
}
_isRotated
=
!
_isRotated
;
update
();
return
Future
.
delayed
(
Duration
(
seconds:
2
),
()
=>
_controller
.
stop
());
}
///dispose 释放内存
...
...
lib/pages/home/view.dart
View file @
24ec97a4
...
...
@@ -96,7 +96,7 @@ class HomePage extends GetView<HomeController> {
color:
Color
.
fromARGB
(
255
,
95
,
54
,
0
),
fontSize:
16
)),
]),
callback:
()
=>
controller
.
virtualPay
()),
callback:
()
=>
controller
.
virtualPay
()),
),
body:
SizedBox
(
width:
double
.
infinity
,
...
...
@@ -107,14 +107,16 @@ class HomePage extends GetView<HomeController> {
// color: Color.fromARGB(0, 29, 33, 60),
// color: Color.fromARGB(255, 26, 27, 46),
child:
Chat
.
DashChat
(
inputOptions:
const
Chat
.
InputOptions
(
inputOptions:
Chat
.
InputOptions
(
textInputAction:
TextInputAction
.
send
,
inputDisabled:
cc
.
state
.
isLoading
,
sendOnEnter:
true
,
// showTraillingBeforeSend: true,
// inputDisabled: cc.state.isLoading,
inputTextStyle:
TextStyle
(
color:
Colors
.
white
),
inputToolbarStyle:
BoxDecoration
(
color:
Color
.
fromARGB
(
120
,
0
,
0
,
0
),
// Color.fromARGB(0, 54, 59, 72),
borderRadius:
BorderRadius
.
only
(
topLeft:
Radius
.
circular
(
16
),
...
...
@@ -130,6 +132,7 @@ class HomePage extends GetView<HomeController> {
messages:
cc
.
state
.
messageList
,
messageOptions:
Chat
.
MessageOptions
(
onPressMessage:
cc
.
tabMessage
,
onLongPressMessage:
(
mes
)
=>
{},
// containerColor: Colors.black,
),
),
...
...
lib/pages/my/view.dart
View file @
24ec97a4
...
...
@@ -16,12 +16,14 @@ class MyPage extends GetView<MyController> {
padding:
EdgeInsets
.
symmetric
(
horizontal:
10
),
children:
[
Obx
(()
=>
c
.
profile
.
expireTime
==
null
?
const
Text
(
?
const
Center
(
child:
Text
(
"您还不是 VIP 会员"
,
style:
TextStyle
(
color:
Color
.
fromARGB
(
255
,
160
,
165
,
184
),
fontSize:
14
,
),
),
)
:
Align
(
alignment:
Alignment
.
center
,
...
...
@@ -64,6 +66,7 @@ class MyPage extends GetView<MyController> {
Container
(
margin:
EdgeInsets
.
only
(
top:
20
),
child:
InkWell
(
borderRadius:
BorderRadius
.
circular
(
10
),
onTap:
()
{
Get
.
toNamed
(
AppRoutes
.
PAY_LIST
);
},
...
...
@@ -102,6 +105,7 @@ class MyPage extends GetView<MyController> {
Container
(
margin:
EdgeInsets
.
only
(
top:
20
),
child:
InkWell
(
borderRadius:
BorderRadius
.
circular
(
10
),
onTap:
()
{
Get
.
toNamed
(
AppRoutes
.
USER_EULA
);
},
...
...
@@ -140,6 +144,7 @@ class MyPage extends GetView<MyController> {
Container
(
margin:
EdgeInsets
.
only
(
top:
20
),
child:
InkWell
(
borderRadius:
BorderRadius
.
circular
(
10
),
onTap:
()
{
Get
.
toNamed
(
AppRoutes
.
PRIVACT
);
},
...
...
@@ -174,6 +179,9 @@ class MyPage extends GetView<MyController> {
padding:
EdgeInsets
.
symmetric
(
horizontal:
20
,
vertical:
15
),
),
),
),
Container
(
child:
Text
(
"12"
),
)
// GradientButton(child: Text("321"), callback: () {})
],
...
...
macos/Flutter/GeneratedPluginRegistrant.swift
View file @
24ec97a4
...
...
@@ -16,6 +16,7 @@ import share_plus
import
shared_preferences_foundation
import
sign_in_with_apple
import
smart_auth
import
speech_to_text_macos
import
sqflite
import
url_launcher_macos
...
...
@@ -31,6 +32,7 @@ func RegisterGeneratedPlugins(registry: FlutterPluginRegistry) {
SharedPreferencesPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"SharedPreferencesPlugin"
))
SignInWithApplePlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"SignInWithApplePlugin"
))
SmartAuthPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"SmartAuthPlugin"
))
SpeechToTextMacosPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"SpeechToTextMacosPlugin"
))
SqflitePlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"SqflitePlugin"
))
UrlLauncherPlugin
.
register
(
with
:
registry
.
registrar
(
forPlugin
:
"UrlLauncherPlugin"
))
}
pubspec.lock
View file @
24ec97a4
...
...
@@ -1202,6 +1202,27 @@ packages:
url: "https://pub.dartlang.org"
source: hosted
version: "1.9.0"
speech_to_text:
dependency: "direct main"
description:
name: speech_to_text
url: "https://pub.dartlang.org"
source: hosted
version: "6.1.1"
speech_to_text_macos:
dependency: transitive
description:
name: speech_to_text_macos
url: "https://pub.dartlang.org"
source: hosted
version: "1.0.2"
speech_to_text_platform_interface:
dependency: transitive
description:
name: speech_to_text_platform_interface
url: "https://pub.dartlang.org"
source: hosted
version: "2.0.1"
sqflite:
dependency: transitive
description:
...
...
pubspec.yaml
View file @
24ec97a4
...
...
@@ -125,6 +125,7 @@ dependencies:
clipboard
:
^0.1.3
flutter_tts
:
^3.6.3
custom_pop_up_menu
:
^1.2.4
speech_to_text
:
^6.1.1
# 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