linagora / tmail-flutter

A multi-platform (Flutter) application for reading your emails, with your favorite devices, using the JMAP protocol!
GNU Affero General Public License v3.0
301 stars 67 forks source link

`scripts/prebuild.sh` fails and pubspec.yaml dependencies not resolving on latest Flutter stable #3102

Open tgrushka opened 3 weeks ago

tgrushka commented 3 weeks ago

Description

Thanks for this project! Hoping to see if this e-mail client works for me on Linux because other options are outdated. I am legally blind and specialize in accessibility and Flutter development, would love to contribute if I can get this running.

The first issue I see is that in pubspec.yaml, all the versions are locked to minor revisions and not using the ^#.#.# preferred syntax. Why is this?

This results in not being able to get dependencies on the latest Flutter stable version:

Because mockito 5.4.2 depends on test_api >=0.2.1 <0.7.0 and every version of
  flutter_test from sdk depends on test_api 0.7.2, mockito 5.4.2 is
  incompatible with flutter_test from sdk.
So, because tmail_ui_user depends on both flutter_test from sdk and mockito
  5.4.2, version solving failed.

Running scripts/prebuild.sh also results in an error in the model/ subproject:

+ dart run build_runner build --delete-conflicting-outputs
Building package executable... (2.6s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 238ms
[INFO] Precompiling build script......Could not find a command named "/home/tom/flutter/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot".

This might be due to reliance on specific minor revisions of dependencies, but I'm not certain yet.

Current Flutter stable is:

Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 80c2e84975 (3 weeks ago) • 2024-07-30 23:06:49 +0700
Engine • revision b8800d88be
Tools • Dart 3.5.0 • DevTools 2.37.2

My system:

Linux fedora 6.10.5-200.fc40.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Aug 14 15:49:44 UTC 2024 x86_64 GNU/Linux

Expected result

I expect:

  1. flutter pub get to get the dependencies without error;
  2. scripts/prebuild.sh to run without error.

Current behavior

  1. flutter pub get fails;
  2. scripts/prebuild.sh fails in model/ subproject;
  3. Minor but important: the README says to run prebuild.sh in the "root folder" of the project; this is incorrect; it is in the scripts folder.

Preconditions (optional)

flutter --version
Flutter 3.24.0 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 80c2e84975 (3 weeks ago) • 2024-07-30 23:06:49 +0700
Engine • revision b8800d88be
Tools • Dart 3.5.0 • DevTools 2.37.2

flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.24.0, on Fedora Linux 40 (Workstation Edition)
    6.10.5-200.fc40.x86_64, locale en_US.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version
    35.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2024.1)
[✓] VS Code (version 1.93.0-insider)
[✓] Connected device (2 available)
[✓] Network resources

• No issues found!

EDIT: Also just upgraded again from 3.24.0 to 3.24.1 with same results:

Flutter 3.24.1 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 5874a72aa4 (24 hours ago) • 2024-08-20 16:46:00 -0500
Engine • revision c9b9d5780d
Tools • Dart 3.5.1 • DevTools 2.37.2

Reproduction Steps

  1. Run flutter upgrade, then flutter clean on main project and all subprojects.
  2. Try to run flutter pub get in the main project.
  3. Try to run scripts/prebuild.sh.

Acceptance criteria

As a developer, on latest Flutter stable, I am able to run scripts/prebuild.sh without errors.

Context

Linux

Additional information

