This commit is contained in:
Вячеслав Иванов 2024-09-24 22:27:49 +04:00
parent f80bc53118
commit 16f0f53745
11 changed files with 78 additions and 82 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.3 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 8.8 KiB

BIN
assets/logo.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@ -10,28 +10,27 @@ class DetailsPage extends StatelessWidget {
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
body: Padding(
padding: const EdgeInsets.all(20),
child: Column(
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 16.0),
Center(
child: Image.network(
data.image ?? '',
),
),
Padding(
padding: const EdgeInsets.only(bottom: 4.0),
child: Text(
data.text,
style: Theme.of(context).textTheme.headlineLarge,
),
),
Text(
data.descriptionText,
style: Theme.of(context).textTheme.bodyLarge,
)
const SizedBox(height: 20),
Text(data.text,
style:
const TextStyle(fontSize: 24, fontWeight: FontWeight.bold)),
const SizedBox(height: 10),
Text(data.descriptionText,
style: const TextStyle(fontSize: 22, color: Colors.black87)),
// Add more details here as needed
],
),
),
);
}
}

View File

@ -46,9 +46,9 @@ class _Card extends StatelessWidget {
onTap: onTap,
child: Container(
margin: const EdgeInsets.all(16),
constraints: const BoxConstraints(minHeight: 160),
constraints: const BoxConstraints(minHeight: 240),
decoration: BoxDecoration(
color: Colors.white70,
color: Colors.white30,
borderRadius: BorderRadius.circular(20),
boxShadow: [
BoxShadow(
@ -59,24 +59,22 @@ class _Card extends StatelessWidget {
),
],
),
child: IntrinsicHeight(
child: Row(
crossAxisAlignment: CrossAxisAlignment.start,
child: Column(
children: [
ClipRRect(
borderRadius: const BorderRadius.only(
bottomLeft: Radius.circular(20),
topLeft: Radius.circular(20),
topRight: Radius.circular(20),
),
child: SizedBox(
height: double.infinity,
width: 120,
height: 160,
width: double.infinity,
child: Stack(
children: [
Positioned.fill(
child: Image.network(
image ?? '',
fit: BoxFit.cover,
fit: BoxFit.contain,
errorBuilder: (_, __, ___) => const Placeholder(),
),
),
@ -84,22 +82,22 @@ class _Card extends StatelessWidget {
),
),
),
Expanded(
child: Padding(
padding: const EdgeInsets.only(left: 16.0),
Padding(
padding: const EdgeInsets.symmetric(vertical: 8.0, horizontal: 16.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
text,
style: Theme.of(context).textTheme.headlineSmall,
textAlign: TextAlign.center,
),
Text(
descriptionText,
style: Theme.of(context).textTheme.bodyLarge,
)
],
textAlign: TextAlign.center,
),
],
),
),
Align(
@ -127,7 +125,6 @@ class _Card extends StatelessWidget {
],
),
),
),
);
}
}

View File

@ -187,7 +187,7 @@ class _BodyState extends State<_Body> {
'$title ${isLiked ? context.locale.liked : context.locale.disliked}',
style: Theme.of(context).textTheme.bodyLarge,
),
backgroundColor: Colors.orangeAccent,
backgroundColor: Colors.white,
duration: const Duration(seconds: 1),
));
});

View File

@ -47,7 +47,7 @@ dev_dependencies:
flutter_icons:
android: "ic_launcher"
image_path: "assets/logo.png"
image_path: "assets/logo.jpg"
min_sdk_android: 21
flutter: