You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/flet-0.25.2/lib/src/utils/theme.dart:356:28: Error: A value of type 'TabBarThemeData' can't be returned from a function with return type 'TabBarTheme?'.
- 'TabBarThemeData' is from 'package:flutter/src/material/tab_bar_theme.dart' ('../../../../flutterSDK/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
- 'TabBarTheme' is from 'package:flutter/src/material/tab_bar_theme.dart' ('../../../../flutterSDK/flutter/packages/flutter/lib/src/material/tab_bar_theme.dart').
return theme.tabBarTheme.copyWith(
^
../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/flet-0.25.2/lib/src/utils/theme.dart:438:28: Error: A value of type 'DialogThemeData' can't be returned from a function with return type 'DialogTheme?'.
- 'DialogThemeData' is from 'package:flutter/src/material/dialog_theme.dart' ('../../../../flutterSDK/flutter/packages/flutter/lib/src/material/dialog_theme.dart').
- 'DialogTheme' is from 'package:flutter/src/material/dialog_theme.dart' ('../../../../flutterSDK/flutter/packages/flutter/lib/src/material/dialog_theme.dart').
return theme.dialogTheme.copyWith(
^
../../../../../AppData/Local/Pub/Cache/hosted/pub.dev/flet-0.25.2/lib/src/utils/theme.dart:482:26: Error: A value of type 'CardThemeData' can't be returned from a function with return type 'CardTheme?'.
- 'CardThemeData' is from 'package:flutter/src/material/card_theme.dart' ('../../../../flutterSDK/flutter/packages/flutter/lib/src/material/card_theme.dart').
- 'CardTheme' is from 'package:flutter/src/material/card_theme.dart' ('../../../../flutterSDK/flutter/packages/flutter/lib/src/material/card_theme.dart').
return theme.cardTheme.copyWith(
^
Target kernel_snapshot_program failed: Exception
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileFlutterBuildRelease'.
Process 'command 'C:\Users\freed\Documents\flutterSDK\flutter\bin\flutter.bat'' 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 56s
Gradle task bundleRelease failed with exit code 1
Error building Flet app - see the log of failed command above.
[15:35:20] Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.22631.4602], locale ko-KR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.6.4)
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.96.2)
[√] Connected device (3 available)
[√] Network resources
Had same error when building and for me downgrading a bit worked well, there is need to adopt some changes from flutter sdk in flet,my current versions below
Duplicate Check
Describe the bug
It worked but after I update flet and android studio, it starts to fail.
I use version below.
flet == 0.25.2
adriod studio == 2024.2.1
flutter == 3.27.1
When I build a bundle a package, I faced error below.
It has no error when I
flet run
.How can I solve the problem?
(flet-test-py3.10) C:\Users\freed\Documents\python_projects\flet-test>flet build aab
[15:32:38] Created Flutter bootstrap project from gh:flet-dev/flet-build-template with ref 0.25.2 :white_check_mark:
Customized app icons and splash images ✅
[15:32:48] Generated app icons :white_check_mark:
[15:32:52] Generated splash screens :white_check_mark:
[15:34:09] Packaged Python app :white_check_mark:
[15:35:11]
Running Gradle task 'bundleRelease'...
Running Gradle task 'bundleRelease'... 57.9s
[15:35:20] Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 3.27.1, on Microsoft Windows [Version 10.0.22631.4602], locale ko-KR)
[√] Windows Version (Installed version of Windows is version 10 or higher)
[√] Android toolchain - develop for Android devices (Android SDK version 35.0.0)
[√] Chrome - develop for the web
[√] Visual Studio - develop Windows apps (Visual Studio Community 2022 17.6.4)
[√] Android Studio (version 2024.2)
[√] VS Code (version 1.96.2)
[√] Connected device (3 available)
[√] Network resources
Code sample
Code
it is the todo app code from gallery
Additional details
No response
The text was updated successfully, but these errors were encountered: