lab-4
This commit is contained in:
parent
71b843976f
commit
9201d931ce
@ -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'),
|
||||
);
|
||||
}
|
||||
}
|
||||
|
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user