refactor: 重构弹窗组件支持自定义图标组件

This commit is contained in:
qzl
2026-04-07 12:30:12 +08:00
parent 8a18b3528b
commit f904286ba7
10 changed files with 72 additions and 49 deletions
+22
View File
@@ -0,0 +1,22 @@
import 'package:flutter/material.dart';
class GuaIcon extends StatelessWidget {
const GuaIcon({super.key, this.color, this.size = 20});
final Color? color;
final double size;
@override
Widget build(BuildContext context) {
final effectiveColor =
color ?? Theme.of(context).colorScheme.onPrimaryContainer;
return Text(
'',
style: TextStyle(
fontSize: size * 0.85,
fontWeight: FontWeight.w700,
color: effectiveColor,
),
);
}
}