You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
521 B
Dart
23 lines
521 B
Dart
import 'package:flutter/material.dart';
|
|
|
|
class MealItemTreat extends StatelessWidget {
|
|
final IconData icon;
|
|
final String label;
|
|
const MealItemTreat({Key? key, required this.icon, required this.label})
|
|
: super(key: key);
|
|
|
|
@override
|
|
Widget build(BuildContext context) {
|
|
return Row(
|
|
children: [
|
|
Icon(icon, size: 17, color: Colors.white),
|
|
const SizedBox(width: 6),
|
|
Text(
|
|
label,
|
|
style: const TextStyle(color: Colors.white),
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|