mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
opt: member info
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -133,32 +133,9 @@ class _DynamicSliverAppBarState extends State<DynamicSliverAppBar> {
|
|||||||
}
|
}
|
||||||
if (_height == 0) {
|
if (_height == 0) {
|
||||||
return SliverToBoxAdapter(
|
return SliverToBoxAdapter(
|
||||||
child: Stack(
|
child: Container(
|
||||||
children: [
|
key: _childKey,
|
||||||
Padding(
|
child: widget.flexibleSpace ?? SizedBox(height: kToolbarHeight),
|
||||||
// Padding which centers the flexible space within the app bar
|
|
||||||
padding: EdgeInsets.symmetric(
|
|
||||||
vertical: MediaQuery.paddingOf(context).top / 2),
|
|
||||||
child: Container(
|
|
||||||
key: _childKey,
|
|
||||||
child:
|
|
||||||
widget.flexibleSpace ?? SizedBox(height: kToolbarHeight)),
|
|
||||||
),
|
|
||||||
Positioned.fill(
|
|
||||||
// 10 is the magic number which the app bar is pushed down within the sliver app bar. Couldnt find exactly where this number
|
|
||||||
// comes from and found it through trial and error.
|
|
||||||
top: 10,
|
|
||||||
child: Align(
|
|
||||||
alignment: Alignment.topCenter,
|
|
||||||
child: AppBar(
|
|
||||||
backgroundColor: Colors.transparent,
|
|
||||||
elevation: 0,
|
|
||||||
leading: widget.leading,
|
|
||||||
actions: widget.actions,
|
|
||||||
),
|
|
||||||
),
|
|
||||||
)
|
|
||||||
],
|
|
||||||
),
|
),
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -229,7 +229,7 @@ class UserInfoCard extends StatelessWidget {
|
|||||||
Padding(
|
Padding(
|
||||||
padding: const EdgeInsets.only(left: 20, top: 6, right: 20),
|
padding: const EdgeInsets.only(left: 20, top: 6, right: 20),
|
||||||
child: Wrap(
|
child: Wrap(
|
||||||
spacing: 5,
|
spacing: 8,
|
||||||
runSpacing: 8,
|
runSpacing: 8,
|
||||||
crossAxisAlignment: WrapCrossAlignment.end,
|
crossAxisAlignment: WrapCrossAlignment.end,
|
||||||
children: [
|
children: [
|
||||||
|
|||||||
Reference in New Issue
Block a user