2024-09-22 20:35:55 +04:00
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import '../../domain/models/card.dart';
|
|
|
|
|
|
|
|
class DetailsPage extends StatelessWidget {
|
|
|
|
final CardData data;
|
|
|
|
|
|
|
|
const DetailsPage(this.data, {super.key});
|
|
|
|
|
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(),
|
2024-09-24 22:27:49 +04:00
|
|
|
body: Padding(
|
|
|
|
padding: const EdgeInsets.all(20),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Center(
|
|
|
|
child: Image.network(
|
|
|
|
data.image ?? '',
|
|
|
|
),
|
2024-09-22 20:35:55 +04:00
|
|
|
),
|
2024-09-24 22:27:49 +04:00
|
|
|
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
|
|
|
|
],
|
|
|
|
),
|
2024-09-22 20:35:55 +04:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|