mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 16:56:19 +01:00
23 lines
401 B
Dart
23 lines
401 B
Dart
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;
|
|
}
|