We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0d0b1cb commit 29b6274Copy full SHA for 29b6274
lib/src/functions/functions.dart
@@ -1,9 +1,11 @@
1
+import 'package:flutter/widgets.dart';
2
+
3
import '../../codelessly_sdk.dart';
4
5
// typedef CodelesslyCallback<T> = T Function(CodelesslyContext reference);
6
7
class CodelesslyFunction<T> {
- final T Function(CodelesslyContext reference) call;
8
+ final T Function(BuildContext context, CodelesslyContext reference) call;
9
10
CodelesslyFunction(this.call);
11
}
lib/src/functions/functions_repository.dart
@@ -612,6 +612,6 @@ class FunctionsRepository {
612
context.read<CodelesslyContext>();
613
final CodelesslyFunction? function =
614
codelesslyContext.functions[action.name];
615
- function?.call(codelesslyContext);
+ function?.call(context, codelesslyContext);
616
617
0 commit comments