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

Flutter plugin for awesome icons.

example/lib/main.dart

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

void main() => runApp(MyApp());

class MyApp extends StatelessWidget {
  const MyApp({Key? key}) : super(key: key);
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: MyHomePage(title: 'Ico Demo Home Page'),
    );
  }
}

class MyHomePage extends StatefulWidget {
  MyHomePage({Key? key, required this.title}) : super(key: key);
  final String title;

  @override
  _MyHomePageState createState() => _MyHomePageState();
}

class _MyHomePageState extends State<MyHomePage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        title: Text(widget.title),
      ),
      body: Center(
        child: Column(
          mainAxisSize: MainAxisSize.min,
          children: [
            // Using Ico the standard way: injecting the IconData into the Icon object
            Icon(Ico.gamepad_filled),
            Icon(Ico.printer_filled),
            Icon(Ico.microphone_outline),
          ],
        ),
      ),
    );
  }
}
12
likes
140
points
18
downloads

Publisher

unverified uploader

Weekly Downloads

Flutter plugin for awesome icons.

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on ico