mod: 个人主页隐藏背景图

This commit is contained in:
guozhigq
2023-09-27 22:22:23 +08:00
parent 7be8ebaa7e
commit 6b3773a074

View File

@ -147,34 +147,34 @@ class _MemberPageState extends State<MemberPage>
flexibleSpace: FlexibleSpaceBar(
background: Stack(
children: [
if (_memberController.face != null)
Positioned.fill(
bottom: 10,
child: Container(
decoration: BoxDecoration(
image: DecorationImage(
fit: BoxFit.fitWidth,
image: NetworkImage(_memberController.face!),
alignment: Alignment.topCenter,
isAntiAlias: true,
),
),
foregroundDecoration: BoxDecoration(
gradient: LinearGradient(
colors: [
Theme.of(context)
.colorScheme
.background
.withOpacity(0.44),
Theme.of(context).colorScheme.background,
],
begin: Alignment.topCenter,
end: Alignment.bottomCenter,
stops: const [0.0, 0.46],
),
),
),
),
// if (_memberController.face != null)
// Positioned.fill(
// bottom: 10,
// child: Container(
// decoration: BoxDecoration(
// image: DecorationImage(
// fit: BoxFit.fitWidth,
// image: NetworkImage(_memberController.face!),
// alignment: Alignment.topCenter,
// isAntiAlias: true,
// ),
// ),
// foregroundDecoration: BoxDecoration(
// gradient: LinearGradient(
// colors: [
// Theme.of(context)
// .colorScheme
// .background
// .withOpacity(0.44),
// Theme.of(context).colorScheme.background,
// ],
// begin: Alignment.topCenter,
// end: Alignment.bottomCenter,
// stops: const [0.0, 0.46],
// ),
// ),
// ),
// ),
Positioned(
left: 0,
right: 0,