приколы какие-то

This commit is contained in:
Галина Федоренко 2024-10-17 10:40:53 +04:00
parent 9a5abe22b9
commit 01e1d2f730
3 changed files with 5 additions and 2 deletions

View File

@ -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'),
);

View File

@ -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'),

View File

@ -43,6 +43,7 @@ class AlbumCard extends StatelessWidget {
'${album.reviews.length} reviews',
style: const TextStyle(
fontSize: 14,
fontStyle: FontStyle.italic,
color: Colors.grey,
),
),