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

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

View File

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

View File

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