2022-07-03 14:56:41 +00:00
|
|
|
import 'package:flutter/material.dart';
|
2022-08-29 13:37:34 +00:00
|
|
|
import 'package:localization/localization.dart';
|
|
|
|
import 'package:loris/business_logic/timeline/timeline.dart';
|
2022-08-22 18:08:10 +00:00
|
|
|
import '../business_logic/posting/posting.dart' as logic;
|
2022-07-03 14:56:41 +00:00
|
|
|
|
2022-08-29 13:37:34 +00:00
|
|
|
class MakePost extends StatefulWidget {
|
|
|
|
const MakePost({Key? key, this.inReplyTo}) : super(key: key);
|
|
|
|
final PostModel? inReplyTo;
|
2022-07-03 14:56:41 +00:00
|
|
|
|
|
|
|
@override
|
2022-08-29 13:37:34 +00:00
|
|
|
State<MakePost> createState() => _MakePostState();
|
2022-07-03 14:56:41 +00:00
|
|
|
}
|
|
|
|
|
2022-08-29 13:37:34 +00:00
|
|
|
class _MakePostState extends State<MakePost> {
|
2022-07-03 14:56:41 +00:00
|
|
|
@override
|
|
|
|
Widget build(BuildContext context) {
|
2022-08-29 13:37:34 +00:00
|
|
|
return SimpleDialog(
|
|
|
|
alignment: Alignment.center,
|
|
|
|
title: SelectableText(
|
|
|
|
textAlign: TextAlign.center,
|
|
|
|
widget.inReplyTo == null ? "make-post".i18n() : "make-reply".i18n(),
|
|
|
|
style: Theme.of(context).textTheme.displayMedium),
|
|
|
|
children: [],
|
2022-07-03 14:56:41 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|