Skip to content

Instantly share code, notes, and snippets.

View ltOgt's full-sized avatar
👁️‍🗨️

:o: ltOgt

👁️‍🗨️
View GitHub Profile
@ardera
ardera / fakedevicepixelratio.dart
Created November 8, 2019 00:48
A simple flutter widget that can simulate/fake a different pixel ratio for all it's children. Can be the root widget, i.e. the widget given to runApp(). Useful for when your device/emulator doesn't properly calculate the devicePixelRatio.
import 'package:flutter/widgets.dart';
class FakeDevicePixelRatio extends StatelessWidget {
final num fakeDevicePixelRatio;
final Widget child;
FakeDevicePixelRatio({this.fakeDevicePixelRatio, this.child}) : assert(fakeDevicePixelRatio != null);
@override
Widget build(BuildContext context) {
@arkadiusjonczek
arkadiusjonczek / gist:8836e724a53ddd55362644745cf8ca4c
Created December 31, 2016 01:30
Start Chrome in App Mode on Mac OS X
/Applications/Google\ Chrome.app/Contents/MacOS/Google\ Chrome --app="http://www.google.de"