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