приколы какие-то
This commit is contained in:
parent
9a5abe22b9
commit
01e1d2f730
@ -15,8 +15,9 @@ class MyApp extends StatelessWidget {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return MaterialApp(
|
return MaterialApp(
|
||||||
title: 'Music Reviewer',
|
title: 'Music Reviewer',
|
||||||
theme: ThemeData.dark().copyWith(
|
theme: ThemeData(
|
||||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.purpleAccent)
|
colorScheme: ColorScheme.fromSeed(seedColor: Colors.purpleAccent),
|
||||||
|
useMaterial3: true
|
||||||
),
|
),
|
||||||
home: const MyHomePage(title: 'Music Reviewer'),
|
home: const MyHomePage(title: 'Music Reviewer'),
|
||||||
);
|
);
|
||||||
|
@ -3,6 +3,7 @@ import '../models/album.dart';
|
|||||||
import '../enums/genre.dart';
|
import '../enums/genre.dart';
|
||||||
|
|
||||||
Future<List<Album>> fetchAlbums() async {
|
Future<List<Album>> fetchAlbums() async {
|
||||||
|
await Future.delayed(Duration(seconds: 2));
|
||||||
return [
|
return [
|
||||||
Album('The Dark Side of the Moon', 'Pink Floyd', Genre.rock, 'https://upload.wikimedia.org/wikipedia/ru/1/15/The_Dark_Side_of_the_Moon.png'),
|
Album('The Dark Side of the Moon', 'Pink Floyd', Genre.rock, 'https://upload.wikimedia.org/wikipedia/ru/1/15/The_Dark_Side_of_the_Moon.png'),
|
||||||
Album('Thriller', 'Michael Jackson', Genre.pop, 'https://upload.wikimedia.org/wikipedia/ru/5/59/Thriller_cover.jpg'),
|
Album('Thriller', 'Michael Jackson', Genre.pop, 'https://upload.wikimedia.org/wikipedia/ru/5/59/Thriller_cover.jpg'),
|
||||||
|
@ -43,6 +43,7 @@ class AlbumCard extends StatelessWidget {
|
|||||||
'${album.reviews.length} reviews',
|
'${album.reviews.length} reviews',
|
||||||
style: const TextStyle(
|
style: const TextStyle(
|
||||||
fontSize: 14,
|
fontSize: 14,
|
||||||
|
fontStyle: FontStyle.italic,
|
||||||
color: Colors.grey,
|
color: Colors.grey,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
Loading…
Reference in New Issue
Block a user