Spotify API consuming app Example
You need config your Spotify Api Token in ./lib/config/constant.dart
class Constants {
static const SPOTIFY_TOKEN = "(Your Token Here)";
}
lib
│───main.dart
│───service_locator.dart
│───config
| │──constant.dart
| └──route.dart
│───domain
│ │──album/
| └──artist/
│───extension
| └──state.dart
│───infrastructure
| │──artist/
| │──database/
| └──spotify/
│───presentation
| │──app/
| │──artist_detail/
| │──artist_favorite/
| │──artist_list/
| └──artist_detail/
│───utils
| │──http_client.dart
| └──resource.dart
└───widgets
│──album_card.dart
|──artist_card.dart
└──start.dart
- flutter_bloc -> Bloc patter Arquitecture
- dio -> Http client
- get_it -> Service locator
- floor -> sqlite orm
- equatable -> Equality Comparisons
- cached_network_image -> cached image
- url_launcher -> open browser