yaru_color_builder 0.1.0 copy "yaru_color_builder: ^0.1.0" to clipboard
yaru_color_builder: ^0.1.0 copied to clipboard

SDKDart
unlisted

A builder extension to `yaru_color_generator` for generating Yaru colors at build time.

Yaru Color Builder #

A builder extension to yaru_color_generator for generating Yaru colors at build time.

// my_colors.dart
import 'package:yaru_color_generator/yaru_color_generator.dart';

part 'my_colors.g.dart';

class MyColors {
  @GeneratedYaruColor(0xFFFF0000)
  static const MaterialColor red = _$MyColors.red;

  @GeneratedYaruColor(0xFF00FF00)
  static const MaterialColor green = _$MyColors.green;

  @GeneratedYaruColor(0xFF0000FF)
  static const MaterialColor blue = _$MyColors.blue;
}

Usage #

To use this package, add yaru_color_builder and build_runner as dev_dependency in your pubspec.yaml file.

0
likes
130
pub points
0%
popularity

Publisher

verified publisherubuntu.com

A builder extension to `yaru_color_generator` for generating Yaru colors at build time.

Repository (GitHub)
View/report issues
Contributing

Documentation

API reference

License

MPL-2.0 (license)

Dependencies

analyzer, build, code_builder, source_gen, yaru_color_generator

More

Packages that depend on yaru_color_builder