Skip to content
This repository has been archived by the owner on Jan 18, 2022. It is now read-only.

Simple widget to create own Scopes #26

Open
PlugFox opened this issue Aug 17, 2021 · 1 comment
Open

Simple widget to create own Scopes #26

PlugFox opened this issue Aug 17, 2021 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@PlugFox
Copy link
Owner

PlugFox commented Aug 17, 2021

Create simple abstract class / widget / mixin to create own Scopes

@PlugFox PlugFox added the enhancement New feature or request label Aug 17, 2021
@PlugFox PlugFox added this to the 0.2.0 milestone Aug 17, 2021
@PlugFox
Copy link
Owner Author

PlugFox commented Aug 17, 2021

Something like this:

class MyCustomScope = StatelessWidget with ScopeMixin;

mixin ScopeMixin on StatelessWidget {
  @override
  StatelessElement createElement() => StatelessElement(this);

  Widget build(BuildContext context) => const Offstage();
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant