chore: update Flutter to 3.38.1 and bump Dart SDK versions

- Update Flutter version from 3.32.0 to 3.38.1 in .fvmrc
- Bump Dart SDK minimum version in pubspec.yaml files:
  - Root: 3.2.0 -> 3.8.0
  - cherrypick_annotations: 3.8.0 -> 3.9.0
  - cherrypick/example: 2.12.0 -> 3.2.0
  - examples/postly: 3.8.0 -> 3.9.0
- Apply code formatting fixes in cherrypick_generator
- Update dependencies in pubspec.lock files
This commit is contained in:
Sergey Penkovsky
2026-01-29 23:02:37 +03:00
parent 0651f74472
commit 94b3ba284a
14 changed files with 194 additions and 300 deletions

View File

@@ -190,20 +190,24 @@ class BindSpec {
case BindingType.provide:
if (isAsyncProvide) {
if (needsMultiline) {
final lambdaIndent =
(isSingleton || named != null) ? indent + 6 : indent + 2;
final closingIndent =
(isSingleton || named != null) ? indent + 4 : indent;
final lambdaIndent = (isSingleton || named != null)
? indent + 6
: indent + 2;
final closingIndent = (isSingleton || named != null)
? indent + 4
: indent;
return '.toProvideAsync(\n${' ' * lambdaIndent}() => $methodName($argsStr),\n${' ' * closingIndent})';
} else {
return '.toProvideAsync(() => $methodName($argsStr))';
}
} else {
if (needsMultiline) {
final lambdaIndent =
(isSingleton || named != null) ? indent + 6 : indent + 2;
final closingIndent =
(isSingleton || named != null) ? indent + 4 : indent;
final lambdaIndent = (isSingleton || named != null)
? indent + 6
: indent + 2;
final closingIndent = (isSingleton || named != null)
? indent + 4
: indent;
return '.toProvide(\n${' ' * lambdaIndent}() => $methodName($argsStr),\n${' ' * closingIndent})';
} else {
return '.toProvide(() => $methodName($argsStr))';
@@ -307,8 +311,9 @@ class BindSpec {
);
}
final bindingType =
hasInstance ? BindingType.instance : BindingType.provide;
final bindingType = hasInstance
? BindingType.instance
: BindingType.provide;
// PROHIBIT @params with @instance bindings!
if (bindingType == BindingType.instance && hasParams) {