kopia lustrzana https://gitlab.com/mysocialportal/relatica
36 wiersze
861 B
Dart
36 wiersze
861 B
Dart
![]() |
import 'package:flutter/material.dart';
|
||
|
|
||
|
import '../controls/timeline/timeline_panel.dart';
|
||
|
import '../models/TimelineIdentifiers.dart';
|
||
|
import '../routes.dart';
|
||
|
|
||
|
class UserPostsScreen extends StatelessWidget {
|
||
|
final String userId;
|
||
|
|
||
|
const UserPostsScreen({super.key, required this.userId});
|
||
|
|
||
|
@override
|
||
|
Widget build(BuildContext context) {
|
||
|
return Scaffold(
|
||
|
appBar: AppBar(
|
||
|
title: Text('User Posts'),
|
||
|
actions: [
|
||
|
IconButton(
|
||
|
onPressed: () {
|
||
|
Navigator.of(context).popUntil((route) {
|
||
|
return route.settings.name == ScreenPaths.home;
|
||
|
});
|
||
|
},
|
||
|
icon: const Icon(Icons.home),
|
||
|
),
|
||
|
],
|
||
|
),
|
||
|
body: Center(
|
||
|
child: TimelinePanel(
|
||
|
timeline: TimelineIdentifiers.profile(userId),
|
||
|
),
|
||
|
),
|
||
|
);
|
||
|
}
|
||
|
}
|