theme_tailor_annotation 2.0.1 copy "theme_tailor_annotation: ^2.0.1" to clipboard
theme_tailor_annotation: ^2.0.1 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

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
0
points
35.7k
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

License

unknown (license)

Dependencies

collection, json_annotation, meta

More

Packages that depend on theme_tailor_annotation