nc-photos/app/lib/widget/asset_icon.dart

24 lines
401 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class AssetIcon extends StatelessWidget {
const AssetIcon(
this.assetName, {
super.key,
this.size,
this.color,
});
@override
Widget build(BuildContext context) {
return ImageIcon(
AssetImage(assetName),
size: size,
color: color,
);
}
final String assetName;
final double? size;
final Color? color;
}