Hide app bar on the detail page

This commit is contained in:
Vishnu Mohandas 2020-06-21 03:07:44 +05:30
parent 33da12c857
commit 40c2218285

View file

@ -45,6 +45,7 @@ class _DetailPageState extends State<DetailPage> {
" files .");
return Scaffold(
appBar: _buildAppBar(),
extendBodyBehindAppBar: true,
body: Center(
child: Container(
child: _buildPageView(),
@ -160,6 +161,8 @@ class _DetailPageState extends State<DetailPage> {
));
return AppBar(
actions: actions,
backgroundColor: Color(0x00000000),
elevation: 0,
);
}
@ -170,6 +173,13 @@ class _DetailPageState extends State<DetailPage> {
onTap: (oldValue) {
return FavoriteFilesRepository.instance.setLiked(file, !oldValue);
},
likeBuilder: (isLiked) {
return Icon(
Icons.favorite_border,
color: isLiked ? Colors.pinkAccent : Colors.white,
size: 30,
);
},
);
}