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 2e3fcdbe
authored
2025-12-20 10:50:33 +0800
by
tanghuan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
开发版和正式版显示区别
1 parent
b3e0e504
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
4 deletions
lib/ui/pages/web_page.dart
lib/ui/pages/web_page.dart
View file @
2e3fcdb
...
...
@@ -138,7 +138,9 @@ class WebPage extends StatelessWidget {
AppBar
_buildAppBar
(
BuildContext
ctx
,
WebState
state
)
{
return
AppBar
(
title:
Text
(
state
.
title
+
state
.
testMsg
,
style:
TextStyle
(
color:
Color
(
state
.
titleColor
),
fontSize:
18
)),
title:
EnvConfig
.
isDev
()
?
Text
(
state
.
title
+
state
.
testMsg
,
style:
TextStyle
(
color:
Color
(
state
.
titleColor
),
fontSize:
18
))
:
Text
(
state
.
title
,
style:
TextStyle
(
color:
Color
(
state
.
titleColor
),
fontSize:
18
)),
centerTitle:
true
,
automaticallyImplyLeading:
false
,
backgroundColor:
Color
(
state
.
bgColor
),
...
...
@@ -350,16 +352,18 @@ class WebPage extends StatelessWidget {
child:
Center
(
child:
Column
(
children:
[
if
(
EnvConfig
.
isDev
())
...[
Text
(
EnvConfig
.
isDev
()
?
'开发版'
:
'正式
版'
,
'开发
版'
,
style:
TextStyle
(
color:
Colors
.
grey
,
fontSize:
14
,
),
),
SizedBox
(
height:
4
),
],
Text
(
'Version
${Constant.appVersion}
-
${state.h5Version}
'
,
'Version
1.0.0
'
,
style:
TextStyle
(
color:
Colors
.
grey
,
fontSize:
12
,
...
...
@@ -373,7 +377,15 @@ class WebPage extends StatelessWidget {
Text
(
'Copyright © 中山班小二科技有限公司'
,
),
SizedBox
(
height:
18
),
SizedBox
(
height:
8
),
Text
(
'
${Constant.appVersion}
-
${state.h5Version}
'
,
style:
TextStyle
(
color:
Colors
.
grey
,
fontSize:
12
,
),
),
SizedBox
(
height:
10
),
],
),
),
...
...
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