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

Update the flutter version and other packages #8

Closed
literalEval opened this issue Dec 25, 2021 · 5 comments · Fixed by #9
Closed

Update the flutter version and other packages #8

literalEval opened this issue Dec 25, 2021 · 5 comments · Fixed by #9
Assignees

Comments

@literalEval
Copy link
Contributor

The app no longer works. Most probably it's an issue with one (or more) package versions.
Pubspec needs to be updated.

@nb9960
Copy link
Collaborator

nb9960 commented Dec 25, 2021

I just checked, other than flutter_duration_picker, everything works perfectly and the app gets compiled too.
This package certainly needs to be replaced. Would you like to work on this?
Also, check the comment on issue #7 @Literal-Eval

@literalEval
Copy link
Contributor Author

Yep. I'll work on this.
And about issue #7 , I think instead of downgrading flutter, upgrading plugins would be a more robust solution.

@nb9960
Copy link
Collaborator

nb9960 commented Dec 26, 2021

Yep. I'll work on this. And about issue #7 , I think instead of downgrading flutter, upgrading plugins would be a more robust solution.

Yep, version updates are much needed. Assigning it to you!

@nb9960 nb9960 changed the title Issues with compiling Update the flutter version and other packages Dec 26, 2021
@Pavel401
Copy link
Member

Hi, I tried to run the app on my device but i am getting some errors.

