add show for bottom safearea in detailed file view

This commit is contained in:
Neeraj Gupta 2022-06-13 12:07:48 +05:30
parent 956a3cbfb5
commit c0f0c25743
No known key found for this signature in database
GPG key ID: 3C5A1684DC1729E1

View file

@ -151,32 +151,34 @@ class FadingBottomBarState extends State<FadingBottomBar> {
),
);
}
return SafeArea(
child: AnimatedOpacity(
child: Align(
alignment: Alignment.bottomCenter,
child: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Colors.transparent,
Colors.black.withOpacity(0.6),
Colors.black.withOpacity(0.72),
],
stops: const [0, 0.8, 1],
),
var safeAreaBottomPadding = MediaQuery.of(context).padding.bottom * .5;
return AnimatedOpacity(
child: Align(
alignment: Alignment.bottomCenter,
child: Container(
decoration: BoxDecoration(
gradient: LinearGradient(
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
colors: [
Colors.transparent,
Colors.black.withOpacity(0.6),
Colors.black.withOpacity(0.72),
],
stops: const [0, 0.8, 1],
),
),
child: Padding(
padding: EdgeInsets.only(bottom: safeAreaBottomPadding),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceAround,
children: children,
),
),
),
opacity: _shouldHide ? 0 : 1,
duration: Duration(milliseconds: 150),
),
opacity: _shouldHide ? 0 : 1,
duration: Duration(milliseconds: 150),
);
}