yaru_icons 0.0.3 copy "yaru_icons: ^0.0.3" to clipboard
yaru_icons: ^0.0.3 copied to clipboard

discontinuedreplaced by: yaru
outdated

Ubuntu Yaru Icon theme

example/lib/main.dart

import 'package:yaru_icons/widgets/yaru_icons.dart';
import 'package:flutter/material.dart';

void main() {
  runApp(MyApp());
}

class MyApp extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Flutter Demo',
      home: MyHomePage(),
    );
  }
}

class MyHomePage extends StatelessWidget {
  static const _from = 0xf101;
  static const _to = 0xf26c;

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(
        leading: Icon(YaruIcons.ubuntu_logo),
        title: Text('Flutter Yaru Icons'),
      ),
      body: GridView.extent(
        maxCrossAxisExtent: 72,
        children: List.generate(_to - _from + 1, (index) {
          final code = index + _from;
          return Column(
            children: [
              Icon(YaruIconsData(code)),
              Text('ex' + code.toRadixString(16)),
            ],
          );
        }),
      ),
    );
  }
}