PMU/lib/presentation/details_page/details_page.dart

37 lines
926 B
Dart
Raw Normal View History

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(),
body: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 16.0),
child: Image.network(
2024-09-22 22:30:44 +04:00
data.image ?? '',
2024-09-22 20:35:55 +04:00
),
),
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,
)
],
),
);
}
}