Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ethan
/
appframe
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit 111ffe17
authored
2025-10-20 10:37:40 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
修整
1 parent
60f5ffe5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
22 deletions
lib/app.dart
lib/bloc/wechat_auth_cubit.dart
pubspec.lock
pubspec.yaml
lib/app.dart
View file @
111ffe1
...
@@ -33,15 +33,15 @@ class App extends StatelessWidget {
...
@@ -33,15 +33,15 @@ class App extends StatelessWidget {
routerConfig:
router
,
routerConfig:
router
,
title:
'班小二'
,
title:
'班小二'
,
theme:
ThemeData
(
primarySwatch:
Colors
.
blue
),
theme:
ThemeData
(
primarySwatch:
Colors
.
blue
),
// === 为 iOS 添加本地化配置 ===
//
//
=== 为 iOS 添加本地化配置 ===
localizationsDelegates:
const
[
//
localizationsDelegates: const [
GlobalMaterialLocalizations
.
delegate
,
// 为Material组件提供本地化
//
GlobalMaterialLocalizations.delegate, // 为Material组件提供本地化
GlobalCupertinoLocalizations
.
delegate
,
// 为Cupertino组件提供本地化
//
GlobalCupertinoLocalizations.delegate, // 为Cupertino组件提供本地化
GlobalWidgetsLocalizations
.
delegate
,
// 定义文本方向等
//
GlobalWidgetsLocalizations.delegate, // 定义文本方向等
],
//
],
supportedLocales:
const
[
//
supportedLocales: const [
Locale
(
'zh'
,
'CN'
),
// 中文(中国)
//
Locale('zh', 'CN'), // 中文(中国)
Locale
(
'en'
,
'US'
),
// 英语(美国)
//
Locale('en', 'US'), // 英语(美国)
],
//
],
);
);
}
}
lib/bloc/wechat_auth_cubit.dart
View file @
111ffe1
...
@@ -68,9 +68,6 @@ class WechatAuthCubit extends Cubit<WechatAuthState> {
...
@@ -68,9 +68,6 @@ class WechatAuthCubit extends Cubit<WechatAuthState> {
_wechatAuthRepository
=
getIt
<
WechatAuthRepository
>();
_wechatAuthRepository
=
getIt
<
WechatAuthRepository
>();
}
}
Future
<
void
>
_register
()
async
{
await
_fluwx
.
registerApi
(
appId:
"wx8c32ea248f0c7765"
,
universalLink:
"https://dev.banxiaoer.net/path/to/wechat/"
);
}
void
_responseListener
(
response
)
async
{
void
_responseListener
(
response
)
async
{
if
(
response
is
WeChatAuthResponse
)
{
if
(
response
is
WeChatAuthResponse
)
{
dynamic
resultData
=
await
_wechatAuthRepository
.
codeToSk
(
response
.
code
!);
dynamic
resultData
=
await
_wechatAuthRepository
.
codeToSk
(
response
.
code
!);
...
...
pubspec.lock
View file @
111ffe1
This diff is collapsed.
Click to expand it.
pubspec.yaml
View file @
111ffe1
...
@@ -39,8 +39,6 @@ dependencies:
...
@@ -39,8 +39,6 @@ dependencies:
sdk
:
flutter
sdk
:
flutter
flutter_localizations
:
# 确保存在这一行
flutter_localizations
:
# 确保存在这一行
sdk
:
flutter
sdk
:
flutter
fluwx
:
^5.7.2
go_router
:
^16.2.1
archive
:
^4.0.7
archive
:
^4.0.7
connectivity_plus
:
^7.0.0
connectivity_plus
:
^7.0.0
device_info_plus
:
^11.5.0
device_info_plus
:
^11.5.0
...
@@ -70,13 +68,7 @@ dependencies:
...
@@ -70,13 +68,7 @@ dependencies:
path_provider
:
^2.1.5
path_provider
:
^2.1.5
permission_handler
:
^12.0.1
permission_handler
:
^12.0.1
shared_preferences
:
^2.5.3
shared_preferences
:
^2.5.3
flutter_sound
:
^9.28.0
# video_thumbnail: ^0.5.6
device_info_plus
:
^12.1.0
gallery_saver_plus
:
^3.2.9
flutter_image_compress
:
^2.4.0
image_size_getter
:
^2.4.1
video_thumbnail
:
^0.5.6
mime
:
^2.0.0
url_launcher
:
^6.3.2
url_launcher
:
^6.3.2
uuid
:
^4.5.1
uuid
:
^4.5.1
vibration
:
^3.1.3
vibration
:
^3.1.3
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment