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