kawsay_icons 0.6.1 copy "kawsay_icons: ^0.6.1" to clipboard
kawsay_icons: ^0.6.1 copied to clipboard

Custom icons to complement popular icon sets

Kawsay Icons #

Kawsay Icons is a Flutter package that offers a collection of custom icons designed to complement the most popular icon sets. This package is user-friendly and integrates seamlessly into your Flutter applications, enhancing their visual appeal and functionality.

Image

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.6.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.

0
likes
140
points
13
downloads

Publisher

unverified uploader

Weekly Downloads

Custom icons to complement popular icon sets

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on kawsay_icons