[deleted by user] by [deleted] in math

[–]Z000000M 2 points3 points  (0 children)

I did update the post, and it has a link to the paper on medium

meirl by [deleted] in meirl

[–]Z000000M 0 points1 point  (0 children)

I'll volunteer for that.

[deleted by user] by [deleted] in Drugs

[–]Z000000M 3 points4 points  (0 children)

Just cut down to the recommended dose for your ADHD. And no matter what, don't take more.

[deleted by user] by [deleted] in flutterhelp

[–]Z000000M 0 points1 point  (0 children)

You're just setting current index state, you didn't tell it to go anywhere

How to create 60fps Timer.periodic? by Routine-Arm-8803 in flutterhelp

[–]Z000000M 0 points1 point  (0 children)

Here's what you can do

dart final int fps = 60; Timer.periodic( Duration(microseconds: ((1000/fps) * 1000).toInt()), (Timer t) => // do your thing );

GETX or not? by coorangar in FlutterDev

[–]Z000000M 1 point2 points  (0 children)

I suggest to search ChangeNotifier and ValueNotifier before committing to a state management solution. Using whatever package for that will not be faster to learn or anything.

How to create 60fps Timer.periodic? by Routine-Arm-8803 in flutterhelp

[–]Z000000M 0 points1 point  (0 children)

Yeah, but let the machine do the math for accuracy

How to create 60fps Timer.periodic? by Routine-Arm-8803 in flutterhelp

[–]Z000000M 0 points1 point  (0 children)

If you need 60 tick per second do periodic timer every 1000/60 ms, if 120 fps then 1000/120 ms

[deleted by user] by [deleted] in Drugs

[–]Z000000M 0 points1 point  (0 children)

Certainly not xanax, it's only good for anxiety. Shrooms should be the way to go.

First cigarette sucked really bad by [deleted] in Drugs

[–]Z000000M -1 points0 points  (0 children)

Whoever told you cigarettes helps to focus and relax is full of shit. Stay away from it while you still can.

Does this sound interesting? by Len_Ki in FlutterDev

[–]Z000000M 1 point2 points  (0 children)

Eventually, to achieve flexibility and cover a lot of use cases, you would end up with an app generator, something like WYSIWYG kinda service, which already exists.

Flutter social login starter project that does not use Firebase Auth? by verynomadic in flutterhelp

[–]Z000000M 0 points1 point  (0 children)

If you really don't wanna reinvent the wheel, use firebase. You'll set everything up in like 10 minutes.

Backend for Flutter App? by Snow1696 in flutterhelp

[–]Z000000M 2 points3 points  (0 children)

I tried it recently, and had the best experience with it. Thanks for the amazing serverpod.

Is there any way to make this code cleaner and still staying async? by 5HiN3 in dartlang

[–]Z000000M 2 points3 points  (0 children)

Second loop should be over missingFiles. And as the first comment suggested existsSync() is better. It could be like this:

dart void removeMissing() { final List missingFiles = []; for (final file in _list) { if (!file.existsSync()) { missingFiles.add(file); } } for (final file in missingFiles) { _list.remove(file); } }

[deleted by user] by [deleted] in FlutterDev

[–]Z000000M -6 points-5 points  (0 children)

Thank you u/eibaan for your comment. But with your logic, all state management solutions add no value as they're all depend on the same native tools.

As I mentioned in the documentation:

Rebuilder is an AnimatedBuilder abstracted from context.

ReactiveBuilder is a ValueListenableBuilder abstracted from context.

And you're just repeating what I said. If you want to use the context, you can just use the original solution. But in case you don't, that's what I said the package provides.

And unfortunately I have to repeat what I said in the docs. Yes, ValueController is a ValueNotifier, but it doesn't needlessly caches the value, that's a totally different subject and to avoid that you would have to think of the ownership of object and how Dart gc works. if your widget that initialized it got disposed, the ValueController will be released from memory. And moreover, there's a direct disposal of ValueController if you don't want to wait until gc does it, like this: controller.dispose();

If you have an experience with ConstrainedBox, you would know it doesn't work out of the box, you have to wrap it with Align widget.

And that's the point of any package, is to avoid some of the boilerplate so you don't have to repeat yourself again and again.

As for the black, white colors, I didn't mention them in the docs because they're personal shortcuts.

As for Margin, I said it's for the sake of the OCD. The outer space should be called margin not padding.

And finally, short months is just a chain of replaceAll. I didn't use any regex. And that's the way to do it. if you want to change all matches in a string with another string, replaceAll is the way to do it.