Skip to content

Commit ee74b32

Browse files
author
free-breeze
committed
0.9.2完善页面显示
1 parent 45a97cf commit ee74b32

File tree

7 files changed

+335
-309
lines changed

7 files changed

+335
-309
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
诵经的时候,如果身边没有纸质经书,那么用手机、电脑也可以啊。
88
拜忏的时候,刚开始我用梦参老和尚的拜忏音频,也做了ios平台的拜忏助手,后来我想做一个自定义的拜忏功能,就把这个功能做到功课助手里面了。
99
另外,23年,24年我的主力电脑是mac,我也希望在桌面上每天都能看到高僧大德的开示语录,所以我就把这个功能也加到了ios平台的功课助手里面。
10-
今年我的主力电脑换成了一台matebook pro,所以就开始把功课助手移植到windows平台,因为选择的开发框架是flutter,所以顺理成章的android平台也就支持了。。。
10+
今年我的主力电脑换成了一台matebook,所以就开始把功课助手移植到windows平台,因为选择的开发框架是flutter,所以顺理成章的android平台也就支持了。。。
1111
以上就是我做功课助手的缘起和目的。我希望这个软件能够帮助、督促自己坚持做功课,也希望能够帮到其他想要做功课的佛友。
1212

1313
![诵经助手](intro.png)

lib/view/baichan/bai_chan.dart

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,10 @@ class _BaiChanListPageState extends State<BaiChanPage> {
7676
Widget build(BuildContext context) {
7777
return Scaffold(
7878
appBar: AppBar(
79-
title: Text('拜忏'),
79+
title: Text(
80+
'拜忏',
81+
style: TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
82+
),
8083
actions: [
8184
IconButton(
8285
icon: Icon(Icons.add_circle),
@@ -102,6 +105,9 @@ class _BaiChanListPageState extends State<BaiChanPage> {
102105
return Center(child: Text('数据加载出错: ${snapshot.error}'));
103106
}
104107
final list = snapshot.data ?? [];
108+
if (list.length == 0) {
109+
return Center(child: Text('暂无拜忏记录,请先添加'));
110+
}
105111
return ListView.builder(
106112
itemCount: list.length,
107113
itemBuilder: (context, index) {
@@ -152,9 +158,27 @@ class _BaiChanListPageState extends State<BaiChanPage> {
152158
],
153159
),
154160
child: ListTile(
155-
leading: Image.asset(getFoPuSaImagePath(list[index].image)),
161+
// leading: SizedBox(
162+
// //width: 200,
163+
// height: 360,
164+
// child: Image.asset(
165+
// getFoPuSaImagePath(list[index].image),
166+
// fit: BoxFit.fitHeight,
167+
// ),
168+
// ),
156169
title: Row(
157-
children: [Expanded(child: Text(list[index].name))],
170+
children: [
171+
Container(
172+
width: 100,
173+
height: 100,
174+
child: Image.asset(
175+
getFoPuSaImagePath(list[index].image),
176+
fit: BoxFit.scaleDown,
177+
),
178+
),
179+
SizedBox(width: 12),
180+
Expanded(child: Text(list[index].name)),
181+
],
158182
),
159183
subtitle: Row(
160184
children: [

0 commit comments

Comments
 (0)