kawsay_icons 0.5.0 kawsay_icons: ^0.5.0 copied to clipboard
Customized icons focused on the health and medical sector
Kawsay Icons #
Kawsay Icons is a Flutter package that provides a collection of customized icons focused on the health and medical sector. This package is easy to use and integrates seamlessly into your Flutter applications.
Installation #
To use Kawsay Icons in your Flutter project, add the following dependency to your pubspec.yaml
file:
dependencies:
flutter:
sdk: flutter
kawsay_icons: ^0.5.0
Then, run the following command to install the dependency:
flutter pub get
Usage #
Once you have installed the package, you can use the icons in your application. Here’s a basic example of how to implement an icon grid:
import 'package:flutter/material.dart';
import 'package:kawsay_icons/kawsay_icons.dart';
class IconGrid extends StatelessWidget {
const IconGrid({super.key});
@override
Widget build(BuildContext context) {
final Map<IconData, String> iconMap = {
KawsayIcons.chatQuestion: 'Chat Question',
KawsayIcons.clinicalNotes: 'Clinical Notes',
KawsayIcons.dashboard: 'Dashboard',
KawsayIcons.doctor: 'Doctor',
KawsayIcons.home: 'Home',
KawsayIcons.likeDislike: 'Like/Dislike',
KawsayIcons.microscope: 'Microscope',
KawsayIcons.nurse: 'Nurse',
KawsayIcons.peopleQueue: 'People Queue',
KawsayIcons.pharmacy: 'Pharmacy',
KawsayIcons.reportFinance: 'Report Finance',
KawsayIcons.survey: 'Survey',
KawsayIcons.ticket: 'Ticket',
KawsayIcons.user: 'User',
};
return Scaffold(
appBar: AppBar(
title: const Text('Kawsay Icons'),
),
body: GridView.builder(
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 4,
childAspectRatio: 1.0,
),
itemCount: iconMap.length,
itemBuilder: (context, index) {
final iconData = iconMap.keys.elementAt(index);
final iconName = iconMap[iconData];
return Card(
margin: const EdgeInsets.all(8.0),
child: Column(
mainAxisAlignment: MainAxisAlignment.center,
children: [
Icon(
iconData,
size: 64.0,
color: Colors.blue,
),
const SizedBox(height: 8.0),
Text(
iconName ?? 'Icon',
style: const TextStyle(fontSize: 12.0),
textAlign: TextAlign.center,
),
],
),
);
},
),
);
}
}
Contributions #
Contributions are welcome! If you would like to contribute to this project, please open an issue or submit a pull request.
License #
This project is licensed under the MIT License. For more details, please refer to the LICENSE file.
Contact #
If you have any questions or suggestions, feel free to reach out to me through GitLab.