nightingale_icons 0.0.2 copy "nightingale_icons: ^0.0.2" to clipboard
nightingale_icons: ^0.0.2 copied to clipboard

Nightingale icons is from Strange icons Sandow icon pack with over 500 regular icons in monotone and solid styles.

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:nightingale_icons/nightingale_icons.dart';

void main() {
  runApp(const MainApp());
}

class MainApp extends StatelessWidget {
  const MainApp({super.key});

  static final icons = [
    IconModel(icon: NightingaleSolidIcons.backspace, name: 'Solid Backspace'),
    IconModel(icon: NightingaleMonotoneIcons.micDisabled, name: 'Monotone Mic disabled'),
    IconModel(icon: NightingaleSolidIcons.activityHiking, name: 'Solid Activity hiking'),
    IconModel(icon: NightingaleMonotoneIcons.moon, name: 'Monotone Moon'),
    IconModel(icon: NightingaleSolidIcons.anatomyHeartbeat, name: 'Solid Anatomy heartbeat'),
    IconModel(icon: NightingaleMonotoneIcons.activityWalking, name: 'Monotone Activity walking'),
    IconModel(icon: NightingaleSolidIcons.magic, name: 'Solid Magic'),
    IconModel(icon: NightingaleMonotoneIcons.drag, name: 'Monotone Drag'),
    IconModel(icon: NightingaleSolidIcons.cart, name: 'Solid Cart'),
    IconModel(icon: NightingaleMonotoneIcons.babyToddlerFace, name: 'Monotone Baby toddler face'),
  ];

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        appBar: AppBar(
          centerTitle: false,
          backgroundColor: Theme.of(context).colorScheme.inversePrimary,
          title: Text('Nightingale Icons Demo'),
        ),
        body: GridView.builder(
          itemCount: icons.length,
          gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 2, crossAxisSpacing: 8),
          itemBuilder: (BuildContext context, int index) {
            return Card(
              child: Column(
                mainAxisAlignment: MainAxisAlignment.center,
                children: <Widget>[
                  Icon(icons[index].icon, size: 50.0),
                  const SizedBox(height: 30.0),
                  Text(icons[index].name, textAlign: TextAlign.center),
                ],
              ),
            );
          },
        ),
      ),
    );
  }
}

/// A class that represents an Icon object
class IconModel {
  final IconData icon;
  final String name;

  const IconModel({required this.icon, required this.name});
}
0
likes
150
points
13
downloads
screenshot

Publisher

unverified uploader

Weekly Downloads

Nightingale icons is from Strange icons Sandow icon pack with over 500 regular icons in monotone and solid styles.

Repository (GitHub)
View/report issues

Topics

#icon-packs #icons #nightingale-icons #strange-icons

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on nightingale_icons