fix: fix bugs
This commit is contained in:
parent
b791b91616
commit
991f871a17
@ -97,6 +97,7 @@ class _ServicePageState extends State<ServicePage> with SingleTickerProviderStat
|
||||
],
|
||||
),
|
||||
onTap: () {
|
||||
final tmp_notice = notices[index];
|
||||
if (notices[index]['status'] == "未读"){
|
||||
setState(() {
|
||||
notices[index]['status'] = "已读";
|
||||
@ -106,7 +107,7 @@ class _ServicePageState extends State<ServicePage> with SingleTickerProviderStat
|
||||
Navigator.push(
|
||||
context,
|
||||
MaterialPageRoute(
|
||||
builder: (context) => NoticeDetailPage(notice: notices[index]),
|
||||
builder: (context) => NoticeDetailPage(notice: tmp_notice),
|
||||
),
|
||||
);
|
||||
},
|
||||
@ -128,8 +129,7 @@ class NoticeDetailPage extends StatelessWidget {
|
||||
),
|
||||
body: Padding(
|
||||
padding: const EdgeInsets.all(16.0),
|
||||
child: Column(
|
||||
crossAxisAlignment: CrossAxisAlignment.start,
|
||||
child: ListView(
|
||||
children: [
|
||||
Text(notice["title"]!, style: const TextStyle(fontSize: 24, fontWeight: FontWeight.bold)),
|
||||
const SizedBox(height: 10),
|
||||
|
Loading…
x
Reference in New Issue
Block a user