1
1
import 'package:flutter/material.dart' ;
2
+ import 'package:flutter/scheduler.dart' ;
2
3
import 'package:flutter/services.dart' ;
3
4
import 'package:intl/intl.dart' ;
4
5
@@ -132,6 +133,8 @@ class _LightboxPageState extends State<LightboxPage> {
132
133
final appBarBackgroundColor = Colors .grey.shade900.withOpacity (0.87 );
133
134
const appBarForegroundColor = Colors .white;
134
135
136
+ timeDilation = 20 ;
137
+
135
138
// TODO(#45): Format with e.g. "Yesterday at 4:47 PM"
136
139
final timestampText = DateFormat
137
140
.yMMMd (/* TODO(i18n): Pass selected language here, I think? */ )
@@ -143,14 +146,15 @@ class _LightboxPageState extends State<LightboxPage> {
143
146
child: AnimatedContainer (
144
147
duration: const Duration (milliseconds: 100 ),
145
148
curve: Curves .easeIn,
146
- height: _headerFooterVisible ? AppBar .preferredHeightFor (context,
147
- MediaQuery .of (context).size)
149
+ height: _headerFooterVisible ? AppBar .preferredHeightFor (
150
+ context,
151
+ Size (0 , MediaQuery .of (context).padding.top + kToolbarHeight)
152
+ )
148
153
: 0 ,
149
154
child: AppBar (
150
155
centerTitle: false ,
151
156
foregroundColor: appBarForegroundColor,
152
157
backgroundColor: appBarBackgroundColor,
153
-
154
158
// TODO(#41): Show message author's avatar
155
159
title: RichText (
156
160
text: TextSpan (children: [
0 commit comments