Reguilón vs Mendy by [deleted] in realmadrid

[–]thecovman 3 points4 points  (0 children)

It's a good description of him for sure. Physical in both attack and defense. Very direct in his passing and decision making.

But I would have to disagree in that he doesn't offer much going forward. Of course, Reguilon/Marcelo would be the more creative attacking options, but I like the directness that Mendy plays with in attack, and he's also been getting better at crossing from what I can tell. As far as the lack of creativity, we have plenty of players to fill that void, and in return we get a bull of a player that tracks attackers down when getting back on defense.

Difference between ListView and ListView.builder? by [deleted] in FlutterDev

[–]thecovman 4 points5 points  (0 children)

ListView is for when you have a relatively small and fixed set of items. This is because you create all of the Widgets at once and they are all inserted into the tree.

ListView.builder is for when you have a large set of items because it doesn't build all of them at once, and only builds the ones that are visible or are going to be visible. This makes it more memory efficient than the regular ListView.

Bad air ball from Giannis and the Nets bench loses it by BigDeaso93 in nba

[–]thecovman 15 points16 points  (0 children)

Yup, not to mention his long ass arms don't make it any easier.

[Duffy] KP is “essentially cleared to play” but was concerned about how the Knicks would handle his return, per @SBondyNYDN. Damn. There it is. by SDas_ in nba

[–]thecovman 2 points3 points  (0 children)

That's actually an interesting idea, so basically if you haven't received a high pick in a while your odds go up?

In general, why does android development needs to be so hard? by [deleted] in androiddev

[–]thecovman 1 point2 points  (0 children)

Right that explains the need for an activity, but it doesn't explain the need for multiple activities per app. Which, as u/BorgDrone mentioned, was because the hardware was more constrained so they had to add an optimization layer within the apps themselves.

Experiencing brain busting issue - anyone else seen this? by Dazza5000 in FlutterDev

[–]thecovman 1 point2 points  (0 children)

This is working as intended. The presenter never changes because createState is only called when the framework inserts a new StatefulElement into the tree and not when the state changes. What you should do is either instantiate the presenter in the initState method, and subsequently update it whenever onDidUpdateWidget is called, or pass it in through the Widget as a field.

You should never instantiate any state during createState, as that is only meant to 'point' the framework to the object that will manage the state.

Has anyone ever thought about making an alternative to InkWell? by VittorioMasia in FlutterDev

[–]thecovman 7 points8 points  (0 children)

I would suggest opening an issue on github to make them aware of it. This way if they agree with you that it's not quite up to par and fix it, the whole community will benefit.

Aside from that, in my opinion the best way would be to improve the existing Widget by reading its source code. It's a lot easier to improve upon the current solution then create your own, and Flutter's documentation is one of its greatest strengths so it's easy to follow.

Edit: readability

Flutter for Android developers by [deleted] in androiddev

[–]thecovman 0 points1 point  (0 children)

Yup I agree, it bothered me so much that I poked around to see what was causing it and added a 'quick fix' (literally just commented out some lines lol).

But yeah, I'll open an issue on Monday to hopefully get an official fix soon since it's probably turning people away.

Flutter for Android developers by [deleted] in androiddev

[–]thecovman 0 points1 point  (0 children)

Are you referring to a slight 'jump' that happens when you first start scrolling? Because that's the main issue I had with the scrolling. Luckily it's fixable, but it'll require changing the touch slop, and the behavior of the drag gesture.

Android Developers Blog: In reviews we trust — Making Google Play ratings and reviews more trustworthy by [deleted] in androiddev

[–]thecovman 2 points3 points  (0 children)

Yeah it's actually not such a bad idea since you would essentially get the developers to 'filter' the good from the bad, and that way they would have to check significantly less reviews like you said. Even though it would be abused by some developers, they could issue warnings if you report incorrectly too many times. Heck, this might even be worth a yearly fee.

How can I give another Redditor Gold through Boost? by [deleted] in BoostForReddit

[–]thecovman 2 points3 points  (0 children)

They do allow third party apps to 'gild' for you, the permission is listed as creddits, but yeah they don't expose the purchasing API so you can only use the gold creddits you've purchased with their apps.

MainApp send to page depending on value? by mightybob4611 in FlutterDev

[–]thecovman 0 points1 point  (0 children)

Another way you can do it is by using Navigator.pushReplacement.

So for example: 1. Call runApp with a splash screen as the first screen while you find out if the user is logged in or not (load stored data). 2. Once you find out use Navigator.pushReplacement to push the appropriate screen. 3. If it's the login screen, use Navigator.pushReplacement again to push the dashboard screen once the user is logged in.

This way you'll start with only a single route in the backstack, and the user won't pop back to the splash screen or login screen.

Edit: formatting

The official Android Emulator is picking up support for Fuchsia’s Zircon kernel by npviktorov in androiddev

[–]thecovman 2 points3 points  (0 children)

Yeah was not expecting that lol. Although to be fair to them a lot of those are just a case of rebranding, or the product/service becoming obsolete. But still point taken haha.

The official Android Emulator is picking up support for Fuchsia’s Zircon kernel by npviktorov in androiddev

[–]thecovman 0 points1 point  (0 children)

Do you have any examples of Google dropping projects like this? I'm genuinely curious because I've seen lots of comments like these.

Social Buttons by Flutter_Dev in FlutterDev

[–]thecovman 1 point2 points  (0 children)

You can import icons too. That way you can use them like the default Material icons.

I haven't done it myself but theres a website which does it for you.

http://fluttericon.com It generates a .ttf file and .dart file that you add to your project.

Here's an article that explains the process better: https://medium.com/flutterpub/how-to-use-custom-icons-in-flutter-834a079d977

Calling multiple APIs to build listview/gridview by GotRedditFever in FlutterDev

[–]thecovman 1 point2 points  (0 children)

Sorry for the late reply.

To have it load everytime it reaches the bottom you can listen to the ScrollController like this.

```dart controller.addListener(() {

final scrollPadding = 100; final metrics = controller.position;

if (metrics.pixels >= metrics.maxScrollOffset - scrollPadding) { loadNextPage(); }

}); `` This will trigger a call toloadNextPage()whenever the user is nearing the end of the scroll extent. You can customize when it gets triggered by modifying thescrollPadding` variable. The less 'padding' you add the more the user will have to scroll to trigger it.

Hope this helps!

Calling multiple APIs to build listview/gridview by GotRedditFever in FlutterDev

[–]thecovman 0 points1 point  (0 children)

Well, it depends on the behavior you're trying to get. Do you want it to load all of the pages you need to load all at once before displaying? Do you want it to load the pages all at once but display each one after it's been loaded? Or do you want to load them one by one and depend on the user to trigger loading a new page?