💄 Optimize article compose

This commit is contained in:
2025-07-31 02:32:03 +08:00
parent fd186f8391
commit ba709012d7
4 changed files with 297 additions and 284 deletions

View File

@@ -169,16 +169,27 @@ class ExploreScreen extends HookConsumerWidget {
),
),
),
floatingActionButton: FloatingActionButton(
heroTag: Key("explore-page-fab"),
onPressed: () {
context.pushNamed('postCompose').then((value) {
if (value != null) {
activitiesNotifier.forceRefresh();
}
});
floatingActionButton: InkWell(
onLongPress: () {
context.pushNamed('postCompose', queryParameters: {'type': '1'}).then(
(value) {
if (value != null) {
activitiesNotifier.forceRefresh();
}
},
);
},
child: const Icon(Symbols.edit),
child: FloatingActionButton(
heroTag: Key("explore-page-fab"),
onPressed: () {
context.pushNamed('postCompose').then((value) {
if (value != null) {
activitiesNotifier.forceRefresh();
}
});
},
child: const Icon(Symbols.edit),
),
),
floatingActionButtonLocation: TabbedFabLocation(context),
body: Builder(