unicons 3.0.0 copy "unicons: ^3.0.0" to clipboard
unicons: ^3.0.0 copied to clipboard

1000+ beautiful icons to use in you dream project, with all the customization Flutter provides

example/lib/main.dart

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

void main() => runApp(const UniconsExample());

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

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      theme: ThemeData(
        scaffoldBackgroundColor: Colors.white,
        appBarTheme: const AppBarTheme(
          backgroundColor: Color(0xFF6666FF),
          foregroundColor: Colors.white,
        ),
        colorScheme: const ColorScheme.light(
          primary: Color(0xFF6666FF),
        ),
      ),
      debugShowCheckedModeBanner: false,
      title: 'Unicons App',
      home: const IconsPage(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: const Text('Unicons Line (Custom Painter)'),
        centerTitle: true,
      ),
      body: GridView.builder(
        padding: const EdgeInsets.symmetric(horizontal: 15.0, vertical: 30.0),
        shrinkWrap: true,
        itemCount: uniconsLine.length,
        gridDelegate:
            const SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 6),
        itemBuilder: (context, index) {
          final icon = uniconsLine[index];
          return Padding(padding: const EdgeInsets.all(8), child: icon);
        },
      ),
    );
  }
}

const uniconsLine = [
  AppsIcon(),
  CogIcon(),
  UserIcon(),
  ScheduleIcon(),
  PhoneVolumeIcon(),
  TrophyIcon(),
  EditIcon(),
  BedIcon(),
  BasketballHoopIcon(),
  AirplayIcon(),
  HeartbeatIcon(),
  SuitcaseIcon(),
  CommentExclamationIcon(),
  PadlockIcon(),
  UsdCircleIcon(),
  MapPinIcon(),
  ImageEditIcon(),
  MoneyStackIcon(),
  FileAltIcon(),
  BusAltIcon(),
  BookOpenIcon(),
  CreditCardIcon(),
  GrinIcon(),
  NewspaperIcon(),
  AccessibleIconAltIcon(),
  CalculatorAltIcon(),
  UnlockAltIcon(),
  SearchAltIcon(),
  PackageIcon(),
  TabletIcon(),
  EnglishToChineseIcon(),
  BarsIcon(),
  BatteryEmptyIcon(),
  AndroidAltIcon(),
  HomeIcon(),
  ScrollIcon(),
  CarIcon(),
  PaperclipIcon(),
  UniversityIcon(),
  MedalIcon(),
  ImageUploadIcon(),
  MarsIcon(),
  FahrenheitIcon(),
  BillIcon(),
  BitcoinCircleIcon(),
  CameraIcon(),
  GoldIcon(),
  NinjaIcon(),
];
180
likes
150
points
9.27k
downloads

Publisher

unverified uploader

Weekly Downloads

1000+ beautiful icons to use in you dream project, with all the customization Flutter provides

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on unicons