Signed-off-by: dom <githubaccount56556@proton.me>
This commit is contained in:
dom
2026-05-14 12:13:17 +08:00
parent 025775d231
commit 09be4f45f0
78 changed files with 428 additions and 849 deletions

View File

@@ -1,6 +1,20 @@
import 'package:flutter/material.dart';
Widget scaffold({
required Widget appBar,
required Widget body,
}) {
return Material(
child: Column(
children: [
appBar,
Expanded(child: body),
],
),
);
}
Widget scaffold_({
Widget? appBar,
required Widget body,
}) {

View File

@@ -17,6 +17,7 @@
import 'dart:math' as math;
import 'package:PiliPlus/utils/platform_utils.dart';
import 'package:flutter/foundation.dart' show clampDouble;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart'
@@ -36,9 +37,15 @@ class SliverFloatingHeaderWidget extends StatelessWidget {
@override
Widget build(BuildContext context) {
if (PlatformUtils.isDesktop) {
return _SliverFloatingHeaderWidget(
backgroundColor: backgroundColor,
child: _SliverFloatingHeaderScroll(child: child),
);
}
return _SliverFloatingHeaderWidget(
backgroundColor: backgroundColor,
child: _SliverFloatingHeaderScroll(child: child),
child: child,
);
}
}