Skip to content

Commit

Permalink
Add new issue links
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeDoctorDE committed Feb 12, 2024
1 parent 57fe4aa commit 472575e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 15 deletions.
6 changes: 6 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
blank_issues_enabled: false
contact_links:
- name: Report iOS issue
url: https://github.com/LinwoodDev/Butterfly/issues/244
about: Please ask and answer questions here. Synced with discord.
- name: Ask a question
url: https://github.com/LinwoodDev/Butterfly/discussions
about: Please ask and answer questions here. Synced with discord.
- name: Linwood Matrix
url: https://go.linwood.dev/discord
about: Please ask and answer questions here. Synced with discord.
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

| Version | Supported | |
| ------- | ------------------ | --------------------------------------------------------------------------------------------------------------------------------------- |
| 2.0.3-dev | :warning: | [Docs](https://docs.butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.3-rc.0) |
| 2.0.3-dev | :warning: | [Docs](https://docs.butterfly.linwood.dev/docs/2.1/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.3-rc.1) |
| 2.0.2 | :white_check_mark: | [Docs](https://docs.butterfly.linwood.dev/docs/2.0/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v2.0.2) |
| 1.6.1 | :x: | [Docs](https://docs.butterfly.linwood.dev/docs/1.6/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v1.6.1) |
| 1.5.1 | :x: | [Docs](https://docs.butterfly.linwood.dev/docs/1.5/intro) [Release](https://github.com/LinwoodDev/butterfly/releases/tag/v1.5.1) |
Expand Down
28 changes: 14 additions & 14 deletions app/lib/renderers/renderer.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,24 +91,24 @@ abstract class Renderer<T> {
factory Renderer.fromInstance(T element) {
// Elements
if (element is PadElement) {
return element.map(
pen: (value) => PenRenderer(value),
text: (value) => TextRenderer(value),
image: (value) => ImageRenderer(value),
svg: (value) => SvgRenderer(value),
shape: (value) => ShapeRenderer(value),
markdown: (value) => MarkdownRenderer(value),
texture: (value) => TextureRenderer(value),
) as Renderer<T>;
return switch (element) {
PenElement() => PenRenderer(element),
TextElement() => TextRenderer(element),
ImageElement() => ImageRenderer(element),
SvgElement() => SvgRenderer(element),
ShapeElement() => ShapeRenderer(element),
MarkdownElement() => MarkdownRenderer(element),
TextureElement() => TextureRenderer(element),
} as Renderer<T>;
}

// Backgrounds
if (element is Background) {
return element.map(
texture: (value) => TextureBackgroundRenderer(value),
image: (value) => ImageBackgroundRenderer(value),
svg: (value) => EmptyBackgroundRenderer(value),
) as Renderer<T>;
return switch (element) {
TextureBackground() => TextureBackgroundRenderer(element),
ImageBackground() => ImageBackgroundRenderer(element),
SvgBackground() => EmptyBackgroundRenderer(element),
} as Renderer<T>;
}

if (element is UtilitiesState) {
Expand Down

0 comments on commit 472575e

Please sign in to comment.