health_icons 0.0.2
health_icons: ^0.0.2 copied to clipboard
A Flutter package for health icons as Static font.
import 'package:flutter/material.dart';
import 'package:health_icons/health_icons.dart';
void main() {
runApp(MyApp());
}
class MyApp extends StatelessWidget {
@override
Widget build(BuildContext context) {
return MaterialApp(
home: Scaffold(
appBar: AppBar(title: Text('HealthIcons Demo')),
body: Center(
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
// Example 1: Basic Heart Icon
Icon(
HealthIcons.heartFilled, //Pass IconData to Icon widget
size: 60.0,
color: Colors.red,
),
Icon(
HealthIcons.heartFilled, //Pass IconData to Icon widget
size: 60.0,
color: Colors.red,
),
SizedBox(height: 20),
// Example 2: Medical Advice Icon
Icon(
HealthIcons.medicalAdviceFilled,
size: 50.0,
color: Colors.blue,
),
SizedBox(height: 20),
// Example 2: Blood type A+ Icon
Icon(HealthIcons.bloodAPFilled, size: 50.0, color: Colors.blue),
SizedBox(height: 20),
// Example 4: Rx (Prescription) Icon
Icon(HealthIcons.rxOutline, size: 45.0, color: Colors.green),
SizedBox(height: 20),
// You can find a comprehensive list of all available icons
// by Browse the `lib/health_icons.dart` file in the package,
// or by referring to the healthicons.org website for icon names.
Text('Explore more health icons!'),
],
),
),
),
);
}
}