Commit edfaeed2 authored by Wilko Manger's avatar Wilko Manger

Don't use a Stack for hiding behind AppBar

parent 36ce8fdf
......@@ -71,35 +71,27 @@ class _ImagePageState extends State<ImagePage> {
Widget build(BuildContext context) {
return Scaffold(
backgroundColor: Colors.black,
body: Stack(
children: <Widget>[
_buildPhotoViewList(),
Positioned(
top: 0,
left: 0,
right: 0,
child: AppBar(
title: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(_current.sender.name),
SizedBox(height: 2),
Text(
'${formatAsDate(context, _current.event.time)},'
' ${formatAsTime(_current.event.time)}',
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(color: Colors.white),
),
],
),
backgroundColor: Color(0x64000000),
extendBodyBehindAppBar: true,
appBar: AppBar(
title: Column(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Text(_current.sender.name),
SizedBox(height: 2),
Text(
'${formatAsDate(context, _current.event.time)},'
' ${formatAsTime(_current.event.time)}',
style: Theme.of(context)
.textTheme
.bodyText2
.copyWith(color: Colors.white),
),
)
],
],
),
backgroundColor: Color(0x64000000),
),
body: _buildPhotoViewList(),
);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment