mirror of
https://github.com/Iconica-Development/flutter_timeline.git
synced 2025-05-19 10:33:44 +02:00
fix: resolve bug for changing category when viewing post
This commit is contained in:
parent
016e27ebab
commit
c1b74e97f3
2 changed files with 1 additions and 3 deletions
|
@ -9,8 +9,6 @@ void main(List<String> args) {
|
|||
runApp(const MyApp());
|
||||
}
|
||||
|
||||
var timelineService = TimelineService();
|
||||
|
||||
class MyApp extends StatelessWidget {
|
||||
const MyApp({super.key});
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ class _TimelinePostDetailScreenState extends State<TimelinePostDetailScreen> {
|
|||
@override
|
||||
void initState() {
|
||||
selectedCategory = widget.timelineService.categoryRepository
|
||||
.selectCategory(widget.post.category);
|
||||
.getCategory(widget.post.category);
|
||||
super.initState();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue