feat(apps): 新增 ErrorRetrySurface 和 FullScreenLoading 通用组件

This commit is contained in:
zl-q
2026-03-19 00:51:56 +08:00
parent 82a7d594bd
commit bfc3096199
2 changed files with 57 additions and 0 deletions
@@ -0,0 +1,18 @@
import 'package:flutter/material.dart';
import 'app_loading_indicator.dart';
class FullScreenLoading extends StatelessWidget {
const FullScreenLoading({super.key, this.safeArea = false});
final bool safeArea;
@override
Widget build(BuildContext context) {
final content = const Center(child: AppLoadingIndicator(size: 22));
if (!safeArea) {
return content;
}
return const SafeArea(child: Center(child: AppLoadingIndicator(size: 22)));
}
}