🐛 Fix several known bugs
This commit is contained in:
@ -122,6 +122,7 @@ class _CommentEditorScreenState extends State<CommentEditorScreen> {
|
||||
|
||||
return IndentScaffold(
|
||||
hideDrawer: true,
|
||||
showSafeArea: true,
|
||||
title: AppLocalizations.of(context)!.newComment,
|
||||
appBarActions: <Widget>[
|
||||
TextButton(
|
||||
@ -129,7 +130,7 @@ class _CommentEditorScreenState extends State<CommentEditorScreen> {
|
||||
child: Text(AppLocalizations.of(context)!.postVerb.toUpperCase()),
|
||||
),
|
||||
],
|
||||
child: Column(
|
||||
body: Column(
|
||||
children: [
|
||||
_isSubmitting
|
||||
? const LinearProgressIndicator().animate().scaleX()
|
||||
|
@ -55,6 +55,7 @@ class _MomentEditorScreenState extends State<MomentEditorScreen> {
|
||||
final uri = widget.editing == null
|
||||
? getRequestUri('interactive', '/api/p/moments')
|
||||
: getRequestUri('interactive', '/api/p/moments/${widget.editing!.id}');
|
||||
print(uri);
|
||||
|
||||
final req = Request(widget.editing == null ? 'POST' : 'PUT', uri);
|
||||
req.headers['Content-Type'] = 'application/json';
|
||||
@ -113,6 +114,7 @@ class _MomentEditorScreenState extends State<MomentEditorScreen> {
|
||||
);
|
||||
|
||||
return IndentScaffold(
|
||||
showSafeArea: true,
|
||||
hideDrawer: true,
|
||||
title: AppLocalizations.of(context)!.newMoment,
|
||||
appBarActions: <Widget>[
|
||||
@ -121,7 +123,7 @@ class _MomentEditorScreenState extends State<MomentEditorScreen> {
|
||||
child: Text(AppLocalizations.of(context)!.postVerb.toUpperCase()),
|
||||
),
|
||||
],
|
||||
child: Column(
|
||||
body: Column(
|
||||
children: [
|
||||
_isSubmitting ? const LinearProgressIndicator().animate().scaleX() : Container(),
|
||||
FutureBuilder(
|
||||
|
@ -21,9 +21,8 @@ class PostScreen extends StatelessWidget {
|
||||
Widget build(BuildContext context) {
|
||||
return IndentScaffold(
|
||||
title: AppLocalizations.of(context)!.post,
|
||||
noSafeArea: true,
|
||||
hideDrawer: true,
|
||||
child: PostScreenWidget(
|
||||
body: PostScreenWidget(
|
||||
dataset: dataset,
|
||||
alias: alias,
|
||||
),
|
||||
|
Reference in New Issue
Block a user