opt: dyn author panel

Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
bggRGjQaUbCoE
2025-04-30 10:20:26 +08:00
parent f8caa46eab
commit 17a75da540

View File

@@ -286,17 +286,20 @@ class _DynamicDetailPageState extends State<DynamicDetailPage>
return Scaffold( return Scaffold(
resizeToAvoidBottomInset: false, resizeToAvoidBottomInset: false,
appBar: AppBar( appBar: AppBar(
title: Obx( title: Padding(
() { padding: const EdgeInsets.only(right: 12),
return AnimatedOpacity( child: Obx(
opacity: _visibleTitle.value ? 1 : 0, () {
duration: const Duration(milliseconds: 300), return AnimatedOpacity(
child: AuthorPanel( opacity: _visibleTitle.value ? 1 : 0,
item: _dynamicDetailController.item, duration: const Duration(milliseconds: 300),
source: 'detail', //to remove tag child: AuthorPanel(
), item: _dynamicDetailController.item,
); source: 'detail', //to remove tag
}, ),
);
},
),
), ),
actions: context.orientation == Orientation.landscape actions: context.orientation == Orientation.landscape
? [ ? [