-
Notifications
You must be signed in to change notification settings - Fork 206
/
Copy pathabout.dart
55 lines (51 loc) · 1.27 KB
/
about.dart
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
import 'dart:convert';
import 'package:flutter/material.dart';
import 'const.dart';
import 'package:url_launcher/url_launcher.dart';
class About extends StatelessWidget {
const About({Key key}) : super(key: key);
Widget buildPindao(PinDao pinDao) {
return InkWell(
onTap: () => launch(pinDao.url),
child: Column(
children: [
SizedBox(
height: 200,
child: Image.memory(
base64Decode(pinDao.base64.split(',')[1]),
fit: BoxFit.contain,
),
),
Text(pinDao.name),
],
),
);
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: SizedBox(
child: ListView(
padding: const EdgeInsets.all(10.0),
children: [
const ListTile(
title: Text(joinPindao),
),
buildPindao(yueduPindao),
const SizedBox(height: 10),
buildPindao(esoPindao),
const SizedBox(height: 10),
const ListTile(
title: Text("更新日志"),
subtitle: Text("""
v0.0.3 解析
v0.0.2 请求 生成阅读 生成亦搜
v0.0.1 搬运代码 没什么功能
"""),
)
],
),
),
);
}
}