Mobile/lib/domain/models/card.dart

39 lines
1.0 KiB
Dart
Raw Permalink Normal View History

2024-10-16 16:13:47 +04:00
import 'package:first_project/presentation/home_page/home_page.dart';
import 'package:flutter/material.dart';
class DetailsPage extends StatelessWidget {
final CardData data;
const DetailsPage(this.data, {super.key});
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(),
2024-11-18 15:06:34 +04:00
body: SingleChildScrollView(
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Padding(
padding: const EdgeInsets.only(bottom: 16),
child: Image.network(
data.imageUrl,
),
2024-10-16 16:13:47 +04:00
),
2024-11-18 15:06:34 +04:00
Padding(
padding: const EdgeInsets.only(bottom: 4),
child: Text(
data.text,
style: Theme.of(context).textTheme.headlineLarge,
)),
Text(
data.description,
style: Theme.of(context).textTheme.bodyLarge,
)
],
),
2024-10-16 16:13:47 +04:00
),
);
}
}