Complete output of `scripts/prebuild.sh`
scripts/prebuild.sh
+ cd core
+ flutter pub get
Resolving dependencies... 
Downloading packages... 
archive 3.5.1 (3.6.1 available)
args 2.4.2 (2.5.0 available)
collection 1.18.0 (1.19.0 available)
cross_file 0.3.3+7 (0.3.4+2 available)
crypto 3.0.3 (3.0.5 available)
csslib 0.17.3 (1.0.0 available)
cupertino_icons 1.0.6 (1.0.8 available)
device_info_plus 8.1.0 (10.1.2 available)
device_info_plus_platform_interface 7.0.0 (7.0.1 available)
dio 5.0.0 (5.6.0 available)
ffi 2.1.0 (2.1.3 available)
file 6.1.4 (7.0.0 available)
flex_color_picker 3.2.0 (3.5.1 available)
flex_seed_scheme 1.4.0 (3.1.2 available)
flutter_image_compress 2.1.0 (2.3.0 available)
flutter_image_compress_common 1.0.3 (1.0.5 available)
flutter_image_compress_macos 1.0.1 (1.0.2 available)
flutter_image_compress_platform_interface 1.0.3 (1.0.5 available)
flutter_image_compress_web 0.1.3+2 (0.1.4+1 available)
flutter_inappwebview 6.0.0-beta.22 (6.0.0 available)
flutter_keyboard_visibility 5.4.1 (6.0.0 available)
flutter_lints 2.0.1 (4.0.0 available)
flutter_svg 2.0.9 (2.0.10+1 available)
flutter_typeahead 4.6.0 (5.2.0 available)
get 4.6.5 (4.6.6 available)
html 0.15.3 (0.15.4 available)
http 1.1.0 (1.2.2 available)
http_parser 4.0.2 (4.1.0 available)
image 4.1.7 (4.2.0 available)
intl 0.18.1 (0.19.0 available)
js 0.6.7 (0.7.1 available)
lints 2.1.1 (4.0.0 available)
material_color_utilities 0.11.1 (0.12.0 available)
path_provider 2.1.1 (2.1.4 available)
path_provider_android 2.2.1 (2.2.10 available)
path_provider_foundation 2.3.1 (2.4.0 available)
path_provider_platform_interface 2.1.1 (2.1.2 available)
path_provider_windows 2.2.1 (2.3.0 available)
pdf 3.10.8 (3.11.1 available)
pdf_widget_wrapper 1.0.1 (1.0.4 available)
petitparser 6.0.1 (6.0.2 available)
platform 3.1.3 (3.1.5 available)
pointer_interceptor 0.9.1 (0.10.1+2 available)
printing 5.12.0 (5.13.2 available)
qr 3.0.1 (3.0.2 available)
string_scanner 1.2.0 (1.3.0 available)
test_api 0.7.2 (0.7.3 available)
url_launcher 6.1.10 (6.3.0 available)
url_launcher_android 6.2.0 (6.3.10 available)
url_launcher_ios 6.2.0 (6.3.1 available)
url_launcher_linux 3.1.0 (3.2.0 available)
url_launcher_macos 3.1.0 (3.2.0 available)
url_launcher_platform_interface 2.2.0 (2.3.2 available)
url_launcher_web 2.2.0 (2.3.3 available)
url_launcher_windows 3.1.0 (3.1.2 available)
vector_graphics 1.1.9+1 (1.1.11+1 available)
vector_graphics_codec 1.1.9+1 (1.1.11+1 available)
vector_graphics_compiler 1.1.9+1 (1.1.11+1 available)
> vm_service 14.2.5 (was 14.2.4)
win32 4.1.4 (5.5.4 available)
xdg_directories 1.0.3 (1.0.4 available)
xml 6.4.2 (6.5.0 available)
Changed 1 dependency!
61 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
+ cd ../model
+ flutter pub get
Resolving dependencies... 
Downloading packages... 
_fe_analyzer_shared 61.0.0 (73.0.0 available)
analyzer 5.13.0 (6.8.0 available)
archive 3.5.1 (3.6.1 available)
args 2.4.2 (2.5.0 available)
build 2.3.1 (2.4.1 available)
build_daemon 3.1.1 (4.0.2 available)
build_resolvers 2.4.1 (2.4.2 available)
build_runner 2.3.3 (2.4.12 available)
build_runner_core 7.2.7+1 (7.3.2 available)
built_value 8.7.0 (8.9.2 available)
code_builder 4.7.0 (4.10.0 available)
collection 1.18.0 (1.19.0 available)
cross_file 0.3.3+8 (0.3.4+2 available)
crypto 3.0.3 (3.0.5 available)
csslib 0.17.3 (1.0.0 available)
cupertino_icons 1.0.6 (1.0.8 available)
dart_style 2.3.2 (2.3.6 available)
device_info_plus 8.1.0 (10.1.2 available)
device_info_plus_platform_interface 7.0.0 (7.0.1 available)
dio 5.0.0 (5.6.0 available)
ffi 2.1.0 (2.1.3 available)
file 6.1.4 (7.0.0 available)
flex_color_picker 3.2.0 (3.5.1 available)
flex_seed_scheme 1.4.0 (3.1.2 available)
flutter_image_compress 2.1.0 (2.3.0 available)
flutter_image_compress_common 1.0.3 (1.0.5 available)
flutter_image_compress_macos 1.0.1 (1.0.2 available)
flutter_image_compress_platform_interface 1.0.3 (1.0.5 available)
flutter_image_compress_web 0.1.3+2 (0.1.4+1 available)
flutter_inappwebview 6.0.0-beta.22 (6.0.0 available)
flutter_keyboard_visibility 5.4.1 (6.0.0 available)
flutter_lints 2.0.1 (4.0.0 available)
flutter_svg 2.0.9 (2.0.10+1 available)
flutter_typeahead 4.6.0 (5.2.0 available)
frontend_server_client 3.2.0 (4.0.0 available)
get 4.6.5 (4.6.6 available)
graphs 2.3.1 (2.3.2 available)
html 0.15.3 (0.15.4 available)
http 1.1.0 (1.2.2 available)
http_parser 4.0.2 (4.1.0 available)
image 4.1.7 (4.2.0 available)
intl 0.18.1 (0.19.0 available)
js 0.6.7 (0.7.1 available)
json_annotation 4.8.0 (4.9.0 available)
json_serializable 6.6.1 (6.8.0 available)
lints 2.1.1 (4.0.0 available)
material_color_utilities 0.11.1 (0.12.0 available)
mime 1.0.4 (1.0.5 available)
path_provider 2.1.1 (2.1.4 available)
path_provider_android 2.2.1 (2.2.10 available)
path_provider_foundation 2.3.1 (2.4.0 available)
path_provider_platform_interface 2.1.1 (2.1.2 available)
path_provider_windows 2.2.1 (2.3.0 available)
pdf 3.10.8 (3.11.1 available)
pdf_widget_wrapper 1.0.1 (1.0.4 available)
petitparser 6.0.1 (6.0.2 available)
platform 3.1.3 (3.1.5 available)
plugin_platform_interface 2.1.6 (2.1.8 available)
pointer_interceptor 0.9.1 (0.10.1+2 available)
printing 5.12.0 (5.13.2 available)
pubspec_parse 1.2.3 (1.3.0 available)
qr 3.0.1 (3.0.2 available)
shelf 1.4.1 (1.4.2 available)
shelf_web_socket 1.0.4 (2.0.0 available)
source_gen 1.4.0 (1.5.0 available)
string_scanner 1.2.0 (1.3.0 available)
test_api 0.7.2 (0.7.3 available)
url_launcher 6.1.10 (6.3.0 available)
url_launcher_android 6.2.0 (6.3.10 available)
url_launcher_ios 6.2.0 (6.3.1 available)
url_launcher_linux 3.1.0 (3.2.0 available)
url_launcher_macos 3.1.0 (3.2.0 available)
url_launcher_platform_interface 2.2.0 (2.3.2 available)
url_launcher_web 2.2.0 (2.3.3 available)
url_launcher_windows 3.1.0 (3.1.2 available)
vector_graphics 1.1.9+1 (1.1.11+1 available)
vector_graphics_codec 1.1.9+1 (1.1.11+1 available)
vector_graphics_compiler 1.1.9+1 (1.1.11+1 available)
> vm_service 14.2.5 (was 14.2.4)
web 0.3.0 (1.0.0 available)
web_socket_channel 2.4.0 (3.0.1 available)
win32 4.1.4 (5.5.4 available)
xdg_directories 1.0.3 (1.0.4 available)
xml 6.4.2 (6.5.0 available)
Changed 1 dependency!
83 packages have newer versions incompatible with dependency constraints.
Try `flutter pub outdated` for more information.
+ dart run build_runner build --delete-conflicting-outputs
Building package executable... (2.9s)
Built build_runner:build_runner.
[INFO] Generating build script completed, took 254ms
[INFO] Precompiling build script......Could not find a command named "/home/tom/flutter/flutter/bin/cache/dart-sdk/bin/snapshots/frontend_server.dart.snapshot".

