Skip to content

Commit c7c3b1f

Browse files
committed
Sync lightbox AppBar and BottomAppBar animation
1 parent 79b6647 commit c7c3b1f

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

Diff for: lib/widgets/lightbox.dart

+5-3
Original file line numberDiff line numberDiff line change
@@ -143,14 +143,16 @@ class _LightboxPageState extends State<LightboxPage> {
143143
child: AnimatedContainer(
144144
duration: const Duration(milliseconds: 100),
145145
curve: Curves.easeIn,
146-
height: _headerFooterVisible ? AppBar.preferredHeightFor(context,
147-
MediaQuery.of(context).size)
146+
height: _headerFooterVisible ? AppBar.preferredHeightFor(
147+
context,
148+
Size(0, MediaQuery.of(context).padding.top + kToolbarHeight)
149+
)
148150
: 0,
149151
child: AppBar(
150152
centerTitle: false,
151153
foregroundColor: appBarForegroundColor,
152154
backgroundColor: appBarBackgroundColor,
153-
155+
154156
// TODO(#41): Show message author's avatar
155157
title: RichText(
156158
text: TextSpan(children: [

0 commit comments

Comments
 (0)