`[+11781 ms] [+13695 ms] ../../flutter/.pub-cache/git/flutter_duration_picker-285ff19ad8b440fb6b8727ea849b7ce679d67c75/lib/flutter_duration_picker.dart:104:18: Error:
The getter 'display3' isn't defined for the class 'TextTheme'.
[ +2 ms] [ +2 ms] - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../flutter/packages/flutter/lib/src/material/text_theme.dart').
[ +1 ms] [ ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'display3'.
[ ] [ ] .display3
[ ] [ ] ^^^^^^^^
[ ] [ +3 ms] ../../flutter/.pub-cache/git/flutter_duration_picker-285ff19ad8b440fb6b8727ea849b7ce679d67c75/lib/flutter_duration_picker.dart:117:48: Error: The
getter 'body1' isn't defined for the class 'TextTheme'.
[ +2 ms] [ ] - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../flutter/packages/flutter/lib/src/material/text_theme.dart').
[ +1 ms] [ ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'body1'.
[ +1 ms] [ ] style: Theme.of(context).textTheme.body1),
[ +1 ms] [ ] ^^^^^
[ +1 ms] [ +3 ms] ../../flutter/.pub-cache/git/flutter_duration_picker-285ff19ad8b440fb6b8727ea849b7ce679d67c75/lib/flutter_duration_picker.dart:440:39: Error: The
getter 'subhead' isn't defined for the class 'TextTheme'.
[ +2 ms] [ ] - 'TextTheme' is from 'package:flutter/src/material/text_theme.dart' ('../../flutter/packages/flutter/lib/src/material/text_theme.dart').
[ +1 ms] [ ] Try correcting the name to the name of an existing getter, or defining a getter or field named 'subhead'.
[ +1 ms] [ ] final TextStyle style = textTheme.subhead;
[ ] [ ] ^^^^^^^
[+13373 ms] [+13404 ms] Persisting file store
[ +1 ms] [ +5 ms] Done persisting file store
[ +92 ms] [ +6 ms] Target kernel_snapshot failed: Exception
[ +1 ms] #0 KernelSnapshot.build (package:flutter_tools/src/build_system/targets/common.dart:241:7)
[ +1 ms]
[ ] #1 _BuildInstance._invokeInternal (package:flutter_tools/src/build_system/build_system.dart:839:9)
[ ]
[ ] #2 Future.wait. (dart:async/future.dart)
[ ]
[ ] #3 _BuildInstance.invokeTarget (package:flutter_tools/src/build_system/build_system.dart:777:32)
[ ]
[ ] #4 FlutterBuildSystem.build (package:flutter_tools/src/build_system/build_system.dart:606:16)
[ +1 ms]
[ +1 ms] #5 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:317:32)
[ +1 ms]
[ ] #6 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
[ ]
[ ] #7 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
[ +1 ms]
[ +1 ms] #8 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[ ]
[ ] #9 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
[ ]
[ ] #10 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
[ ]
[ ] #11 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
[ ]
[ ] #12 run.. (package:flutter_tools/runner.dart:62:9)
[ ]
[ ] #13 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
[ ]
[ ] #14 main (package:flutter_tools/executable.dart:94:3)
[ ]
[ ] [ +5 ms]
[ ] #0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
[ ] #1 AssembleCommand.runCommand (package:flutter_tools/src/commands/assemble.dart:334:7)
[ ]
[ +1 ms] #2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1140:27)
[ ]
[ ] #3 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
[ ]
[ ] #4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)
[ ]
[ ] #5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)
[ ]
[ ] #6 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
[ ]
[ ] #7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)
[ ]
[ ] #8 run.. (package:flutter_tools/runner.dart:62:9)
[ ]
[ ] #9 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)
[ +1 ms]
[ +1 ms] #10 main (package:flutter_tools/executable.dart:94:3)
[ +1 ms]
[ +1 ms] [ +20 ms] "flutter assemble" took 28,092ms.
[ +157 ms] [ +257 ms] ensureAnalyticsSent: 256ms
[ +1 ms] [ +2 ms] Running shutdown hooks
[ ] [ ] Shutdown hooks complete
[ ] [ ] exiting with code 1
[ +203 ms] > Task :app:compileFlutterBuildDebug FAILED
[ +1 ms] FAILURE: Build failed with an exception.
[ +1 ms] * Where:
[ +1 ms] Script 'C:\Users\DELL\Documents\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 1070
[ +1 ms] * What went wrong:
[ +1 ms] Execution failed for task ':app:compileFlutterBuildDebug'.
[ +1 ms] > Process 'command 'C:\Users\DELL\Documents\flutter\bin\flutter.bat'' finished with non-zero exit value 1
[ +1 ms] * 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.
[ +1 ms] * Get more help at https://help.gradle.org
[ +1 ms] BUILD FAILED in 39s
[ +1 ms] Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
[ ] Use '--warning-mode all' to show the individual deprecation warnings.
[ +1 ms] See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings
[ ] 1 actionable task: 1 executed
[ +675 ms] Running Gradle task 'assembleDebug'... (completed in 41.2s)
[ +8 ms] Exception: Gradle task assembleDebug failed with exit code 1
[ +2 ms] "flutter run" took 44,218ms.
[ +5 ms]
#0 throwToolExit (package:flutter_tools/src/base/common.dart:10:3)
#1 RunCommand.runCommand (package:flutter_tools/src/commands/run.dart:674:9)

#2 FlutterCommand.run. (package:flutter_tools/src/runner/flutter_command.dart:1140:27)

#3 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#4 CommandRunner.runCommand (package:args/command_runner.dart:209:13)

#5 FlutterCommandRunner.runCommand. (package:flutter_tools/src/runner/flutter_command_runner.dart:288:9)

#6 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#7 FlutterCommandRunner.runCommand (package:flutter_tools/src/runner/flutter_command_runner.dart:236:5)

#8 run.. (package:flutter_tools/runner.dart:62:9)

#9 AppContext.run. (package:flutter_tools/src/base/context.dart:150:19)

#10 main (package:flutter_tools/executable.dart:94:3)

[ +262 ms] ensureAnalyticsSent: 255ms
[ +2 ms] Running shutdown hooks
[ ] Shutdown hooks complete
[ ] exiting with code 1`

@literalEval
Copy link
Contributor Author

@nb9960 flutter_duration_picker is obsolete. At first I thought of downloading their code and migrating it accordingly, but then I found something similar, https://pub.dev/packages/duration_picker.

I propose to use this plugin instead of flutter_duration_picker.

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

Successfully merging a pull request may close this issue.

3 participants