laba_6 update 2.0
This commit is contained in:
parent
1efc0ab6f1
commit
00ce9632e1
@ -51,7 +51,7 @@ class _CardState extends State<_Card> {
|
|||||||
color: Colors.greenAccent,
|
color: Colors.greenAccent,
|
||||||
borderRadius: BorderRadius.circular(20),
|
borderRadius: BorderRadius.circular(20),
|
||||||
border: Border.all(
|
border: Border.all(
|
||||||
color: Colors.black,
|
color: Colors.white,
|
||||||
width: 2,
|
width: 2,
|
||||||
),
|
),
|
||||||
boxShadow: [
|
boxShadow: [
|
||||||
@ -73,7 +73,7 @@ class _CardState extends State<_Card> {
|
|||||||
),
|
),
|
||||||
child: SizedBox(
|
child: SizedBox(
|
||||||
height: double.infinity,
|
height: double.infinity,
|
||||||
width: 120,
|
width: 150,
|
||||||
child: Image.network(
|
child: Image.network(
|
||||||
widget.imageUrl ?? '',
|
widget.imageUrl ?? '',
|
||||||
fit: BoxFit.cover,
|
fit: BoxFit.cover,
|
||||||
|
@ -4,7 +4,6 @@ import 'package:flutter_bloc/flutter_bloc.dart';
|
|||||||
import 'package:untitled/components/utils/debounce.dart';
|
import 'package:untitled/components/utils/debounce.dart';
|
||||||
import 'package:untitled/data/repositories/player_repository.dart';
|
import 'package:untitled/data/repositories/player_repository.dart';
|
||||||
import 'package:untitled/domain/models/card.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/details_page/details_page.dart';
|
||||||
import 'package:untitled/presentation/home_page/bloc/bloc.dart';
|
import 'package:untitled/presentation/home_page/bloc/bloc.dart';
|
||||||
import 'package:untitled/presentation/home_page/bloc/events.dart';
|
import 'package:untitled/presentation/home_page/bloc/events.dart';
|
||||||
@ -30,7 +29,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
'Hello',
|
'Hello',
|
||||||
style: Theme.of(context).textTheme.bodyMedium,
|
style: Theme.of(context).textTheme.bodyMedium,
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.purple,
|
backgroundColor: Colors.black,
|
||||||
duration: const Duration(seconds: 1),
|
duration: const Duration(seconds: 1),
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
@ -41,7 +40,7 @@ class _MyHomePageState extends State<MyHomePage> {
|
|||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
return Scaffold(
|
return Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
backgroundColor: Colors.deepPurple,
|
backgroundColor: Colors.greenAccent,
|
||||||
title: Text(widget.title),
|
title: Text(widget.title),
|
||||||
),
|
),
|
||||||
body: const WidgetBody(),
|
body: const WidgetBody(),
|
||||||
@ -159,7 +158,7 @@ class _WidgetBodyState extends State<WidgetBody> {
|
|||||||
'Ronaldo $title ${isLiked ? 'liked!' : 'dislaked'}',
|
'Ronaldo $title ${isLiked ? 'liked!' : 'dislaked'}',
|
||||||
style: Theme.of(context).textTheme.bodyLarge,
|
style: Theme.of(context).textTheme.bodyLarge,
|
||||||
),
|
),
|
||||||
backgroundColor: Colors.green,
|
backgroundColor: Colors.black,
|
||||||
duration: const Duration(seconds: 1),
|
duration: const Duration(seconds: 1),
|
||||||
));
|
));
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user