Comments (2)
Thank you for the report and the quick reaction. We've just pushed updated versions (v1.1.1) of both packages to the pub.dev, so it should be working as expected. Cheers!
from theme_tailor.
Given theme_tailor: ^1.1.0
+ theme_tailor_annotation: ^1.0.3
When running the generator on:
import 'package:flutter/foundation.dart';
import 'package:flutter/material.dart' show ThemeExtension, Theme;
import 'package:flutter/widgets.dart';
import 'package:theme_tailor_annotation/theme_tailor_annotation.dart';
part 'my_theme.tailor.dart';
@tailor
class _$MyTheme {
static const primary = [
Color(0xFFFFFFFF),
Color(0xFF222222),
];
static const secondary = [
Color(0xFF3277B4),
Color(0xFF284D72),
];
}
i get:
[SEVERE] theme_tailor on lib/src/my_theme.dart:
FormatException: Class Tailor does not have field "requireStaticConst".
Fields:
- themes
- themeGetter
- encoders
- hashCode
- runtimeType
from theme_tailor.
Related Issues (20)
- Fields are dynamic in generated code. HOT 3
- DebugFilleProperties not generated HOT 4
- Generating Flutter diagnosticable / debugFillProperties does not work in some cases HOT 1
- Const themes lead to multiple `dart(unused_element)` HOT 2
- Theme transition with a delay for color contained classes HOT 3
- Generate "values" property for ThemeExtensions HOT 2
- Support for private variables HOT 1
- `flutter pub run` instead of `flutter run` in Run the code generator from Readme.md
- Support customizing the className in `Theme.of(context)` calls when generating extensions HOT 2
- Variables generated with type 'InvalidType' HOT 2
- Build runner issue HOT 1
- Supporting non-list types HOT 3
- Bump `analyzer` to `^6.0.0` HOT 1
- [Feature Request]: Add `MyTheme.of(context)` style `ThemeGetters` HOT 1
- [Feature request] Custom override `ThemeExtension` Widget HOT 1
- [Bug]: Member not found: 'TailorMixin.fromJson'. HOT 1
- [Bug]: Missing migration documentation HOT 1
- [Feature]: Auto generate method to merge Themes HOT 1
- [Bug]: Generation doesnt use Gradient.lerp() for gradients HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from theme_tailor.