Skip to content
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

Codemagic build breaks when using FlChart #45

Closed
davidmarinangeli opened this issue Jul 12, 2019 · 1 comment
Closed

Codemagic build breaks when using FlChart #45

davidmarinangeli opened this issue Jul 12, 2019 · 1 comment

Comments

@davidmarinangeli
Copy link

Tried to build my app on Codemagic, it breaks when I try to use this FlChart library. If i remove the chart widget, everything works fine.

== Building for Android ==

== /usr/local/bin/flutter build apk --debug ==
Initializing gradle...                                              2.8s
Resolving dependencies...                                          51.1s
Running Gradle task 'assembleDebug'...                          

Compiler message:

lib/src/components/charts/EmployeesChart.dart:93:25: Error: No named parameter with the name 'getVerticalTitles'.

                        getVerticalTitles: (value) {

                        ^^^^^^^^^^^^^^^^^

file:///Users/builder/programs/flutter/.pub-cache/hosted/pub.dartlang.org/fl_chart-0.1.4/lib/src/chart/base/base_chart/base_chart_data.dart:79:9: Context: Found this candidate, but the arguments don't match.

  const FlTitlesData({

        ^

Compiler failed on lib/main.dart

FAILURE: Build failed with an exception.

* Where:

Script '/Users/builder/programs/flutter/packages/flutter_tools/gradle/flutter.gradle' line: 665



* What went wrong:

Execution failed for task ':app:compileflutterBuildDebugArm'.
...

BUILD FAILED in 22s
Running Gradle task 'assembleDebug'...                             23.7s
Gradle task assembleDebug failed with exit code 1
@davidmarinangeli
Copy link
Author

Maybe I figured it out. The 0.1.4 introduce the SideTitles so FlTitlesData doesn't have that parameters anymore

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