healthicons_flutter 3.5.0
healthicons_flutter: ^3.5.0 copied to clipboard
Flutter library for healthicons.
Healthicons - Flutter #
This package provides a simple and easy-to-use interface for accessing all the healthicons within your Flutter projects. You can see the full list of icons at healthicons
healthicons_flutter
is an open source package that exports these icons as Flutter widgets (flutter_svg
) that can be used in all of your Flutter projects.
Installation #
flutter pub add healthicons_flutter
Usage #
import 'package:flutter/material.dart';
import 'package:healthicons_flutter/healthicons_flutter.dart';
void main() {
runApp(const App());
}
class App extends StatelessWidget {
const App({ super.key });
@override
Widget build(BuildContext context) {
return const MaterialApp(
home: DemoPage(),
);
}
}
class DemoPage extends StatelessWidget {
const DemoPage({ super.key });
@override
Widget build(BuildContext context) {
return Scaffold(
body: Container(
child: const healthicons(),
),
);
}
}
Default values for the most common props are given below:
Prop name | Default value |
---|---|
color | "currentColor" |
width | "1.5em" |
height | "1.5em" |
Icon names #
The Flutter widges are named as PascalCase variations of their reference names (i.e. ui_menu_grid
becomes UiMenuGrid
).