mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: push dyn
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -216,17 +216,8 @@ class SearchDynamic extends StatelessWidget {
|
||||
required String content,
|
||||
}) {
|
||||
return InkWell(
|
||||
onTap: () async {
|
||||
SmartDialog.showLoading();
|
||||
dynamic res = await DynamicsHttp.dynamicDetail(id: id);
|
||||
if (res['status']) {
|
||||
SmartDialog.dismiss();
|
||||
Get.toNamed('/dynamicDetail',
|
||||
arguments: {'item': res['data'], 'floor': 1, 'action': 'detail'});
|
||||
} else {
|
||||
SmartDialog.dismiss();
|
||||
SmartDialog.showToast(res['msg']);
|
||||
}
|
||||
onTap: () {
|
||||
Utils.pushDynFromId(id);
|
||||
},
|
||||
child: Padding(
|
||||
padding: const EdgeInsets.symmetric(horizontal: 16, vertical: 10),
|
||||
|
||||
Reference in New Issue
Block a user