Hide app bar on the detail page
This commit is contained in:
parent
33da12c857
commit
40c2218285
1 changed files with 10 additions and 0 deletions
|
@ -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,
|
||||
);
|
||||
},
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue