Skip to content

_TypeError (Null check operator used on a null value) #522

@zhakypovmaksatbek

Description

@zhakypovmaksatbek

/// Opens the current [ActionPane].
Future openCurrentActionPane({
Duration duration = _defaultMovementDuration,
Curve curve = _defaultCurve,
}) async {
return openTo(
actionPaneConfigurator!.extentRatio,
duration: duration,
curve: curve,
);
}

final box = boxList[index];
return SlidableAutoCloseBehavior(
child: Slidable(
key: ValueKey(box.code ?? Uuid().v4()),
startActionPane: ActionPane(
motion: const ScrollMotion(),
extentRatio: 0.35,
children: [
MyCustomSlidableAction(
onPressed: (context) =>
onCancel(context, box),
icon: Icon(Icons.cancel_outlined),
backgroundColor: ColorConstants.red,
label: LocaleKeys.button_cancel.tr(),
),
]),
endActionPane: ActionPane(
key: ValueKey(box.code),
motion: const ScrollMotion(),
extentRatio: 0.35,
children: [
MyCustomSlidableAction(
onPressed: (context) =>
onDismissed(context, box),
icon: Icon(Icons.delivery_dining_outlined),
label: LocaleKeys.button_delivered.tr(),
),
]),
child: COrderCard(box: box)),
);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions