@@ -28,58 +28,64 @@ class _HelpPageState extends State<HelpPage> {
2828 builder: (BuildContext context, AsyncSnapshot <void > snapshot) {
2929 switch (snapshot.connectionState) {
3030 case ConnectionState .done: // 执行完成
31- return new Column (
32- children: [
33- new RichText (
34- text: TextSpan (
35- children: [
36- TextSpan (
37- text: '介绍\n ' ,
38- style: Theme .of (context).primaryTextTheme.headline6,
39- ),
40- TextSpan (
41- text: '《Murmurer》是一款用来记录生活的软件。\n\n ' ,
42- style: TextStyle (color: Colors .black),
43- ),
44- TextSpan (
45- text: '关于\n ' ,
46- style: Theme .of (context).primaryTextTheme.headline6,
47- ),
48- TextSpan (
49- text: '作者:' ,
50- style: TextStyle (color: Colors .black),
51- ),
52- TextSpan (
53- text: '珒陶(陈锦涛)\n ' ,
54- style: TextStyle (color: Colors .blue),
55- recognizer: TapGestureRecognizer ()
56- ..onTap = () {
57- launch ('http://www.chenjt.com/' );
58- },
59- ),
60- TextSpan (
61- text: '版本:${_packageInfo .version }\n ' ,
62- style: TextStyle (color: Colors .black),
63- ),
64- TextSpan (
65- text: '数据库文件路径:${data .dbFilePath }\n ' ,
66- style: TextStyle (color: Colors .black),
67- ),
68- ],
69- )
70- ),
31+ return Padding (
32+ padding: EdgeInsets .all (20 ),
33+ child: Column (
34+ children: [
35+ new Image (
36+ image: AssetImage ("assets/images/icon.png" ),
37+ height: 150 ,
38+ ),
39+ new RichText (
40+ text: TextSpan (
41+ children: [
42+ TextSpan (
43+ text: '介绍\n ' ,
44+ style: Theme .of (context).primaryTextTheme.headline6,
45+ ),
46+ TextSpan (
47+ text: '《Murmurer》是一款用来记录生活的软件。\n\n ' ,
48+ style: TextStyle (color: Colors .black),
49+ ),
50+ TextSpan (
51+ text: '关于\n ' ,
52+ style: Theme .of (context).primaryTextTheme.headline6,
53+ ),
54+ TextSpan (
55+ text: '作者:' ,
56+ style: TextStyle (color: Colors .black),
57+ ),
58+ TextSpan (
59+ text: '珒陶(陈锦涛)\n ' ,
60+ style: TextStyle (color: Colors .blue),
61+ recognizer: TapGestureRecognizer ()
62+ ..onTap = () {
63+ launch ('http://www.chenjt.com/' );
64+ },
65+ ),
66+ TextSpan (
67+ text: '版本:${_packageInfo .version }\n ' ,
68+ style: TextStyle (color: Colors .black),
69+ ),
70+ TextSpan (
71+ text: '数据库文件路径:${data .dbFilePath }\n ' ,
72+ style: TextStyle (color: Colors .black),
73+ ),
74+ ],
75+ )
76+ ),
7177
72- Divider (),
73-
74- ListTile (
75- title: Text ("许可" ),//Text("Licenses"),
76- trailing: Icon (Icons .keyboard_arrow_right),
77- onTap: (){showLicensePage (
78- context: context,
79- );},
80- ),
81- ],
82- );
78+ Divider (),
79+ //AboutListTile(),
80+ ListTile (
81+ title: Text ("许可" ),//Text("Licenses"),
82+ trailing: Icon (Icons .keyboard_arrow_right),
83+ onTap: (){showLicensePage (
84+ context: context,
85+ );},
86+ ),
87+ ],
88+ )) ;
8389 default : // 未执行完成等情况
8490 return Container ();
8591 }
0 commit comments