admin管理员组

文章数量:1344241

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,
),

本文标签: