DavideBelsole / great_list_view

pub.dev library for flutter
MIT License
41 stars 22 forks source link

Unable to run example #1

Closed bendelonlee closed 3 years ago

bendelonlee commented 3 years ago

Nice list view, it seems pretty great!

I was unable to run the example, got a lot of errors from worker_manager dependency

Logs ``` flutter run -d chrome --web-renderer html --debug --no-sound-null-safety Launching lib/main.dart on Chrome in debug mode... ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/worker_manager-4 .0.1/lib/src/task.dart:12:27: Error: The parameter 'runnable' can't have a value of 'null' because of its type 'Runnable', but the implicit default value is 'null'. - 'Runnable' is from 'package:worker_manager/src/runnable.dart' ('../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/worker_manage r-4.0.1/lib/src/runnable.dart'). Try adding either an explicit non-'null' default value or the 'required' modifier. Task(this.number, {this.runnable, this.workPriority}); ^^^^^^^^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/worker_manager-4 .0.1/lib/src/task.dart:12:42: Error: The parameter 'workPriority' can't have a value of 'null' because of its type 'WorkPriority', but the implicit default value is 'null'. - 'WorkPriority' is from 'package:worker_manager/src/work_priority.dart' ('../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/worker_manage r-4.0.1/lib/src/work_priority.dart'). Try adding either an explicit non-'null' default value or the 'required' modifier. Task(this.number, {this.runnable, this.workPriority}); ^^^^^^^^^^^^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/worker_manager-4 .0.1/lib/src/executor.dart:81:23: Error: The argument type 'num' can't be assigned to the parameter type 'int'. final task = Task(_taskNumber, ^ ../../../development/flutter/.pub-cache/hosted/pub.dartlang.org/worker_manager-4 .0.1/lib/src/executor.dart:156:7: Error: The argument type 'num' can't be assigned to the parameter type 'int'. _taskNumber, ^ Waiting for connection from debug service on Chrome... 18.2s Failed to compile application. ```
DavideBelsole commented 3 years ago

Fixed. Try version 0.0.10+1