🐛 Fix bugs
This commit is contained in:
@@ -20,6 +20,7 @@ class ArticleDetailScreen extends ConsumerWidget {
|
|||||||
final articleAsync = ref.watch(articleDetailProvider(articleId));
|
final articleAsync = ref.watch(articleDetailProvider(articleId));
|
||||||
|
|
||||||
return AppScaffold(
|
return AppScaffold(
|
||||||
|
isNoBackground: false,
|
||||||
body: articleAsync.when(
|
body: articleAsync.when(
|
||||||
data:
|
data:
|
||||||
(article) => AppScaffold(
|
(article) => AppScaffold(
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
import 'package:flutter/material.dart';
|
import 'package:flutter/material.dart';
|
||||||
|
import 'package:gap/gap.dart';
|
||||||
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
||||||
import 'package:island/models/post.dart';
|
import 'package:island/models/post.dart';
|
||||||
import 'package:island/pods/userinfo.dart';
|
import 'package:island/pods/userinfo.dart';
|
||||||
@@ -19,35 +20,37 @@ class PostRepliesSheet extends HookConsumerWidget {
|
|||||||
|
|
||||||
return SheetScaffold(
|
return SheetScaffold(
|
||||||
titleText: 'repliesCount'.plural(post.repliesCount),
|
titleText: 'repliesCount'.plural(post.repliesCount),
|
||||||
child: Column(
|
child: Stack(
|
||||||
children: [
|
children: [
|
||||||
// Replies list
|
CustomScrollView(
|
||||||
Expanded(
|
slivers: [
|
||||||
child: CustomScrollView(
|
PostRepliesList(
|
||||||
slivers: [
|
postId: post.id.toString(),
|
||||||
PostRepliesList(
|
onOpen: () {
|
||||||
postId: post.id.toString(),
|
Navigator.pop(context);
|
||||||
onOpen: () {
|
},
|
||||||
Navigator.pop(context);
|
),
|
||||||
},
|
SliverGap(80),
|
||||||
),
|
],
|
||||||
],
|
|
||||||
),
|
|
||||||
),
|
),
|
||||||
// Quick reply section
|
|
||||||
if (user.value != null)
|
if (user.value != null)
|
||||||
PostQuickReply(
|
Positioned(
|
||||||
parent: post,
|
bottom: 0,
|
||||||
onPosted: () {
|
left: 0,
|
||||||
ref.invalidate(postRepliesNotifierProvider(post.id));
|
right: 0,
|
||||||
},
|
child: PostQuickReply(
|
||||||
onLaunch: () {
|
parent: post,
|
||||||
Navigator.of(context).pop();
|
onPosted: () {
|
||||||
},
|
ref.invalidate(postRepliesNotifierProvider(post.id));
|
||||||
).padding(
|
},
|
||||||
bottom: MediaQuery.of(context).padding.bottom + 16,
|
onLaunch: () {
|
||||||
top: 8,
|
Navigator.of(context).pop();
|
||||||
horizontal: 16,
|
},
|
||||||
|
).padding(
|
||||||
|
bottom: MediaQuery.of(context).padding.bottom + 16,
|
||||||
|
top: 8,
|
||||||
|
horizontal: 16,
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
),
|
),
|
||||||
|
Reference in New Issue
Block a user