37 lines
970 B
Dart
Raw Normal View History

2024-10-25 21:48:27 +04:00
import 'package:flutter/material.dart';
import 'package:pmd_lab/domain/models/card.dart';
class DetailsPage extends StatelessWidget {
2024-11-27 23:10:56 +04:00
final CardData data;
2024-10-25 21:48:27 +04:00
const DetailsPage(this.data, {super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
2024-12-17 14:33:28 +04:00
appBar: AppBar(),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 16),
child: Image.network(
data.imgUrl ?? '',
),
),
Padding(
padding: const EdgeInsets.only(bottom: 4),
child: Text(
2024-10-25 21:48:27 +04:00
data.text,
style: Theme.of(context).textTheme.headlineLarge,
2024-12-17 14:33:28 +04:00
),
2024-10-25 21:48:27 +04:00
),
2024-12-17 14:33:28 +04:00
Text(
2024-10-25 21:48:27 +04:00
data.description,
style: Theme.of(context).textTheme.bodyLarge,
2024-12-17 14:33:28 +04:00
)
],
));
2024-10-25 21:48:27 +04:00
}
}