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
Hi, Thanks for creating this Flutter plugin. I was hoping to use it, but I can't get it to compile without the errors shown below. My process is the following: I clone the Flutter-Music-Player repo and then run 'Flutter packages get' followed by 'Flutter run'.
Am I missing something?
Here are the Compiler errors:
`Compiler message:
lib/pages/now_playing.dart:110:10: Error: The setter 'timestamp' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'timestamp'.
song.timestamp = new DateTime.now().millisecondsSinceEpoch;
^^^^^^^^^
lib/pages/now_playing.dart:111:14: Error: The getter 'count' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'count'.
if (song.count == null) {
^^^^^
lib/pages/now_playing.dart:112:12: Error: The setter 'count' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'count'.
song.count = 0;
^^^^^
lib/pages/now_playing.dart:114:12: Error: The getter 'count' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'count'.
song.count++;
^^^^^
lib/pages/now_playing.dart:114:12: Error: The setter 'count' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'count'.
song.count++;
^^^^^
lib/pages/now_playing.dart:117:18: Error: The getter 'isFav' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isFav'.
isfav = song.isFav;
^^^^^
lib/database/database_client.dart:27:14: Error: The getter 'count' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'count'.
if (song.count == null) {
^^^^^
lib/database/database_client.dart:28:12: Error: The setter 'count' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'count'.
song.count = 0;
^^^^^
lib/database/database_client.dart:30:14: Error: The getter 'timestamp' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'timestamp'.
if (song.timestamp == null) {
^^^^^^^^^
lib/database/database_client.dart:31:12: Error: The setter 'timestamp' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'timestamp'.
song.timestamp = 0;
^^^^^^^^^
lib/database/database_client.dart:33:14: Error: The getter 'isFav' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isFav'.
if (song.isFav == null) {
^^^^^
lib/database/database_client.dart:34:12: Error: The setter 'isFav' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing setter, or defining a setter or field named 'isFav'.
song.isFav = 0;
^^^^^
lib/database/database_client.dart:41:43: Error: The method 'toMap' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
id = await _db.insert("songs", song.toMap());
^^^^^
lib/database/database_client.dart:45:33: Error: The method 'toMap' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
.update("songs", song.toMap(), where: "id= ?", whereArgs: [song.id]);
^^^^^
lib/database/database_client.dart:63:48: Error: Getter not found: 'Columns'.
await _db.query("songs", columns: Song.Columns, orderBy: "title");
^^^^^^^
lib/database/database_client.dart:74:48: Error: Getter not found: 'Columns'.
await _db.query("songs", columns: Song.Columns, where: "albumid=$id");
^^^^^^^
lib/database/database_client.dart:117:23: Error: Getter not found: 'Columns'.
columns: Song.Columns, where: "artist='$artist'");
^^^^^^^
lib/database/database_client.dart:147:45: Error: The method 'toMap' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
id = await _db.insert("recents", song.toMap());
^^^^^
lib/database/database_client.dart:150:40: Error: The method 'toMap' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
await _db.update("recents", song.toMap(),
^^^^^
lib/database/database_client.dart:195:45: Error: The method 'toMap' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
id = await _db.insert("songs", song.toMap());
^^^^^
lib/database/database_client.dart:198:40: Error: The method 'toMap' isn't defined for the class 'Song'.
'Song' is from 'package:flute_music_player/flute_music_player.dart' ('file:///D:/PROGRAMS/Flutter/.pub-cache/hosted/pub.dartlang.org/flute_music_player-0.0.6/lib/flute_music_player.dart').
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
await _db.update("songs", song.toMap(),
^^^^^
lib/pages/list_songs.dart:68:9: Warning: Must explicitly return a value from a non-void function.
return;
^
Compiler failed on d:\WEBDEV\PRACTICE_CODE\flutter-musicplayer\lib/main.dart
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 12.9s
Gradle task assembleDebug failed with exit code 1`
The text was updated successfully, but these errors were encountered:
Hi, Thanks for creating this Flutter plugin. I was hoping to use it, but I can't get it to compile without the errors shown below. My process is the following: I clone the Flutter-Music-Player repo and then run 'Flutter packages get' followed by 'Flutter run'.
Am I missing something?
Here are the Compiler errors:
`Compiler message:
lib/pages/now_playing.dart:110:10: Error: The setter 'timestamp' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'timestamp'.
song.timestamp = new DateTime.now().millisecondsSinceEpoch;
^^^^^^^^^
lib/pages/now_playing.dart:111:14: Error: The getter 'count' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'count'.
if (song.count == null) {
^^^^^
lib/pages/now_playing.dart:112:12: Error: The setter 'count' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'count'.
song.count = 0;
^^^^^
lib/pages/now_playing.dart:114:12: Error: The getter 'count' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'count'.
song.count++;
^^^^^
lib/pages/now_playing.dart:114:12: Error: The setter 'count' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'count'.
song.count++;
^^^^^
lib/pages/now_playing.dart:117:18: Error: The getter 'isFav' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isFav'.
isfav = song.isFav;
^^^^^
lib/database/database_client.dart:27:14: Error: The getter 'count' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'count'.
if (song.count == null) {
^^^^^
lib/database/database_client.dart:28:12: Error: The setter 'count' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'count'.
song.count = 0;
^^^^^
lib/database/database_client.dart:30:14: Error: The getter 'timestamp' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'timestamp'.
if (song.timestamp == null) {
^^^^^^^^^
lib/database/database_client.dart:31:12: Error: The setter 'timestamp' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'timestamp'.
song.timestamp = 0;
^^^^^^^^^
lib/database/database_client.dart:33:14: Error: The getter 'isFav' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing getter, or defining a getter or field named 'isFav'.
if (song.isFav == null) {
^^^^^
lib/database/database_client.dart:34:12: Error: The setter 'isFav' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing setter, or defining a setter or field named 'isFav'.
song.isFav = 0;
^^^^^
lib/database/database_client.dart:41:43: Error: The method 'toMap' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
id = await _db.insert("songs", song.toMap());
^^^^^
lib/database/database_client.dart:45:33: Error: The method 'toMap' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
.update("songs", song.toMap(), where: "id= ?", whereArgs: [song.id]);
^^^^^
lib/database/database_client.dart:63:48: Error: Getter not found: 'Columns'.
await _db.query("songs", columns: Song.Columns, orderBy: "title");
^^^^^^^
lib/database/database_client.dart:74:48: Error: Getter not found: 'Columns'.
await _db.query("songs", columns: Song.Columns, where: "albumid=$id");
^^^^^^^
lib/database/database_client.dart:117:23: Error: Getter not found: 'Columns'.
columns: Song.Columns, where: "artist='$artist'");
^^^^^^^
lib/database/database_client.dart:147:45: Error: The method 'toMap' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
id = await _db.insert("recents", song.toMap());
^^^^^
lib/database/database_client.dart:150:40: Error: The method 'toMap' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
await _db.update("recents", song.toMap(),
^^^^^
lib/database/database_client.dart:195:45: Error: The method 'toMap' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
id = await _db.insert("songs", song.toMap());
^^^^^
lib/database/database_client.dart:198:40: Error: The method 'toMap' isn't defined for the class 'Song'.
Try correcting the name to the name of an existing method, or defining a method named 'toMap'.
await _db.update("songs", song.toMap(),
^^^^^
lib/pages/list_songs.dart:68:9: Warning: Must explicitly return a value from a non-void function.
return;
^
Compiler failed on d:\WEBDEV\PRACTICE_CODE\flutter-musicplayer\lib/main.dart
Running Gradle task 'assembleDebug'...
Running Gradle task 'assembleDebug'... Done 12.9s
Gradle task assembleDebug failed with exit code 1`
The text was updated successfully, but these errors were encountered: