SwipeRefresh compose Vs TopBar behavior - android-jetpack-compose

I used accompanic SwipeRefresh to custom loading pull to refresh JetPack Compose, but when I want disable pull by scroll up, the behavior enterAlways of TopBar (use nested scroll api) is scroll too, how can I handle this?

Related

flutter - Call State's method when widget reappears in viewport

Saying, I have a SliverList widget with SliverChildBuilderDelegate, which produces a card with custom image widget inside of it for each index. By custom image widget I mean widget that is kind of NetworkImage, but with support for custom caching technology. It's similar to cached_network_image.
So, the problem I'm trying to solve is that when some image fails to load and user scrolls it out from the screen, I need to retry loading this image when user for example scrolls back to it or in general when this image appears in viewport again.
Is it possible to e.g. re-call image loading function in some of the State's lifecycle methods or in delegate's builder? Or which technique should I use in this case?
Github issue #29597

Can gestures pass through PageRouteBuilder?

I'm using Navigator to push PageRouteBuilder as an overlay to my screen with opague set to false, so that it shows the route underneath it as well. But none of the gestures goes through the overlayed widget.
Using navigator for the overlay just removes so much hassle than using flutters own Overlay widget for it since it already contains all the functionality I need, but doesn't seem to let any gestures through.
Is there any way to make the gestures pass through my overlay?

Custom viewcontroller container (similar to UIPageViewController), but with no scrolling bounce

Using UIPageViewController as container is pretty straightforward, however, it is extremely hacky to disable its bounce effect. I need help on creating a custom container ViewController (similar to UIPageVC) using UIScrollView and ViewController containment API. Is there any existing repo on github?
thx
I think you can use UICollectionView. You can set up it without bouncing. You can do it with setting alwaysBounceVertical and alwaysBounceHorisontal properties. Read here and here about it. Also UICollectionView is very easy to use and customize. I don't think you need use some external libs or repos.

Get the default back indicator image of a Navigation bar

I want to use the default image of the back button of a navigation controller in
IOS7 elsewhere in my application.
How can i obtain that image?
Programmatically in runtime, you can't.
What you can is
Use extracted elements, e.g. from these sites:
http://avexdesigns.com/ios7-psd-templates/
http://www.teehanlax.com/tools/
Extract it yourself, using Resource extractor
Snapshot the screen and cut it out yourself (most inconvenient option).

iOS: Add an image to the Navigation bar

I'm currently working on an iOS app that is pretty much supposed look and work like an already existing android app.
As a part of that, I'd like to make the top navigation look the same, but since iOs devices do not provide a hardware or software integrated back button, I'd also like to keep the back button navigation that's common to iOs apps.
I've tried numerous attempts to achieve it, but I'll stick with the latest I'm working on since it looks the most promising. I've started to work on a custom UINavigationBar class that overrides the initWithCoder: and layoutSubviews: methods. The result is as follows:
As you can see, the back button now overlaps the application icon. What I'm looking for is a way to make the button and the text to scale into the space right of the application icon. I've tried to handle this in layoutSubviews: but the superclass logic appears to be rather complex, I was not able to reproduce it's functionality (in particular it seems to be working with some private variables I don't have access to).
I also tried manipulating self.frame before calling [super layoutSubviews] but apart from endless loops I was not able to achieve anything in that direction.
I'd be happy if anyone could point me into the right direction.
If I understand your problem correctly, I think you could do this by adding a custom titleView to the UINavigationItem, and have an image view (on the left side for the icon) and a label (for the title) as subviews. This would replace the default title.

Resources