mirror of
https://github.com/londonappbrewery/Flutter-Course-Resources/
synced 2024-11-15 05:44:55 +00:00
30 lines
580 B
Dart
30 lines
580 B
Dart
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,
|
|
)
|
|
],
|
|
);
|
|
}
|
|
}
|