Usage: dart  [arguments]

Global options:
-v, --verbose               Show additional command output.
    --version               Print the Dart SDK version.
    --enable-analytics      Enable analytics.
    --disable-analytics     Disable analytics.
    --suppress-analytics    Disallow analytics for this `dart *` run without changing the analytics configuration.
-h, --help                  Print this usage information.

Available commands:
analyze    Analyze Dart code in a directory.
compile    Compile Dart to various formats.
create     Create a new Dart project.
devtools   Open DevTools (optionally connecting to an existing application).
doc        Generate API documentation for Dart projects.
fix        Apply automated fixes to Dart source code.
format     Idiomatically format Dart source code.
info       Show diagnostic information about the installed tooling.
pub        Work with packages.
run        Run a Dart program.
test       Run tests for a project.

Run "dart help " for more information about a command.
See https://dart.dev/tools/dart-tool for detailed documentation.
[INFO] Precompiling build script... completed, took 93ms
[SEVERE] Failed to precompile build script .dart_tool/build/entrypoint/build.dart.
This is likely caused by a misconfigured builder definition.
hoangdat commented 3 weeks ago

Hi @tgrushka,

The first issue I see is that in pubspec.yaml, all the versions are locked to minor revisions and not using the ^#.#.# preferred syntax. Why is this?

