logo和名称替换
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgmj/assets_tool/app_colors.dart';
|
||||
import 'package:hgmj/assets_tool/images.dart';
|
||||
import 'package:hgmj/hj_utils/screen.dart';
|
||||
import 'package:wydj/assets_tool/app_colors.dart';
|
||||
import 'package:wydj/assets_tool/images.dart';
|
||||
import 'package:wydj/hj_utils/screen.dart';
|
||||
import 'package:loading_animation_widget/loading_animation_widget.dart';
|
||||
|
||||
int logicMultiCount = 0;
|
||||
@@ -12,11 +12,13 @@ class LoadingWidget extends StatelessWidget {
|
||||
final double? height;
|
||||
final double size;
|
||||
|
||||
const LoadingWidget({super.key, this.width = 40, this.height = 20, this.size = 40});
|
||||
const LoadingWidget(
|
||||
{super.key, this.width = 40, this.height = 20, this.size = 40});
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return LoadingAnimationWidget.horizontalRotatingDots(color: Colors.white, size: size);
|
||||
return LoadingAnimationWidget.horizontalRotatingDots(
|
||||
color: Colors.white, size: size);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,7 +55,8 @@ class CErrorWidget extends StatefulWidget {
|
||||
final String? errorMsg;
|
||||
final String? errorMsg2;
|
||||
final VoidCallback? retryOnTap;
|
||||
const CErrorWidget({super.key, this.errorMsg = "什么也没有...", this.errorMsg2, this.retryOnTap});
|
||||
const CErrorWidget(
|
||||
{super.key, this.errorMsg = "什么也没有...", this.errorMsg2, this.retryOnTap});
|
||||
|
||||
@override
|
||||
State<CErrorWidget> createState() => _CErrorWidgetState();
|
||||
@@ -90,7 +93,8 @@ class _CErrorWidgetState extends State<CErrorWidget> {
|
||||
4.sizeBoxH,
|
||||
Text(
|
||||
widget.errorMsg ?? '',
|
||||
style: TextStyle(color: Colors.white.withValues(alpha: 0.6), fontSize: 12),
|
||||
style: TextStyle(
|
||||
color: Colors.white.withValues(alpha: 0.6), fontSize: 12),
|
||||
),
|
||||
if (widget.retryOnTap != null) ...[
|
||||
4.sizeBoxH,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:get/get.dart';
|
||||
import 'package:hgmj/assets_tool/app_colors.dart';
|
||||
import 'package:hgmj/hj_utils/screen.dart';
|
||||
import 'package:hgmj/tools_base/loading/loading_center_widget.dart';
|
||||
import 'package:wydj/assets_tool/app_colors.dart';
|
||||
import 'package:wydj/hj_utils/screen.dart';
|
||||
import 'package:wydj/tools_base/loading/loading_center_widget.dart';
|
||||
|
||||
import '../../hj_utils/widget_util.dart';
|
||||
|
||||
@@ -20,7 +20,8 @@ class LoadingHelper {
|
||||
4.sizeBoxH,
|
||||
Text(
|
||||
msg,
|
||||
style: textStyle(16, AppColors.mainTextColor33, FontWeight.w500),
|
||||
style:
|
||||
textStyle(16, AppColors.mainTextColor33, FontWeight.w500),
|
||||
),
|
||||
]
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user