1
0
Fork 0
mirror of https://gitlab.com/nkming2/nc-photos.git synced 2025-03-28 01:41:35 +01:00
nc-photos/app/lib/widget/png_icon.dart

18 lines
317 B
Dart
Raw Normal View History

import 'package:flutter/material.dart';
class PngIcon extends StatelessWidget {
const PngIcon(
this.asset, {
super.key,
this.size = 24,
});
@override
Widget build(BuildContext context) {
return Image.asset(asset, width: size, height: size);
}
final String asset;
final double size;
}