最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

'package:fluttersrcwidgetsnavigator.dart': Failed assertion: line 5859 pos 12: '!_debugLocked':

programmeradmin1浏览0评论

I want to Edit items but facing !_debugLocked error.

SlidableAction(
  onPressed: (BuildContext context) {
    Navigator.push(
      context,
      MaterialPageRoute(
        builder: (context) => AddVehiclePage(
          edit: true,
          data: vehicle,
        ),
      ),
    ).then((onValue) {
      getvalue();
    });
  },
  backgroundColor: const Color(0xFF21B7CA),
  foregroundColor: Colors.white,
  borderRadius: const BorderRadius.only(
    topRight: Radius.circular(15),
    bottomRight: Radius.circular(15),
  ),
  icon: Icons.edit,
  label: 'Edit'.tr,
),

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论