theme_tailor_annotation 2.1.0 copy "theme_tailor_annotation: ^2.1.0" to clipboard
theme_tailor_annotation: ^2.1.0 copied to clipboard

Annotations for the Theme Tailor code-generator. This package does nothing without Theme Tailor.

example/example.dart

// ignore_for_file: unused_element, deprecated_member_use_from_same_package

import 'package:theme_tailor_annotation/theme_tailor_annotation.dart';

@tailor
class _$MyTheme {
  /// Declared properties
  // List<Color> surface = [Colors.white, Colors.black];
}

@Tailor(themes: ['superLight'])
class _$MyTheme2 {
  /// Declared properties
  // List<Color> surface = [Colors.white];
}

/// ThemeGetter can be used to generate additional extension to access theme from
/// * BuildContext
/// * ThemeData
@Tailor(themeGetter: ThemeGetter.none)
class _$MyTheme3 {
  /// Declared properties
  // List<Color> surface = [Colors.white, Colors.black];
}
13
likes
150
points
27.1k
downloads

Publisher

verified publisheriteo.com

Weekly Downloads

Annotations for the Theme Tailor code-generator. This package does nothing without Theme Tailor.

Repository (GitHub)
View/report issues

Documentation

Documentation
API reference

License

MIT (license)

Dependencies

collection, json_annotation, meta

More

Packages that depend on theme_tailor_annotation