приколы какие-то
This commit is contained in:
parent
9a5abe22b9
commit
01e1d2f730
@ -15,8 +15,9 @@ class MyApp extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return MaterialApp(
|
||||
title: 'Music Reviewer',
|
||||
theme: ThemeData.dark().copyWith(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.purpleAccent)
|
||||
theme: ThemeData(
|
||||
colorScheme: ColorScheme.fromSeed(seedColor: Colors.purpleAccent),
|
||||
useMaterial3: true
|
||||
),
|
||||
home: const MyHomePage(title: 'Music Reviewer'),
|
||||
);
|
||||
|
@ -3,6 +3,7 @@ import '../models/album.dart';
|
||||
import '../enums/genre.dart';
|
||||
|
||||
Future<List<Album>> fetchAlbums() async {
|
||||
await Future.delayed(Duration(seconds: 2));
|
||||
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('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',
|
||||
style: const TextStyle(
|
||||
fontSize: 14,
|
||||
fontStyle: FontStyle.italic,
|
||||
color: Colors.grey,
|
||||
),
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user