We had uncontrolled issue when using ^#.#.# syntax in the past, so we made the decision to keep the release stable by using a dedicated version for dependencies. We will regularly update the Flutter engine and update dependencies version too.

At the moment, please use tmail project with Flutter 3.22.2. We know about the stable version of Flutter is 3.24.*, but as our experience, sometime it is hard to manage the compatibility issue. We always have some late update in Flutter engine (~months)

EliRibble commented 2 weeks ago

I just tested this on NixOS via nix dev. My flutter:

flutter --version
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision nixpkgs000 () • 1970-01-01 00:00:00
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3

My failure is a bit different:

bash scripts/prebuild.sh
...

+ cd ../contact                            
+ flutter pub get                       
Resolving dependencies...                                                                     
Note: test_api is pinned to version 0.7.0 by flutter_test from the flutter SDK.               
See https://dart.dev/go/sdk-version-pinning for details.                                      

Because mockito 5.4.2 depends on test_api >=0.2.1 <0.7.0 and every version of flutter_test from sdk depends on test_api 0.7.0, mockito 5.4.2 is incompatible with flutter_test from sdk.    
So, because contact depends on both flutter_test from sdk and mockito 5.4.2, version solving failed.                                                                                        

You can try the following suggestion to make the pubspec resolve:
* Try upgrading your constraint on mockito: flutter pub add dev:mockito:^5.4.4
EliRibble commented 2 weeks ago

Looks like altering all mockito: 5.4.2 to mockito: ^5.4.4 in all of the pubspec.yaml files made prebuild.sh work correctly.

I'm sorry, I thought my error was related to this issue, it is not. I'll create another issue.

EliRibble commented 2 weeks ago

Created #3128

tgrushka commented 1 week ago

Thanks @hoangdat for getting back to us.

