Flutter-Course-Resources/BMI-Calculator-Flutter/lib/components/icon_content.dart

30 lines
580 B
Dart
Raw Normal View History

2022-06-19 10:07:52 +00:00
import 'package:flutter/material.dart';
import 'package:bmi_calculator/constants.dart';
class IconContent extends StatelessWidget {
IconContent({this.icon, this.label});
final IconData icon;
final String label;
@override
Widget build(BuildContext context) {
return Column(
mainAxisAlignment: MainAxisAlignment.center,
children: <Widget>[
Icon(
icon,
size: 80.0,
),
SizedBox(
height: 15.0,
),
Text(
label,
style: kLabelTextStyle,
)
],
);
}
}