mirror of
https://github.com/bggRGjQaUbCoE/PiliPlus.git
synced 2026-04-20 11:08:03 +08:00
feat: sliver wrap (#1858)
* feat: sliver wrap * opt: list * update --------- Co-authored-by: dom <githubaccount56556@proton.me>
This commit is contained in:
committed by
GitHub
parent
01a74e191a
commit
c01318c066
@@ -3,17 +3,19 @@ import 'package:flutter_svg/flutter_svg.dart';
|
||||
|
||||
class HttpError extends StatelessWidget {
|
||||
const HttpError({
|
||||
super.key,
|
||||
this.isSliver = true,
|
||||
this.errMsg,
|
||||
this.onReload,
|
||||
this.btnText,
|
||||
super.key,
|
||||
this.safeArea = true,
|
||||
});
|
||||
|
||||
final bool isSliver;
|
||||
final String? errMsg;
|
||||
final VoidCallback? onReload;
|
||||
final String? btnText;
|
||||
final bool safeArea;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
@@ -57,7 +59,8 @@ class HttpError extends StatelessWidget {
|
||||
style: TextStyle(color: theme.colorScheme.primary),
|
||||
),
|
||||
),
|
||||
SizedBox(height: 40 + MediaQuery.viewPaddingOf(context).bottom),
|
||||
if (safeArea)
|
||||
SizedBox(height: 40 + MediaQuery.viewPaddingOf(context).bottom),
|
||||
],
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user