Create questions & display questions

This commit is contained in:
2025-02-08 01:35:27 +08:00
parent fe028860e9
commit 1aa70827dc
7 changed files with 183 additions and 34 deletions

View File

@ -166,6 +166,27 @@ class _ExploreScreenState extends State<ExploreScreen> {
),
],
),
Row(
children: [
Text('writePostTypeQuestion').tr(),
const Gap(20),
FloatingActionButton(
heroTag: null,
tooltip: 'writePostTypeQuestion'.tr(),
onPressed: () {
GoRouter.of(context).pushNamed('postEditor', pathParameters: {
'mode': 'questions',
}).then((value) {
if (value == true) {
_refreshPosts();
}
});
_fabKey.currentState!.toggle();
},
child: const Icon(Symbols.question_answer),
),
],
),
],
),
body: RefreshIndicator(