(@EliRibble, yep, I'm getting the same thing. I just installed fvm and it works to pin the flutter version, and was able to resolve the intl dependency by adding intl: 0.18.1 to dependency_overrides: ...)

...but then a rabbit hole of issues ensues with various dependencies and build errors. (Side question: Why is Firebase even required in this project at all? The whole point of open source e-mail IMHO, at least in the immediate present, is to totally get away from dependence on Google, something humanity is finding more and more difficult to achieve! Maybe firebase_core_platform_interface is just for the protocol? Hopefully it doesn't require Google's service.)

IMHO this project suffers greatly from very tight coupling of dependencies. This is really going to make it difficult for people (like me) to contribute to this project. I would recommend the developers try setting up this project on a clean system to see how difficult it is.

fvm flutter --version
Flutter 3.22.2 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 761747bfc5 (3 months ago) • 2024-06-05 22:15:13 +0200
Engine • revision edd8546116
Tools • Dart 3.4.3 • DevTools 2.34.3
Example 1: fvm use 3.22.2; fvm flutter build apk fvm flutter build apk Downloading android-arm-profile/linux-x64 tools... 559ms Downloading android-arm-release/linux-x64 tools... 228ms Downloading android-arm64-profile/linux-x64 tools... 212ms Downloading android-arm64-release/linux-x64 tools... 248ms Downloading android-x64-profile/linux-x64 tools... 231ms Downloading android-x64-release/linux-x64 tools... 177ms Running Gradle task 'assembleRelease'... You are applying Flutter's app_plugin_loader Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply You are applying Flutter's main Gradle plugin imperatively using the apply script method, which is deprecated and will be removed in a future release. Migrate to applying Gradle plugins with the declarative plugins block: https://flutter.dev/go/flutter-gradle-plugin-apply Note: /home/tom/.pub-cache/git/flutter_contacts-083024c6200f4773e34c471b4001cd76fe1c9cec/android/src/main/java/flutter/plugins/contactsservice/contactsservice/ContactsServicePlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /home/tom/.pub-cache/hosted/pub.dev/external_app_launcher-3.1.0/android/src/main/java/com/example/launchexternalapp/LaunchexternalappPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /home/tom/.pub-cache/hosted/pub.dev/fk_user_agent-2.1.0/android/src/main/java/io/flutterfastkit/fk_user_agent/FkUserAgentPlugin.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /home/tom/.pub-cache/hosted/pub.dev/firebase_messaging-14.2.5/android/src/main/java/io/flutter/plugins/firebase/messaging/FlutterFirebaseMessagingPlugin.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. ../../.pub-cache/hosted/pub.dev/extended_text-12.0.0/lib/src/official/rendering/paragraph.dart:1104:7: Error: The non-abstract class '_SelectableFragment' is missing implementations for these members: - Selectable.boundingBoxes Try to either - provide an implementation, - inherit an implementation from a superclass or mixin, - mark the class as abstract, or - provide a 'noSuchMethod' implementation. class _SelectableFragment ^^^^^^^^^^^^^^^^^^^ ../../fvm/versions/3.22.2/packages/flutter/lib/src/rendering/selection.dart:147:18: Context: 'Selectable.boundingBoxes' is defined here. List get boundingBoxes; ^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/extended_text-12.0.0/lib/src/extended/selection_mixin.dart:89:7: Error: The non-abstract class '_ExtendedSelectableFragment' is missing implementations for these members: - Selectable.boundingBoxes Try to either - provide an implementation, - inherit an implementation from a superclass or mixin, - mark the class as abstract, or - provide a 'noSuchMethod' implementation. class _ExtendedSelectableFragment extends _SelectableFragment { ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ../../fvm/versions/3.22.2/packages/flutter/lib/src/rendering/selection.dart:147:18: Context: 'Selectable.boundingBoxes' is defined here. List get boundingBoxes; ^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/get-4.6.5/lib/get_navigation/src/extension_navigation.dart:222:62: Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'. - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/theme_data.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'backgroundColor'. TextStyle(color: confirmTextColor ?? theme.backgroundColor), ^^^^^^^^^^^^^^^ ../../.pub-cache/git/html-editor-enhanced-7a20f8e924e403eb54f4a6177c3c8ecb0c7b3687/lib/utils/utils.dart:952:51: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'. widget.style ?? Theme.of(context).textTheme.subtitle1; ^^^^^^^^^ ../../.pub-cache/git/html-editor-enhanced-7a20f8e924e403eb54f4a6177c3c8ecb0c7b3687/lib/utils/utils.dart:1012:37: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'. Theme.of(context).textTheme.subtitle1!.fontSize!; ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_slidable-3.0.0/lib/src/actions.dart:102:13: Error: No named parameter with the name 'primary'. primary: effectiveForegroundColor, ^^^^^^^ ../../fvm/versions/3.22.2/packages/flutter/lib/src/material/outlined_button.dart:177:22: Context: Found this candidate, but the arguments don't match. static ButtonStyle styleFrom({ ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/pdf_widget_wrapper-1.0.1/lib/src/widget_wrapper.dart:173:11: Error: No named parameter with the name 'size'. size: ^^^^ ../../fvm/versions/3.22.2/packages/flutter/lib/src/rendering/view.dart:28:9: Context: Found this candidate, but the arguments don't match. const ViewConfiguration({ ^^^^^^^^^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/colorpicker.dart:659:53: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. Theme.of(context).textTheme.bodyText1, ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/colorpicker.dart:669:53: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'. Theme.of(context).textTheme.bodyText2, ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:951:55: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. Theme.of(context).textTheme.bodyText1, ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:960:57: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'. Theme.of(context).textTheme.bodyText2, ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:1042:58: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. Text('Hex', style: Theme.of(context).textTheme.bodyText1), ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:1045:47: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'. width: (Theme.of(context).textTheme.bodyText2?.fontSize ?? 14) * 10, ^^^^^^^^^ ../../.pub-cache/hosted/pub.dev/fading_edge_scrollview-3.0.0/lib/src/fading_edge_scrollview.dart:116:31: Error: The argument type 'PageController?' can't be assigned to the parameter type 'ScrollController' because 'PageController?' is nullable and 'ScrollController' isn't. - 'PageController' is from 'package:flutter/src/widgets/page_view.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/widgets/page_view.dart'). - 'ScrollController' is from 'package:flutter/src/widgets/scroll_controller.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/widgets/scroll_controller.dart'). scrollController: child.controller, ^ Target kernel_snapshot failed: Exception FAILURE: Build failed with an exception. * Where: Script '/home/tom/fvm/versions/3.22.2/packages/flutter_tools/gradle/src/main/groovy/flutter.groovy' line: 1629 * What went wrong: Execution failed for task ':app:compileFlutterBuildRelease'. > Process 'command '/home/tom/fvm/versions/3.22.2/bin/flutter'' finished with non-zero exit value 1 * Try: > Run with --stacktrace option to get the stack trace. > Run with --info or --debug option to get more log output. > Run with --scan to get full insights. * Get more help at https://help.gradle.org BUILD FAILED in 37s Running Gradle task 'assembleRelease'... 38.0s Gradle task assembleRelease failed with exit code 1
Example 2: fvm flutter create --platforms=linux .; sudo dnf install libsecret-devel; flutter fvm build linux (granted Linux / any desktop is not supported currently but my whole mission is to get a decent Linux e-mail client, and the issues seem to be in the Dart dependencies themselves) fvm flutter build linux Building Linux application... ERROR: ../../.pub-cache/hosted/pub.dev/extended_text-12.0.0/lib/src/official/rendering/paragraph.dart:1104:7: Error: The non-abstract class '_SelectableFragment' is missing implementations for these members: ERROR: - Selectable.boundingBoxes ERROR: Try to either ERROR: - provide an implementation, ERROR: - inherit an implementation from a superclass or mixin, ERROR: - mark the class as abstract, or ERROR: - provide a 'noSuchMethod' implementation. ERROR: class _SelectableFragment ERROR: ^^^^^^^^^^^^^^^^^^^ ERROR: ../../fvm/versions/3.22.2/packages/flutter/lib/src/rendering/selection.dart:147:18: Context: 'Selectable.boundingBoxes' is defined here. ERROR: List get boundingBoxes; ERROR: ^^^^^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/extended_text-12.0.0/lib/src/extended/selection_mixin.dart:89:7: Error: The non-abstract class '_ExtendedSelectableFragment' is missing implementations for these members: ERROR: - Selectable.boundingBoxes ERROR: Try to either ERROR: - provide an implementation, ERROR: - inherit an implementation from a superclass or mixin, ERROR: - mark the class as abstract, or ERROR: - provide a 'noSuchMethod' implementation. ERROR: class _ExtendedSelectableFragment extends _SelectableFragment { ERROR: ^^^^^^^^^^^^^^^^^^^^^^^^^^^ ERROR: ../../fvm/versions/3.22.2/packages/flutter/lib/src/rendering/selection.dart:147:18: Context: 'Selectable.boundingBoxes' is defined here. ERROR: List get boundingBoxes; ERROR: ^^^^^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/get-4.6.5/lib/get_navigation/src/extension_navigation.dart:222:62: Error: The getter 'backgroundColor' isn't defined for the class 'ThemeData'. ERROR: - 'ThemeData' is from 'package:flutter/src/material/theme_data.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/theme_data.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'backgroundColor'. ERROR: TextStyle(color: confirmTextColor ?? theme.backgroundColor), ERROR: ^^^^^^^^^^^^^^^ ERROR: ../../.pub-cache/git/html-editor-enhanced-7a20f8e924e403eb54f4a6177c3c8ecb0c7b3687/lib/utils/utils.dart:952:51: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'. ERROR: widget.style ?? Theme.of(context).textTheme.subtitle1; ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/git/html-editor-enhanced-7a20f8e924e403eb54f4a6177c3c8ecb0c7b3687/lib/utils/utils.dart:1012:37: Error: The getter 'subtitle1' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'subtitle1'. ERROR: Theme.of(context).textTheme.subtitle1!.fontSize!; ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/flutter_slidable-3.0.0/lib/src/actions.dart:102:13: Error: No named parameter with the name 'primary'. ERROR: primary: effectiveForegroundColor, ERROR: ^^^^^^^ ERROR: ../../fvm/versions/3.22.2/packages/flutter/lib/src/material/outlined_button.dart:177:22: Context: Found this candidate, but the arguments don't match. ERROR: static ButtonStyle styleFrom({ ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/pdf_widget_wrapper-1.0.1/lib/src/widget_wrapper.dart:173:11: Error: No named parameter with the name 'size'. ERROR: size: ERROR: ^^^^ ERROR: ../../fvm/versions/3.22.2/packages/flutter/lib/src/rendering/view.dart:28:9: Context: Found this candidate, but the arguments don't match. ERROR: const ViewConfiguration({ ERROR: ^^^^^^^^^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/colorpicker.dart:659:53: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. ERROR: Theme.of(context).textTheme.bodyText1, ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/colorpicker.dart:669:53: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'. ERROR: Theme.of(context).textTheme.bodyText2, ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:951:55: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. ERROR: Theme.of(context).textTheme.bodyText1, ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:960:57: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'. ERROR: Theme.of(context).textTheme.bodyText2, ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:1042:58: Error: The getter 'bodyText1' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText1'. ERROR: Text('Hex', style: Theme.of(context).textTheme.bodyText1), ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/flutter_colorpicker-1.0.3/lib/src/palette.dart:1045:47: Error: The getter 'bodyText2' isn't defined for the class 'TextTheme'. ERROR: - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/material/text_theme.dart'). ERROR: Try correcting the name to the name of an existing getter, or defining a getter or field named 'bodyText2'. ERROR: width: (Theme.of(context).textTheme.bodyText2?.fontSize ?? 14) * 10, ERROR: ^^^^^^^^^ ERROR: ../../.pub-cache/hosted/pub.dev/fading_edge_scrollview-3.0.0/lib/src/fading_edge_scrollview.dart:116:31: Error: The argument type 'PageController?' can't be assigned to the parameter type 'ScrollController' because 'PageController?' is nullable and 'ScrollController' isn't. ERROR: - 'PageController' is from 'package:flutter/src/widgets/page_view.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/widgets/page_view.dart'). ERROR: - 'ScrollController' is from 'package:flutter/src/widgets/scroll_controller.dart' ('../../fvm/versions/3.22.2/packages/flutter/lib/src/widgets/scroll_controller.dart'). ERROR: scrollController: child.controller, ERROR: ^ ERROR: Target kernel_snapshot failed: Exception Build process failed