mirror of
https://github.com/pese-git/cherrypick.git
synced 2026-01-24 13:47:24 +00:00
22 lines
511 B
Dart
22 lines
511 B
Dart
import 'package:auto_route/auto_route.dart';
|
|
import 'package:flutter/material.dart';
|
|
import '../../domain/entity/post.dart';
|
|
|
|
@RoutePage()
|
|
class PostDetailsPage extends StatelessWidget {
|
|
final Post post;
|
|
|
|
const PostDetailsPage({super.key, required this.post});
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Scaffold(
|
|
appBar: AppBar(title: Text('Post #${post.id}')),
|
|
body: Padding(
|
|
padding: const EdgeInsets.all(16),
|
|
child: Text(post.body),
|
|
),
|
|
);
|
|
}
|
|
}
|