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 2fd34d99
authored
2026-04-28 23:34:00 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.APP唤醒时,检测APP的版本号;2.设置界面增加打开下载界面的按钮。
1 parent
bd06b441
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
0 deletions
lib/bloc/web_cubit.dart
lib/ui/pages/setting/setting_page.dart
lib/ui/pages/web_page.dart
lib/bloc/web_cubit.dart
View file @
2fd34d9
This diff is collapsed.
Click to expand it.
lib/ui/pages/setting/setting_page.dart
View file @
2fd34d9
...
@@ -6,6 +6,7 @@ import 'package:appframe/config/env_config.dart';
...
@@ -6,6 +6,7 @@ import 'package:appframe/config/env_config.dart';
import
'package:appframe/config/routes.dart'
;
import
'package:appframe/config/routes.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter/material.dart'
;
import
'package:flutter_bloc/flutter_bloc.dart'
;
import
'package:flutter_bloc/flutter_bloc.dart'
;
import
'package:url_launcher/url_launcher.dart'
;
class
SettingPage
extends
StatelessWidget
{
class
SettingPage
extends
StatelessWidget
{
const
SettingPage
({
super
.
key
});
const
SettingPage
({
super
.
key
});
...
@@ -158,6 +159,31 @@ class SettingPage extends StatelessWidget {
...
@@ -158,6 +159,31 @@ class SettingPage extends StatelessWidget {
),
),
),
),
const
SizedBox
(
height:
8
),
const
SizedBox
(
height:
8
),
Card
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
2
),
shape:
RoundedRectangleBorder
(
borderRadius:
BorderRadius
.
circular
(
6
),
),
child:
Column
(
children:
[
ListTile
(
leading:
const
Icon
(
Icons
.
download
,
size:
20
),
title:
const
Text
(
'下载与更新'
,
style:
TextStyle
(
fontSize:
14
)),
onTap:
()
async
{
final
uri
=
Uri
.
parse
(
'https://www.banxe.cn/apps/pro.html'
);
if
(
await
canLaunchUrl
(
uri
))
{
await
launchUrl
(
uri
,
mode:
LaunchMode
.
externalApplication
);
}
},
contentPadding:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
4
),
trailing:
const
Icon
(
Icons
.
arrow_forward_ios
,
size:
14
),
dense:
true
,
visualDensity:
VisualDensity
.
compact
,
),
],
),
),
const
SizedBox
(
height:
8
),
...
customerService
,
...
customerService
,
Card
(
Card
(
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
2
),
margin:
const
EdgeInsets
.
symmetric
(
horizontal:
16
,
vertical:
2
),
...
...
lib/ui/pages/web_page.dart
View file @
2fd34d9
...
@@ -148,6 +148,8 @@ class WebPage extends StatelessWidget {
...
@@ -148,6 +148,8 @@ class WebPage extends StatelessWidget {
context
.
read
<
WebCubit
>().
chooseImage
(
context
);
context
.
read
<
WebCubit
>().
chooseImage
(
context
);
}
else
if
(
state
.
chooseVideoCmdFlag
)
{
}
else
if
(
state
.
chooseVideoCmdFlag
)
{
context
.
read
<
WebCubit
>().
chooseVideo
(
context
);
context
.
read
<
WebCubit
>().
chooseVideo
(
context
);
}
else
if
(
state
.
suggestAppUpgrade
)
{
context
.
read
<
WebCubit
>().
suggestAppUpdate
(
context
);
}
}
},
},
),
),
...
...
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