How to detect if web app running standalone on Chrome mobile

This answer comes with a huge delay, but I post it here just for other people who are struggling to find a solution. Recently Google has implemented the CSS conditional display-mode: standalone, so there are two possible ways to detect if an app is running standalone: Using CSS: @media all and (display-mode: standalone) { /* … Read more

html5 drag and drop FOR MOBILE [duplicate]

Most mobile devices do not listen to the drag events that are bound to the DOM. I would recommend using the touchmove event and the events that go along with with it. It would look something like: OPTION 1 <!DOCTYPE HTML> <html> <head> <style type=”text/css”> #div1 {width:350px;height:70px;padding:10px;border:1px solid #aaaaaa;} </style> </head> <body> <p>Drag the W3Schools … Read more

Navigating to a new screen when stream value in BLOC changes

You should not use StreamBuilder to handle navigation. StreamBuilder is used to build the content of a screen and nothing else. Instead, you will have to listen to the stream to trigger side-effects manually. This is done by using a StatefulWidget and overriding initState/dispose as such: class Example extends StatefulWidget { final Stream<int> stream; const … Read more

How do I pass parameters to android Intent in new scheme on chrome?

With the new scheme, you can pass arguments as extras to the App, but you must encode the URI as follows: <a href=”intent://whatever/#Intent;scheme=myapp;package=com.what.ever.myapp;S.myextra=mystring;end”>Do Whatever</a> This will pass an extra String called “myextra” with the value “mystring”. Having a look at the Android Code we can see how the extra parameters need to be coded. The … Read more

How can I change the OverScroll color in Android 2.3.1?

Afaik there is no way to do this. So I created one; presenting: Graeme’s Amazing Custom List View v2 I’ve created a custom view which performs overscroll for ListViews and for GridViews (XML example is for slightly more involved GridView but view works for both): <CustomGlowListView android:id=”@+id/searches” android:layout_width=”match_parent” android:layout_height=”match_parent” android:layout_weight=”1″ android:background=”@android:color/black” android:layout_margin=”10dp” android:tag=”GridView” android:numColumns=”3″ android:horizontalSpacing=”8dp” … Read more

Is there a way to Fix a Google Maps Marker to the Center of its Map always?

Rather than injecting an HTML component as suggested in @Dr.Molle’s answer, why don’t you use a CSS only solution. It is simpler, more efficient and doesn’t require you to even touch the DOM (so there won’t be any problems if Google changes their implementation). Also since Google Maps doesn’t apply any styles on the container … Read more