-
-
Notifications
You must be signed in to change notification settings - Fork 933
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat!: Make resource creation be on demand to enable testing #3411
base: main
Are you sure you want to change the base?
Conversation
@@ -10,6 +10,8 @@ import 'package:flutter_gpu/gpu.dart' as gpu; | |||
/// | |||
/// {@endtemplate} | |||
class ShaderResource extends Resource<gpu.Shader> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
with the new Resource design there is no longer a need to separate ShaderResource and Shader for testing purposes
one would be able to create a "Shader" in tests no problem as long as they don't call the .resource
getter
if this new pattern is accepted, I can followup with updating this to be simpler as it was before
2447f54
to
4c5f726
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The proposal looks good to me!
Benchmark ResultsPackage flame:
Benchmarks provided with 💙 by Dart Benchmark Action. |
Description
Make resource creation be on demand to enable testing.
Basically changes how the
Resource
class work:Checklist
docs
and added dartdoc comments with///
.examples
ordocs
.Breaking Change?