From 9201d931ce71c0c6041dd6462153b2565882b822 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=92=D0=B5=D1=80=D0=B0?= <Вера@DESKTOP-7L4BKCB> Date: Wed, 18 Dec 2024 00:52:19 +0400 Subject: [PATCH] lab-4 --- lib/main.dart | 3 ++- lib/presentation/home_page/home_page.dart | 12 ++++++------ 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/lib/main.dart b/lib/main.dart index 928788e..f41f5f6 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -11,11 +11,12 @@ class MyApp extends StatelessWidget { Widget build(BuildContext context) { return MaterialApp( title: 'Flutter Demo', + debugShowCheckedModeBanner: false, theme: ThemeData( colorScheme: ColorScheme.fromSeed(seedColor: Colors.deepPurple), useMaterial3: true, ), - home: const HomePage(title: 'The coolest hamsters on earth ^^'), + home: const HomePage(title: 'Leonteva_V.A._PIbd-33'), ); } } diff --git a/lib/presentation/home_page/home_page.dart b/lib/presentation/home_page/home_page.dart index b74687b..e2f8c0f 100644 --- a/lib/presentation/home_page/home_page.dart +++ b/lib/presentation/home_page/home_page.dart @@ -35,17 +35,17 @@ class Body extends StatelessWidget { @override Widget build(BuildContext context) { final data = [ - CardData('mouse', - descriptionText: 'hahaha', + CardData('dish', + descriptionText: 'delicious', icon: Icons.abc, imageUrl: 'https://sun9-26.userapi.com/impg/sB_tLPWPCIqxQWmlbcmlRYiw1ibFb70_QMtNwg/56qpyc_C8Go.jpg?size=736x711&quality=95&sign=8f7163b54538a2e7bad5f36a857485d4&type=album'), - CardData('mouse2', - descriptionText: 'ahahaha', + CardData('dish2', + descriptionText: 'yes', icon: Icons.access_alarm_outlined, imageUrl: 'https://sun165-1.userapi.com/impg/EVLbaLilqr8xw5tsqZLQQb6DSYrdKo7Q9sYSsw/H4FRwyMR6Ec.jpg?size=1280x960&quality=96&sign=f606e4ae3d1ccd27917cd1ffa6d91e58&type=album'), - CardData('mouse3', + CardData('dish3', descriptionText: 'eeee', icon: Icons.access_alarm_rounded, imageUrl: @@ -80,7 +80,7 @@ class Body extends StatelessWidget { WidgetsBinding.instance.addPostFrameCallback((_) { ScaffoldMessenger.of(context).showSnackBar(SnackBar( content: Text( - 'Cute hamster $title ${isLiked ? 'liked!' : 'disliked :('}', + 'O! $title ${isLiked ? 'liked!' : 'disliked :('}', style: Theme.of(context).textTheme.bodyLarge, ), backgroundColor: Colors.orangeAccent,