42 lines
1.0 KiB
Dart
42 lines
1.0 KiB
Dart
import 'package:ducafe_ui_core/ducafe_ui_core.dart';
|
|
import 'package:flutter/material.dart';
|
|
import 'package:forui/forui.dart';
|
|
import 'package:get/get.dart';
|
|
|
|
import 'index.dart';
|
|
|
|
class LoadPage extends GetView<LoadController> {
|
|
const LoadPage({super.key});
|
|
|
|
final double size = 50;
|
|
|
|
// 主视图
|
|
Widget _buildView(BuildContext context) {
|
|
final theme = FTheme.of(context);
|
|
return <Widget>[
|
|
CircularProgressIndicator().width(size).height(size),
|
|
SizedBox(height: 10.h),
|
|
Text(
|
|
"加载中",
|
|
style: theme.typography.xl,
|
|
),
|
|
].toColumn(mainAxisAlignment: MainAxisAlignment.center);
|
|
}
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return GetBuilder<LoadController>(
|
|
init: LoadController(),
|
|
id: "load",
|
|
builder: (_) {
|
|
return FScaffold(
|
|
header: FHeader(title: SizedBox.shrink()),
|
|
content: _buildView(context),
|
|
contentPad: true,
|
|
resizeToAvoidBottomInset: false,
|
|
);
|
|
},
|
|
);
|
|
}
|
|
}
|