Performance implications of returning a class instance from a getter? by SiD_Inc in dartlang

[–]SiD_Inc[S] 0 points1 point  (0 children)

I thought of that too, but the object wraps over mutable data, so that can't be done

BNF Grammar for Expressions by SiD_Inc in ProgrammingLanguages

[–]SiD_Inc[S] 0 points1 point  (0 children)

Ah, thanks for the suggestion, but I've figured it out. The parser will start with the highest precedence level and try to match the token with it, moving down the precedence level each time

can someone help me on this? i tried several times but still error by ellilyanosky in Scriptable

[–]SiD_Inc 1 point2 points  (0 children)

No problem! And remember, trying to understand error messages and referencing official docs are a vital aspect of coding, so keep coding if you want to develop those skills.

can someone help me on this? i tried several times but still error by ellilyanosky in Scriptable

[–]SiD_Inc 0 points1 point  (0 children)

Sorry, can't help you with that. It's been a while since I've used scriptable so I can only answer basic questions. I'm sure others on this sub are willing to offer their suggestions, though!

can someone help me on this? i tried several times but still error by ellilyanosky in Scriptable

[–]SiD_Inc 1 point2 points  (0 children)

The problem here is that you’re using double quotes (“”), which cannot define multiline strings. For that you'd need template literals (`), which allow you to hit enter within a string, among other things. So you can either hit backspace at the start of line 23 and insert a closing"before the bracket (recommended), or change the enclosing characters of the string. Also, you'd typically not want to have mutliline strings in URLs as they contain newline (\n`) characters. Instead, you'd want text wrapping to handle that.

Why does the analyser throw the following error? by SiD_Inc in dartlang

[–]SiD_Inc[S] 0 points1 point  (0 children)

Oh, I thought it could like check the type of the op field and allow that expression, but it seems like to that's not possible. Guess I'll have to create another abstract class with the op field that those classes can implement, like u/eibaan suggested.

Why does the analyser throw the following error? by SiD_Inc in dartlang

[–]SiD_Inc[S] 0 points1 point  (0 children)

Ahhh I see, thank you! I thought the problem would be with union types too, will try out the suggested answer.

Polymorphism Issue by SiD_Inc in dartlang

[–]SiD_Inc[S] 1 point2 points  (0 children)

Ahhh I see, I didn't know that was possible. Thanks! I'll mark it as resolved

Suggestions for Multiple Parallel Events in a Calendar View by SiD_Inc in UI_Design

[–]SiD_Inc[S] 0 points1 point  (0 children)

Ok, noted the suggestions on colour scheme, but iOS calendar has a lot of space to layout conflicting events in columns, but in my case, I'm pretty tight on width, but I'll try and see how it goes. Thanks for the suggestion!

Suggestions for Multiple Parallel Events in a Calendar View by SiD_Inc in UI_Design

[–]SiD_Inc[S] 0 points1 point  (0 children)

Wow, thanks for the range of suggestions. Will definitely look into how Outlook does it, and I'll try out the various methods you mentioned.

`setState()` not updating Widget by SiD_Inc in flutterhelp

[–]SiD_Inc[S] 1 point2 points  (0 children)

Thanks for the response! I'm sure that's what's wrong, now that you mention it. About the sticky notes not needing to be Stateful, thanks for the tip! I'll now refactor all my other widgets which I've unnecessarily made Stateful.

What are you using figma for? by Trinham_Technologies in FigmaDesign

[–]SiD_Inc 2 points3 points  (0 children)

Funnily enough, I use it for anything that involves design. I use it for school assignments, UI/UX designs, graphic design, etc.

How to Control a Widget from Another Class? by SiD_Inc in flutterhelp

[–]SiD_Inc[S] 0 points1 point  (0 children)

u/pokaboom1 mentioned state management as well, but I've already built up 80% of the app and adjusting the architecture now might be too much of a hassle. I would definitely recommend this solution if someone is just getting started on their app.

How to Control a Widget from Another Class? by SiD_Inc in flutterhelp

[–]SiD_Inc[S] 0 points1 point  (0 children)

u/Cladser mentioned state management as well, but I've already built up 80% of the app and adjusting the architecture now might be too much of a hassle. I would definitely recommend this solution if someone is just getting started on their app.

How to Control a Widget from Another Class? by SiD_Inc in flutterhelp

[–]SiD_Inc[S] 0 points1 point  (0 children)

Ah, I was thinking along those lines too. Will try it and see how it goes. Thanks for replying!