iconoir_flutter 7.7.0 copy "iconoir_flutter: ^7.7.0" to clipboard
iconoir_flutter: ^7.7.0 copied to clipboard

Flutter library for Iconoir, the biggest open source icon library with tons of free icons.

example/lib/main.dart

import 'dart:math';

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

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

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

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        body: Center(child: _InteractiveIcon()),
      ),
    );
  }
}

class _InteractiveIcon extends StatefulWidget {
  const _InteractiveIcon();

  @override
  State<_InteractiveIcon> createState() => _InteractiveIconState();
}

class _InteractiveIconState extends State<_InteractiveIcon> {
  Color? color;
  @override
  Widget build(BuildContext context) {
    return GestureDetector(
      onTap: _changeColor,
      child: Iconoir(
        color: color,
      ),
    );
  }

  void _changeColor() {
    setState(() {
      color = Colors.primaries[Random().nextInt(Colors.primaries.length)];
    });
  }
}
10
likes
120
pub points
84%
popularity

Publisher

verified publishericonoir.com

Flutter library for Iconoir, the biggest open source icon library with tons of free icons.

Homepage
Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

Funding

Consider supporting this project:

opencollective.com

License

MIT (LICENSE)

Dependencies

flutter, flutter_svg

More

Packages that depend on iconoir_flutter