Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Tinkering with Flutter, Dart and everything Apple

Neevash Ramdial (Nash) Nash0x7E2

🎯
Tinkering with Flutter, Dart and everything Apple
View GitHub Profile
@slightfoot
slightfoot / defer_init.dart
Last active Feb 6, 2021
Defer initialization of your UI based on a background service - by Simon Lightfoot - 29/12/2020 - Null Safe!
View defer_init.dart
import 'dart:math' show Random;
import 'package:flutter/material.dart';
import 'package:flutter/rendering.dart' show RendererBinding;
void main() {
runApp(MaterialApp(
home: Home(),
));
}
@slightfoot
slightfoot / run_logged.dart
Created Apr 11, 2019
Logging your app's print statements to a local file for later processing.
View run_logged.dart
import 'dart:async';
import 'dart:core';
import 'dart:io';
import 'package:flutter/material.dart';
import 'package:path/path.dart' as p;
import 'package:path_provider/path_provider.dart';
void main() => runLoggedApp(App());
@kbumsik
kbumsik / ipad_monitor.sh
Last active May 23, 2021
Using iPad as a 2nd monitor on Linux with VNC.
View ipad_monitor.sh
#!/bin/bash
# ----------------------------------------------------------------------------
# "THE BEER-WARE LICENSE" (Revision 42):
# <k.bumsik@gmail.com> wrote this file. As long as you retain this notice you
# can do whatever you want with this stuff. If we meet some day, and you think
# this stuff is worth it, you can buy me a beer in return. - Bumsik Kim
# ----------------------------------------------------------------------------
# Configuration
WIDTH=1024 # 1368 for iPad Pro