mirror of
https://github.com/openfoodfacts/smooth-app.git
synced 2025-08-06 18:25:11 +08:00
16 lines
430 B
Dart
16 lines
430 B
Dart
import 'package:flutter/material.dart';
|
|
import 'package:smooth_app/cards/category_cards/svg_cache.dart';
|
|
|
|
class SvgIconChip extends StatelessWidget {
|
|
const SvgIconChip(this.iconUrl, {required this.height});
|
|
|
|
final String iconUrl;
|
|
final double height;
|
|
|
|
@override
|
|
Widget build(BuildContext context) => ConstrainedBox(
|
|
constraints: BoxConstraints(minWidth: height),
|
|
child: SvgCache(iconUrl, height: height),
|
|
);
|
|
}
|