mirror of
https://github.com/GopeedLab/gopeed.git
synced 2026-11-18 22:33:42 +00:00
feat: new ui (#1455)
This commit is contained in:
742 files changed
+59951
-5934
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import 'package:flutter/widgets.dart';
|
||||
import 'package:shadcn_flutter/shadcn_flutter.dart' as shad;
|
||||
|
||||
class ActionIconButton extends StatelessWidget {
|
||||
const ActionIconButton({super.key, required this.icon, required this.color, this.onTap});
|
||||
|
||||
final IconData icon;
|
||||
final Color color;
|
||||
final VoidCallback? onTap;
|
||||
|
||||
@override
|
||||
Widget build(BuildContext context) {
|
||||
return shad.IconButton.ghost(
|
||||
onPressed: onTap,
|
||||
density: shad.ButtonDensity.compact,
|
||||
icon: Icon(icon, color: color, size: 18),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user