Fix Bug: 关于页
This commit is contained in:
@@ -114,7 +114,7 @@ class _LoginPageState extends State<MyAbout> {
|
|||||||
SizedBox(height: 60),
|
SizedBox(height: 60),
|
||||||
// Text('宜宾市翠屏黑烟车电子抓拍系统', style: TextStyle(fontSize: 20)),
|
// Text('宜宾市翠屏黑烟车电子抓拍系统', style: TextStyle(fontSize: 20)),
|
||||||
Text(qx_name_long + '黑烟车电子抓拍系统', style: TextStyle(fontSize: 20)),
|
Text(qx_name_long + '黑烟车电子抓拍系统', style: TextStyle(fontSize: 20)),
|
||||||
Text('v${widget.ver}(${widget.date})', style: TextStyle(fontSize: 20)),
|
Text('v${widget.ver}', style: TextStyle(fontSize: 20)),
|
||||||
SizedBox(height: 60),
|
SizedBox(height: 60),
|
||||||
// Text('© 宜宾市翠屏生态环境局 版权所有',
|
// Text('© 宜宾市翠屏生态环境局 版权所有',
|
||||||
Text(copyright_info,
|
Text(copyright_info,
|
||||||
|
|||||||
@@ -443,14 +443,10 @@ class _Page4_MyMsicsNewState extends State<Page4_MyMsicsNew>
|
|||||||
|
|
||||||
OnTap_MyAbout() {
|
OnTap_MyAbout() {
|
||||||
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
|
PackageInfo.fromPlatform().then((PackageInfo packageInfo) {
|
||||||
String appName = packageInfo.appName;
|
|
||||||
String packageName = packageInfo.packageName;
|
|
||||||
String version = packageInfo.version;
|
String version = packageInfo.version;
|
||||||
String buildNumber = packageInfo.buildNumber;
|
String buildNumber = packageInfo.buildNumber;
|
||||||
String buildDate =
|
|
||||||
'${buildNumber.substring(0, 4)}.${buildNumber.substring(4, 6)}.${buildNumber.substring(6, 8)}';
|
|
||||||
Navigator.of(context)
|
Navigator.of(context)
|
||||||
.push(MaterialPageRoute(builder: (context) => MyAbout(ver: version, date: buildDate)));
|
.push(MaterialPageRoute(builder: (context) => MyAbout(ver: version)));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user