avirias / Grey

A material designed music player developed in Flutter
MIT License
526 stars 193 forks source link

getter isnot defined #16

Closed millievn closed 4 years ago

millievn commented 4 years ago

I cloned this repository and run pub get. But some problem still show in the terminal. Maybe something with the code.


The getter 'Columns' isn't defined for the class 'Song'.
Try importing the library that defines 'Columns', correcting the name to the name of an existing getter, or defining a getter or field named 'Columns'.

class Song {
  int id;
  String artist;
  String title;
  String album;
  int albumId;
  int duration;
  String uri;
  String albumArt;

  Song(this.id, this.artist, this.title, this.album, this.albumId,
      this.duration, this.uri, this.albumArt);
  Song.fromMap(Map m) {
    id = m["id"];
    artist = m["artist"];
    title = m["title"];
    album = m["album"];
    albumId = m["albumId"];
    duration = m["duration"];
    uri = m["uri"];
    albumArt = m["albumArt"];
  }
}

image image

avirias commented 4 years ago

1