Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
zhakypovmaksatbek opened this issue Mar 12, 2025 · 0 comments
Open

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

zhakypovmaksatbek opened this issue Mar 12, 2025 · 0 comments

Comments

@zhakypovmaksatbek
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant