laba_6 update 2.0

This commit is contained in:
Дмитрий Блохин 2024-12-17 17:28:49 +04:00
parent 1efc0ab6f1
commit 00ce9632e1
2 changed files with 5 additions and 6 deletions
lib/presentation/home_page

@ -51,7 +51,7 @@ class _CardState extends State<_Card> {
color: Colors.greenAccent,
borderRadius: BorderRadius.circular(20),
border: Border.all(
color: Colors.black,
color: Colors.white,
width: 2,
),
boxShadow: [
@ -73,7 +73,7 @@ class _CardState extends State<_Card> {
),
child: SizedBox(
height: double.infinity,
width: 120,
width: 150,
child: Image.network(
widget.imageUrl ?? '',
fit: BoxFit.cover,

@ -4,7 +4,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
import 'package:untitled/components/utils/debounce.dart';
import 'package:untitled/data/repositories/player_repository.dart';
import 'package:untitled/domain/models/card.dart';
import 'package:untitled/main.dart';
import 'package:untitled/presentation/details_page/details_page.dart';
import 'package:untitled/presentation/home_page/bloc/bloc.dart';
import 'package:untitled/presentation/home_page/bloc/events.dart';
@ -30,7 +29,7 @@ class _MyHomePageState extends State<MyHomePage> {
'Hello',
style: Theme.of(context).textTheme.bodyMedium,
),
backgroundColor: Colors.purple,
backgroundColor: Colors.black,
duration: const Duration(seconds: 1),
));
});
@ -41,7 +40,7 @@ class _MyHomePageState extends State<MyHomePage> {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
backgroundColor: Colors.deepPurple,
backgroundColor: Colors.greenAccent,
title: Text(widget.title),
),
body: const WidgetBody(),
@ -159,7 +158,7 @@ class _WidgetBodyState extends State<WidgetBody> {
'Ronaldo $title ${isLiked ? 'liked!' : 'dislaked'}',
style: Theme.of(context).textTheme.bodyLarge,
),
backgroundColor: Colors.green,
backgroundColor: Colors.black,
duration: const Duration(seconds: 1),
));
});