mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-05-30 23:58:13 +08:00
opt dyn topic
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -119,15 +119,17 @@ class _DynamicSliverAppBarMediumState extends State<DynamicSliverAppBarMedium> {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
Orientation? _orientation;
|
||||||
void didChangeDependencies() {
|
|
||||||
_height = 0;
|
|
||||||
_updateHeight();
|
|
||||||
super.didChangeDependencies();
|
|
||||||
}
|
|
||||||
|
|
||||||
@override
|
@override
|
||||||
Widget build(BuildContext context) {
|
Widget build(BuildContext context) {
|
||||||
|
final orientation = MediaQuery.of(context).orientation;
|
||||||
|
if (orientation != _orientation) {
|
||||||
|
_orientation = orientation;
|
||||||
|
_height = 0;
|
||||||
|
_updateHeight();
|
||||||
|
}
|
||||||
|
|
||||||
//Needed to lay out the flexibleSpace the first time, so we can calculate its intrinsic height
|
//Needed to lay out the flexibleSpace the first time, so we can calculate its intrinsic height
|
||||||
if (_height == 0) {
|
if (_height == 0) {
|
||||||
return SliverToBoxAdapter(
|
return SliverToBoxAdapter(
|
||||||
|
|||||||
Reference in New Issue
Block a user